org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'hibernateExceptionTranslator': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216) ~[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]

Stack Overflow | Gleb Zykov | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to debug BeanCreationNotAllowedException in Hibernate

    Stack Overflow | 5 months ago | Gleb Zykov
    org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'hibernateExceptionTranslator': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216) ~[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
  2. 0

    Unifi controller - Spiceworks

    spiceworks.com | 1 year ago
    org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'dbService': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  3. 0

    Unifi controller - Spiceworks

    spiceworks.com | 1 year ago
    org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'dbService': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. kjhdofjosvs 1 times, last 3 months ago
  2. Malcshour 1 times, last 9 months ago
1 unregistered visitors

Root Cause Analysis

  1. org.springframework.beans.factory.BeanCreationNotAllowedException

    Error creating bean with name 'hibernateExceptionTranslator': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216) ~[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean()
  2. Spring Beans
    BeanFactoryUtils.beansOfTypeIncludingAncestors
    1. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    3. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534)[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    4. org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:310)[org.springframework.spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    4 frames
  3. Spring Tx
    PersistenceExceptionTranslationInterceptor.invoke
    1. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(PersistenceExceptionTranslationInterceptor.java:162)[org.springframework.spring-tx-4.0.7.RELEASE.jar:4.0.7.RELEASE]
    2. org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:145)[org.springframework.spring-tx-4.0.7.RELEASE.jar:4.0.7.RELEASE]
    2 frames
  4. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[org.springframework.spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    1 frame
  5. Spring Data JPA
    CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodIntercceptor.invoke
    1. org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodIntercceptor.invoke(CrudMethodMetadataPostProcessor.java:122)[org.springframework.data.spring-data-jpa-1.7.1.RELEASE.jar:na]
    1 frame
  6. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[org.springframework.spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)[org.springframework.spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[org.springframework.spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)[org.springframework.spring-aop-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    4 frames
  7. com.sun.proxy
    $Proxy81.findOne
    1. com.sun.proxy.$Proxy81.findOne(Unknown Source)[na:na]
    1 frame
  8. models.service
    DriverService.save
    1. models.service.DriverService.save(DriverService.java:64)[beehive.beehive-SNAPSHOT.jar:SNAPSHOT]
    1 frame
  9. actors.taxiStationSupervisor.taxiStation
    NavServerHandlerActor.onReceive
    1. actors.taxiStationSupervisor.taxiStation.navserver.NavServerHandlerActor.handleCoordinates(NavServerHandlerActor.java:376)[beehive.beehive-SNAPSHOT.jar:SNAPSHOT]
    2. actors.taxiStationSupervisor.taxiStation.navserver.NavServerHandlerActor.handleMessage(NavServerHandlerActor.java:216)[beehive.beehive-SNAPSHOT.jar:SNAPSHOT]
    3. actors.taxiStationSupervisor.taxiStation.navserver.NavServerHandlerActor.onReceive(NavServerHandlerActor.java:93)[beehive.beehive-SNAPSHOT.jar:SNAPSHOT]
    3 frames
  10. Akka Actor
    Mailbox.exec
    1. akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    2. akka.actor.Actor$class.aroundReceive(Actor.scala:465)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    3. akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    4. akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    5. akka.actor.ActorCell.invoke(ActorCell.scala:487)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    6. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    7. akka.dispatch.Mailbox.run(Mailbox.scala:221)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    8. akka.dispatch.Mailbox.exec(Mailbox.scala:231)[com.typesafe.akka.akka-actor_2.11-2.3.8.jar:na]
    8 frames
  11. Scala
    ForkJoinWorkerThread.run
    1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[org.scala-lang.scala-library-2.11.4.jar:na]
    2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[org.scala-lang.scala-library-2.11.4.jar:na]
    3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[org.scala-lang.scala-library-2.11.4.jar:na]
    4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[org.scala-lang.scala-library-2.11.4.jar:na]
    4 frames