RollbackException « Exception « JPA Q&A





1. RollbackException after SetRollbackOnly in CMT environment    forum.hibernate.org

Hi, I'm using hibernate 3.1.3 with Orion appserver and CMT. From the moment I call sessionctx.setRollbackOnly() all following hibernate queries result in an Exception like this: java.lang.RuntimeException: Error performing iterater with query: SQL_de.solutionary.bps.jdo.PersistentInformation_select {PersistentInformation.*} from {PersistentInformation} where typ = :VAL0 and id = (select max(id) from PersistentInformation where typ = :VAL0)could not execute query at de.solutionary.bps.hibernate.helper.HibernateSession.handleException(HibernateSession.java:238) at de.solutionary.bps.hibernate.helper.HibernateSession.iterate(HibernateSession.java:347) at de.solutionary.bps.hibernate.helper.HomeInvocationHandler.runQuery(HomeInvocationHandler.java:415) at ...

2. RollbackException: no reason given    forum.hibernate.org

I'm trying to do a simple persist with a POJO. It works the first time. When I change the @ID field value and try to persist it again, I get an exception (see below). Is there a way to get more information than this? It is probably an SQLException but I can't figure out how to find out what it is. ...