jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeepkudale <pradeepkud...@gmail.com>
Subject JTA transaction for jackrabit and hibernate
Date Mon, 26 Oct 2009 16:14:23 GMT

 Hello friends
I want to use JTA transaction to add records in database when there is some
change (add/delete node) in jackrabbit repository.
I have done configuration but I am getting below error. 
Can someone please help me out with below error.



org.springframework.web.util.NestedServletException: Request processing
failed; nested exception is
org.springframework.transaction.UnexpectedRollbackException: JTA transaction
unexpectedly rolled back (maybe due to a timeout); nested exception is
javax.transaction.RollbackException: Error during one-phase commit
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
	at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)

	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:220)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:211)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:817)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:623)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:444)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.transaction.UnexpectedRollbackException: JTA
transaction unexpectedly rolled back (maybe due to a timeout); nested
exception is javax.transaction.RollbackException: Error during one-phase
commit
	at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1031)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at
com.service.impl.PersistenceMgrImpl.findCompany(PersistenceMgrImpl.java:240)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
	at $Proxy29.findCompanyByName(Unknown Source)
	at
com.web.controller.util.DataInRequestInterceptor.addCompany(DataInRequestInterceptor.java:80)
	at
com.web.controller.util.DataInRequestInterceptor.preHandle(DataInRequestInterceptor.java:62)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:865)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
	... 18 more
Caused by: javax.transaction.RollbackException: Error during one-phase
commit
	at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:311)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:239)
	at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1028)
	... 34 more
Caused by: javax.transaction.xa.XAException
	at
org.enhydra.jdbc.standard.StandardXAConnection.commit(StandardXAConnection.java:443)
	at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.commit(WrapperNamedXAResource.java:47)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:302)
	... 36 more
Oct 12, 2009 6:04:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet app threw exception
javax.transaction.xa.XAException
	at
org.enhydra.jdbc.standard.StandardXAConnection.commit(StandardXAConnection.java:443)
	at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.commit(WrapperNamedXAResource.java:47)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:302)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:239)
	at
org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1028)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732)
	at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701)
	at
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at
com.service.impl.PersistenceMgrImpl.findCompany(PersistenceMgrImpl.java:240)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
	at $Proxy29.findCompanyByName(Unknown Source)
	at
com.wac.web.controller.util.DataInRequestInterceptor.addCompanyIfDoesNotExist(DataInRequestInterceptor.java:80)
	at
com.web.controller.util.DataInRequestInterceptor.preHandle(DataInRequestInterceptor.java:62)
	at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:865)
	at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
	at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
	at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:220)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:191)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:227)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:211)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:817)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:623)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:444)
	at java.lang.Thread.run(Unknown Source)
-- 
View this message in context: http://www.nabble.com/JTA-transaction-for-jackrabit-and-hibernate-tp26062410p26062410.html
Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.


Mime
View raw message