Announcement Announcement Module
Collapse
No announcement yet.
Connection handle is not currently associated with a Managed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Connection handle is not currently associated with a Managed

    Hi

    I am getting the following error erratically (stack trace at bottom of message).
    All our database access is being done using the HibernateTemplate (load, save, update) methods and the HibernateCallback api, we never “open” or “close” hibernate sessions ourselves.

    We are using spring v1.1, hibernate v2.1.6 and jboss v4.0.1.

    Some help would be much appreciated.

    Thanks in advance

    Rian

    org.springframework.jdbc.UncategorizedSQLException : (Hibernate operation): encountered SQLException [Connection handle is not

    currently associated with a ManagedConnection]; nested exception is java.sql.SQLException: Connection handle is not currently

    associated with a ManagedConnection

    java.sql.SQLException: Connection handle is not currently associated with a ManagedConnection

    at org.jboss.resource.adapter.jdbc.WrappedConnection. checkStatus(WrappedConnection.java:741)

    at org.jboss.resource.adapter.jdbc.WrappedConnection. checkTransaction(WrappedConnection.java:721)

    at org.jboss.resource.adapter.jdbc.WrappedConnection. prepareStatement(WrappedConnection.java:274)

    at sun.reflect.GeneratedMethodAccessor72.invoke(Unkno wn Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at net.sf.hibernate.util.GetGeneratedKeysHelper.prepa reStatement(GetGeneratedKeysHelper.java:39)

    at net.sf.hibernate.impl.BatcherImpl.getPreparedState ment(BatcherImpl.java:254)

    at net.sf.hibernate.impl.BatcherImpl.prepareStatement (BatcherImpl.java:61)

    at net.sf.hibernate.persister.EntityPersister.insert( EntityPersister.java:525)

    at net.sf.hibernate.persister.EntityPersister.insert( EntityPersister.java:432)

    at net.sf.hibernate.impl.ScheduledIdentityInsertion.e xecute(ScheduledIdentityInsertion.java:29)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:932)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:857)

    at net.sf.hibernate.impl.SessionImpl.saveWithGenerate dIdentifier(SessionImpl.java:775)

    at net.sf.hibernate.impl.SessionImpl.save(SessionImpl .java:738)

    at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(Ses sionImpl.java:1388)

    at net.sf.hibernate.engine.Cascades$4.cascade(Cascade s.java:114)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:436)

    at net.sf.hibernate.engine.Cascades.cascadeCollection (Cascades.java:526)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:452)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:503)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:952)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:857)

    at net.sf.hibernate.impl.SessionImpl.saveWithGenerate dIdentifier(SessionImpl.java:775)

    at net.sf.hibernate.impl.SessionImpl.save(SessionImpl .java:738)

    at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(Ses sionImpl.java:1388)

    at net.sf.hibernate.engine.Cascades$4.cascade(Cascade s.java:114)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:436)

    at net.sf.hibernate.engine.Cascades.cascadeCollection (Cascades.java:526)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:452)

    at net.sf.hibernate.engine.Cascades.cascade(Cascades. java:503)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:952)

    at net.sf.hibernate.impl.SessionImpl.doSave(SessionIm pl.java:857)

    at net.sf.hibernate.impl.SessionImpl.saveWithGenerate dIdentifier(SessionImpl.java:775)

    at net.sf.hibernate.impl.SessionImpl.save(SessionImpl .java:738)

    at org.springframework.orm.hibernate.HibernateTemplat e$11.doInHibernate(HibernateTemplate.java:301)

    at org.springframework.orm.hibernate.HibernateTemplat e.execute(HibernateTemplate.java:176)

    at org.springframework.orm.hibernate.HibernateTemplat e.save(HibernateTemplate.java:298)

    at

    com.thawte.persistence.dao.hibernateImpl.Enrollmen tDaoHibernateImpl.settleNonVpsRealtimeEnrollment(E nrollmentDaoHibernateImpl.j

    ava:1537)
Working...
X