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