java.lang.IllegalStateException

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

Solutions on the web4541

  • via tomee-users by mauro2java2011, 2 weeks ago
    PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  • via tomee-users by mauro2java2011, 9 months ago
    PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  • via tomee-users by Romain Manni-Bucau, 2 weeks ago
    PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1
  • Stack trace

    • java.lang.IllegalStateException: PersistenceUnit(name=book-pu) - entityManager.close() call - See JPA 2.0 section 7.9.1 at org.apache.openejb.persistence.JtaEntityManager.close(JtaEntityManager.java:368) at mauro.closedb.CloseDBManager.closeDB(CloseDBManager.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192) at org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:223) at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173) at org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:181) at org.apache.openejb.monitoring.StatsInterceptor.PreDestroy(StatsInterceptor.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:192) at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:173) at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85) at org.apache.openejb.core.singleton.SingletonInstanceManager.freeInstance(SingletonInstanceManager.java:269) 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) Caused by: java.lang.Exception ... 40 more

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.