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 de.solutionary.bps.hibernate.helper.HomeInvocationHandler.invoke(HomeInvocationHandler.java:179)
at $Proxy47.findLastByTyp(Unknown Source)
at de.solutionary.bps.session.pipeline.AblieferungsProgrammSImpl.calcSplit(AblieferungsProgrammSImpl.java:1409)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2148)
...
... 28 more
Caused by: java.sql.SQLException: RollbackException: The transaction has been marked for rollback (no reason given)
at com.evermind._gn._djb(Unknown Source)
at com.evermind._in.prepareStatement(Unknown Source)
at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
...
... 35 more
What can I do to make hibernate work even after setRollbackOnly. I need this to test a bunch of things and return all problems to the client, so the user can fix all problems at one time, not only the first that happens.
Thanks in advance.
Alex
|