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

tomee-users | mauro2java2011 | 1 year 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

    Re: tomee:stop not work

    tomee-users | 1 year ago | mauro2java2011
    java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  2. 0

    Re: tomee:stop not work

    tomee-users | 1 year ago | mauro2java2011
    java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  3. 0

    Re: tomee:stop not work

    tomee-users | 1 year ago | Romain Manni-Bucau
    java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: tomee:stop not work

    tomee-users | 1 year ago | Romain Manni-Bucau
    java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1

    Root Cause Analysis

    1. 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()
    2. OpenEJB :: OSGi :: Core
      Assembler.destroyApplication
      1. org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:156)
      2. org.apache.openejb.core.singleton.SingletonInstanceManager.freeInstance(SingletonInstanceManager.java:275)
      3. org.apache.openejb.core.singleton.SingletonContainer.undeploy(SingletonContainer.java:143)
      4. org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:1956)
      5. org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:1825)
      5 frames
    3. OpenEJB :: TomEE :: Catalina
      GlobalListenerSupport.lifecycleEvent
      1. org.apache.tomee.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:1938)
      2. org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:126)
      2 frames
    4. Glassfish Core
      ContainerBase$ContainerBackgroundProcessor.run
      1. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      2. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      3. org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
      4. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:252)
      5. org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1027)
      6. org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1547)
      7. org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1474)
      8. org.apache.catalina.startup.HostConfig.check(HostConfig.java:1695)
      9. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333)
      10. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      11. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      12. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1373)
      13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1545)
      14. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1555)
      15. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1523)
      15 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame