-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: RollbackException after SetRollbackOnly in CMT environment
PostPosted: Wed Jan 31, 2007 7:29 am 
Newbie

Joined: Thu Apr 08, 2004 7:17 am
Posts: 10
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.