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]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web89

  • 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]
  • via Google Groups by Charlie Bunt, 1 month ago
    Error creating bean with name 'context.loader': 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!)
  • Error creating bean with name 'context.loader': 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!)
  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 years ago
    Once, 1 month ago
    Once, 7 months ago
    Once, 1 year ago