Hi,
I am using Hibernate3.jar and using jboss server.
I am getting "could not register synchronization with JTA TransactionManager"
in the server.
This problem comes when there is a failure in the transaction with the database. After
getting this error i cannot able to procede further. Each time i need to restart the
server.
[org.egov.infstr.utils.HibernateUtil] In getSessionFactory
2007-10-12 17:55:16,281 INFO [org.egov.infstr.utils.HibernateUtil] FactoryName
java:/hibernate/EGovHibernateRamFactory
2007-10-12 17:55:16,281 DEBUG [org.egov.infstr.utils.HibernateUtil] Obtained session
factory
2007-10-12 17:55:16,281 ERROR [org.egov.infstr.utils.HibernateUtil] Hibernate Exception
opening session:could not register synchronization with JTA TransactionManager
2007-10-12 17:55:16,281 INFO [STDOUT] org.hibernate.TransactionException: could not
register synchronization with JTA TransactionManager
at
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:174)
at org.hibernate.jdbc.JDBCContext.<init>(JDBCContext.java:75)
at org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:215)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:470)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:494)
at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:502)
at org.egov.infstr.utils.HibernateUtil.getCurrentSession(HibernateUtil.java:160)
at org.egov.infstr.utils.HibernateUtil.beginTransaction(HibernateUtil.java:247)
at
org.egov.infstr.client.filter.HibSessionServletFilter.doFilter(HibSessionServletFilter.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.egov.infstr.client.filter.SetEncodingFilter.doFilter(SetEncodingFilter.java:39)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.egov.infstr.client.filter.SetThreadLocals.doFilter(SetThreadLocals.java:73)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.transaction.RollbackException: Already marked for rollback
TransactionImpl:XidImpl[FormatId=257, GlobalId=dma2/18, BranchQual=, localId=18]
at org.jboss.tm.TransactionImpl.registerSynchronization(TransactionImpl.java:602)
at
org.hibernate.jdbc.JDBCContext.registerSynchronizationIfPossible(JDBCContext.java:164)
Please help me in this regards,
Pradeep
---------------------------------
Get the freedom to save as many mails as you wish. Click here to know how.