org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

Terracotta Project Issue Tracker | Eric Ellis | 8 years ago
  1. 0

    Essentially, we're listening to the sessionDestroyed() event calling a Spring managed bean which uses Hibernate to write various recorded statistics to the database. This works fine w/o Terracotta. Just wanted to let you know. org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:599) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at com.zdm.oneup.persistence.service.AuthManager$$EnhancerByCGLIB$$e6179ed3.updateUserNetworkStatusforLogout(<generated>) at com.zdm.oneup.myoneup.form.UserSessionBean.logout(UserSessionBean.java:618) at com.zdm.oneup.main.base.filter.SessionFilter.sessionDestroyed(SessionFilter.java:72) at com.terracotta.session.util.DefaultLifecycleEventMgr.fireSessionDestroyedEvent(DefaultLifecycleEventMgr.java:47) at com.terracotta.session.SessionData.invalidate(SessionData.java:115) at com.terracotta.session.SessionData.invalidateIfNecessary(SessionData.java:101) at com.terracotta.session.TerracottaSessionManager.expire(TerracottaSessionManager.java:424) at com.terracotta.session.TerracottaSessionManager.access$700(TerracottaSessionManager.java:31) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.evaluateSession(TerracottaSessionManager.java:560) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.invalidateSessions(TerracottaSessionManager.java:532) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.run(TerracottaSessionManager.java:499) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67) at org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163) at org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111) at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)

    Terracotta Project Issue Tracker | 8 years ago | Eric Ellis
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
  2. 0

    Essentially, we're listening to the sessionDestroyed() event calling a Spring managed bean which uses Hibernate to write various recorded statistics to the database. This works fine w/o Terracotta. Just wanted to let you know. org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:599) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at com.zdm.oneup.persistence.service.AuthManager$$EnhancerByCGLIB$$e6179ed3.updateUserNetworkStatusforLogout(<generated>) at com.zdm.oneup.myoneup.form.UserSessionBean.logout(UserSessionBean.java:618) at com.zdm.oneup.main.base.filter.SessionFilter.sessionDestroyed(SessionFilter.java:72) at com.terracotta.session.util.DefaultLifecycleEventMgr.fireSessionDestroyedEvent(DefaultLifecycleEventMgr.java:47) at com.terracotta.session.SessionData.invalidate(SessionData.java:115) at com.terracotta.session.SessionData.invalidateIfNecessary(SessionData.java:101) at com.terracotta.session.TerracottaSessionManager.expire(TerracottaSessionManager.java:424) at com.terracotta.session.TerracottaSessionManager.access$700(TerracottaSessionManager.java:31) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.evaluateSession(TerracottaSessionManager.java:560) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.invalidateSessions(TerracottaSessionManager.java:532) at com.terracotta.session.TerracottaSessionManager$SessionInvalidator.run(TerracottaSessionManager.java:499) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67) at org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163) at org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111) at org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)

    Terracotta Project Issue Tracker | 8 years ago | Eric Ellis
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
  3. 0

    starting thread using jboss5 thread pool

    Stack Overflow | 5 years ago | rich oates
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSphere:WebSphere Application Server:.hibernate.jdbc.ConnectionWrapper is not visible from classloader on WAS7 - WebSphere Application Server Forum

    ibm.com | 11 months ago
    org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader
  6. 0

    [HHH-2281] Calling Session.connection() generates java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader - Hibernate JIRA

    atlassian.net | 12 months ago
    java.lang.IllegalArgumentException: interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

    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.lang.IllegalArgumentException

      interface org.hibernate.jdbc.ConnectionWrapper is not visible from class loader

      at java.lang.reflect.Proxy.getProxyClass()
    2. Java RT
      Proxy.newProxyInstance
      1. java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
      2. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
      2 frames
    3. Hibernate
      JDBCContext.borrowConnection
      1. org.hibernate.jdbc.BorrowedConnectionProxy.generateProxy(BorrowedConnectionProxy.java:67)
      2. org.hibernate.jdbc.ConnectionManager.borrowConnection(ConnectionManager.java:163)
      3. org.hibernate.jdbc.JDBCContext.borrowConnection(JDBCContext.java:111)
      3 frames
    4. Hibernate
      SessionImpl.connection
      1. org.hibernate.impl.SessionImpl.connection(SessionImpl.java:359)
      1 frame
    5. Hibernate
      HibernateTransactionManager.doBegin
      1. org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:510)
      1 frame