org.hibernate.exception.GenericJDBCException: could not prepare statement

tomee-users | zeeman | 3 years ago
  1. 0

    PooledConnection has already been closed

    tomee-users | 3 years ago | zeeman
    org.hibernate.exception.GenericJDBCException: could not prepare statement
  2. 0

    ServletContextListener losing JNDI connection on restart

    Stack Overflow | 3 years ago
    java.sql.SQLException: PooledConnection has already been closed.
  3. 0

    J2EE connection is getting closed in tomcat server

    Stack Overflow | 1 year ago | Abir Bhaumik
    java.sql.SQLException: PooledConnection has already been closed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Analyzing Connection Closed Exception in Spring/JPA/Mysql/Tomcat app

    Stack Overflow | 3 years ago | ncmadhan
    java.sql.SQLException: Connection has already been closed.

  1. mellson 5 times, last 3 months ago
17 unregistered visitors
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.sql.SQLException

    PooledConnection has already been closed.

    at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke()
  2. org.apache.tomcat
    DisposableConnectionFacade.invoke
    1. org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:86)
    1 frame
  3. Unknown
    $Proxy87.prepareStatement
    1. $Proxy87.prepareStatement(Unknown Source)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  5. OpenEJB :: OSGi :: Core
    ManagedConnection.invoke
    1. org.apache.openejb.resource.jdbc.managed.local.ManagedConnection.invokeUnderTransaction(ManagedConnection.java:165)
    2. org.apache.openejb.resource.jdbc.managed.local.ManagedConnection.invoke(ManagedConnection.java:133)
    2 frames
  6. Unknown
    $Proxy88.prepareStatement
    1. $Proxy88.prepareStatement(Unknown Source)
    1 frame
  7. Hibernate
    JavassistLazyInitializer.invoke
    1. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:161)
    2. org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:182)
    3. org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:159)
    4. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1859)
    5. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1836)
    6. org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1816)
    7. org.hibernate.loader.Loader.doQuery(Loader.java:900)
    8. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342)
    9. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:312)
    10. org.hibernate.loader.Loader.loadCollectionBatch(Loader.java:2272)
    11. org.hibernate.loader.collection.LegacyBatchingCollectionInitializerBuilder$LegacyBatchingCollectionInitializer.initialize(LegacyBatchingCollectionInitializerBuilder.java:95)
    12. org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:674)
    13. org.hibernate.event.internal.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:85)
    14. org.hibernate.internal.SessionImpl.initializeCollection(SessionImpl.java:1855)
    15. org.hibernate.collection.internal.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:681)
    16. org.hibernate.engine.internal.StatefulPersistenceContext.initializeNonLazyCollections(StatefulPersistenceContext.java:1030)
    17. org.hibernate.event.internal.DefaultLoadEventListener.convertCacheEntryToEntity(DefaultLoadEventListener.java:683)
    18. org.hibernate.event.internal.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:571)
    19. org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:421)
    20. org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:206)
    21. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:145)
    22. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1098)
    23. org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:1013)
    24. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:173)
    25. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:285)
    26. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:185)
    26 frames
  8. com.sportivity.model
    Member_$$_jvst9fb_1e.equals
    1. com.sportivity.model.Member_$$_jvst9fb_1e.equals(Member_$$_jvst9fb_1e.java)
    1 frame
  9. com.sportivity.services
    SocialNotificationHandler.handleAsyncSocialLike
    1. com.sportivity.services.handlers.SocialNotificationHandler.handleAsyncSocialLike(SocialNotificationHandler.java:125)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  11. OpenEJB :: OSGi :: Core
    StatsInterceptor.invoke
    1. org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
    2. org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
    3. org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:180)
    4. org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:99)
    4 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  13. OpenEJB :: OSGi :: Core
    AsynchronousPool$AsynchronousCall.call
    1. org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
    2. org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
    3. org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:80)
    4. org.apache.openejb.core.singleton.SingletonContainer._invoke(SingletonContainer.java:233)
    5. org.apache.openejb.core.singleton.SingletonContainer.invoke(SingletonContainer.java:197)
    6. org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:268)
    7. org.apache.openejb.core.ivm.EjbObjectProxyHandler$1.call(EjbObjectProxyHandler.java:253)
    8. org.apache.openejb.async.AsynchronousPool$AsynchronousCall.call(AsynchronousPool.java:110)
    8 frames
  14. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    2. java.util.concurrent.FutureTask.run(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    5. java.lang.Thread.run(Unknown Source)
    5 frames