java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Re: tomee:stop not work
    via by mauro2java2011,
  • Re: tomee:stop not work
    via by mauro2java2011,
  • Re: tomee:stop not work
    via by Romain Manni-Bucau,
  • Re: tomee:stop not work
    via by Romain Manni-Bucau,
    • java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1 at org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:156) at org.apache.openejb.core.singleton.SingletonInstanceManager.freeInstance(SingletonInstanceManager.java:275) at org.apache.openejb.core.singleton.SingletonContainer.undeploy(SingletonContainer.java:143) at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:1956) at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:1825) at org.apache.tomee.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:1938) at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:126) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:252) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1027) at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1547) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1474) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1695) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1373) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523) at java.lang.Thread.run(Thread.java:745)
    No Bugmate found.