TransactionException « Exception « JPA Q&A





1. org.hibernate.TransactionException: could not register sy...    forum.hibernate.org

Dear Sirs, I got the Exception recently with the follow stack trace: org.hibernate.TransactionException: could not register synchronization with JTA TransactionManager at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:164) at org.hibernate.impl.SessionImpl.checkTransactionSynchStatus(SessionImpl.java:1821) at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1582) ... at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: javax.transaction.RollbackException: Already marked for rollback TransactionImpl:XidImpl [FormatId=257, GlobalId=irdtpnuap02/257, BranchQual=, localId=257] at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:635) at org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:153) ... 45 more Do you know it is related to JAVA Program problem or ...

2. TransactionException: Could not register synchronization    forum.hibernate.org

Hibernate version: Hibernate3 My Requirement: I need to query a table and look for entries that are greater than 90 days old and delete them. So, I'm trying to use session.connection() and call an oracle specific sql statement to achieve this. The table has a create_date column which I use to derive the number of days. Now when this logic gets ...

3. org.hibernate.TransactionException    forum.hibernate.org

I'm running a test case which tests my application's hibernate stuff which is deployed on a Weblogic 8.1 server. here is the setup method private Session session; private Transaction t; protected void setUp() throws Exception { Configuration config = new Configuration(); config.configure(); SessionFactory sessionFactory = config.buildSessionFactory(); session = sessionFactory.openSession(); t = session.beginTransaction(); } While doing a session.beginTransaction i get the following ...