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

tomee-users | Romain Manni-Bucau | 11 months ago
  1. 0

    Re: tomee:stop not work

    tomee-users | 11 months ago | Romain Manni-Bucau
    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 | 11 months ago | Romain Manni-Bucau
    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 | 11 months ago | mauro2java2011
    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 | 11 months ago | mauro2java2011
    java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  6. 0

    Transaction required exception

    openejb-users | 7 years ago | Mansour Al Akeel
    java.lang.IllegalStateException: A JTA EntityManager can not use the EntityTransaction API. See JPA 1.0 section 5.5

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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