org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException

JFrog JIRA | Yoav Landman | 8 years ago
  1. 0

    After metadata has already been updated by another thread which removed and added it (xmlImport), the remove by a thread waiting on the lock (inside its own tx) fails because the original item no longer exists. Need to re-read the new value before deleting it to refresh the state? org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:195) at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:85) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at org.artifactory.repo.service.RepositoryServiceImpl$$EnhancerByCGLIB$$79b65f35.getResourceStreamHandle(<generated>) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:509) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:195) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:115) at org.artifactory.test.SimpleArtifactoryTest.simpleJarDownload(SimpleArtifactoryTest.java:31) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:111) at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) ... 26 more Caused by: javax.transaction.xa.XAException at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:155) at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:324) at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101) ... 27 more Caused by: org.apache.jackrabbit.core.TransactionException: Unable to prepare transaction. at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:152) at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:138) ... 29 more Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: 46254760-0ca4-4cf2-ae4c-3560e4e97d9e/{http://www.jcp.org/jcr/1.0}mimeType has been modified externally at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:620) at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:843) at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:146) ... 30 more ... Removed 11 stack frames

    JFrog JIRA | 8 years ago | Yoav Landman
    org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  2. 0

    After metadata has already been updated by another thread which removed and added it (xmlImport), the remove by a thread waiting on the lock (inside its own tx) fails because the original item no longer exists. Need to re-read the new value before deleting it to refresh the state? org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:195) at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:85) at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678) at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635) at org.artifactory.repo.service.RepositoryServiceImpl$$EnhancerByCGLIB$$79b65f35.getResourceStreamHandle(<generated>) at org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:509) at org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:195) at org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:115) at org.artifactory.test.SimpleArtifactoryTest.simpleJarDownload(SimpleArtifactoryTest.java:31) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Caused by: javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:111) at org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) ... 26 more Caused by: javax.transaction.xa.XAException at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:155) at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:324) at org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101) ... 27 more Caused by: org.apache.jackrabbit.core.TransactionException: Unable to prepare transaction. at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:152) at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:138) ... 29 more Caused by: org.apache.jackrabbit.core.state.StaleItemStateException: 46254760-0ca4-4cf2-ae4c-3560e4e97d9e/{http://www.jcp.org/jcr/1.0}mimeType has been modified externally at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:620) at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:843) at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:146) ... 30 more ... Removed 11 stack frames

    JFrog JIRA | 8 years ago | Yoav Landman
    org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  3. 0

    [BISERVER-8317] Error when trying to disable ability to schedule a report when the report is in a schedule - Pentaho BI Platform Tracking

    pentaho.com | 1 year ago
    org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm seeing this sporadically, and turned up the logging to get the actual exception: org.apache.jackrabbit.core.state.NoSuchItemStateException: 8c0c0e78-6c90-4db6-82a3-feed4ca4ea90/{http://artifactory.jfrog.org/1.0}lastDownloadedBy Here's the full exception: {quote} 2012-11-01 18:42:36,360 [pool-1-thread-18] [DEBUG] (o.a.w.s.RepoFilter :206) - Sending HTTP error code 500: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) [se-jcr-0.9.jar:na] at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:76) [artifactory-jcr-storage-2.6.3.jar:na] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:393) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120) [spring-tx-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:121) [artifactory-jcr-storage-2.6.3.jar:na] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:49) [artifactory-jcr-storage-2.6.3.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at $Proxy51.uploadWithinTransaction(Unknown Source) [na:na] at org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:222) [artifactory-core-2.6.3.jar:na] at org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:177) [artifactory-core-2.6.3.jar:na] at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:138) [artifactory-core-2.6.3.jar:na] at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) [na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_26] at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_26] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) [spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE] at $Proxy51.upload(Unknown Source) [na:na] at org.artifactory.webapp.servlet.RepoFilter.doUpload(RepoFilter.java:203) [artifactory-web-application-2.6.3.jar:na] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:145) [artifactory-web-application-2.6.3.jar:na] at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:84) [artifactory-web-application-2.6.3.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:272) [artifactory-web-application-2.6.3.jar:na] at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:193) [artifactory-web-application-2.6.3.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:175) [artifactory-web-application-2.6.3.jar:na] at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:143) [artifactory-web-application-2.6.3.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:57) [artifactory-web-application-2.6.3.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:72) [artifactory-web-application-2.6.3.jar:na] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1190) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:424) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494) [jetty-security-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:931) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:361) [jetty-servlet-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.Server.handle(Server.java:337) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1020) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:775) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:228) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:417) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:474) [jetty-io-7.0.2.v20100331.jar:7.0.2.v20100331] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26] at org.eclipse.jetty.server.Server.handle(Server.java:337) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1020) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:775) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:228) [jetty-http-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:417) [jetty-server-7.0.2.v20100331.jar:7.0.2.v20100331] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:474) [jetty-io-7.0.2.v20100331.jar:7.0.2.v20100331] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_26] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_26] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26] Caused by: javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101) [se-jcr-0.9.jar:na] at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189) [se-jcr-0.9.jar:na] ... 54 common frames omitted Caused by: javax.transaction.xa.XAException: null at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:176) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:312) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:91) [se-jcr-0.9.jar:na] ... 55 common frames omitted Caused by: org.apache.jackrabbit.core.TransactionException: Unable to prepare transaction. at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:169) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:159) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] ... 57 common frames omitted Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: 8c0c0e78-6c90-4db6-82a3-feed4ca4ea90/{http://artifactory.jfrog.org/1.0}lastDownloadedBy at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:280) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:676) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1460) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:163) [jackrabbit-core-jfrog-2.2.8d.jar:2.2.8d] ... 58 common frames omitted {quote}

    JFrog JIRA | 4 years ago | Andrew Bayer
    org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  6. 0

    l:207) - Datastore garbage collector deleted 0 unreferenced item(s). 2009-08-03 13:17:54,574 [pool-1-thread-1] [INFO ] (o.a.j.JcrServiceImpl:207) - Datastore garbage collector deleted 0 unreferenced item(s). 2009-08-03 13:27:54,574 [pool-1-thread-1] [INFO ] (o.a.j.JcrServiceImpl:207) - Datastore garbage collector deleted 0 unreferenced item(s). 2009-08-03 13:32:10,215 [pool-1-thread-1] [ERROR] (o.a.j.JcrTransactionManager:255) - Could not commit transaction: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException 2009-08-03 13:32:10,215 [pool-1-thread-1] [INFO ] (o.a.j.JcrTransactionManager:207) - status = org.springframework.transaction.support.DefaultTransactionStatus@4f02246c 2009-08-03 13:32:10,216 [pool-1-thread-1] [INFO ] (o.a.j.JcrTransactionManager:207) - txobj = org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager$JcrTransactionObject@15a556fa 2009-08-03 13:32:10,218 [pool-1-thread-1] [INFO ] (o.a.j.JcrTransactionManager:207) - sh = org.springframework.extensions.jcr.jackrabbit.support.UserTxSessionHolder@1a7a84a0 2009-08-03 13:32:10,218 [pool-1-thread-1] [INFO ] (o.a.j.JcrTransactionManager:207) - tx = org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction@619931f4 2009-08-03 13:32:10,224 [pool-1-thread-4] [ERROR] (o.a.j.JcrTransactionManager:255) - Could not commit transaction: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException 2009-08-03 13:32:10,225 [pool-1-thread-4] [INFO ] (o.a.j.JcrTransactionManager:207) - status = org.springframework.transaction.support.DefaultTransactionStatus@2e4263ee 2009-08-03 13:32:10,226 [pool-1-thread-4] [INFO ] (o.a.j.JcrTransactionManager:207) - txobj = org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager$JcrTransactionObject@64591dae 2009-08-03 13:32:10,227 [pool-1-thread-4] [INFO ] (o.a.j.JcrTransactionManager:207) - sh = org.springframework.extensions.jcr.jackrabbit.support.UserTxSessionHolder@32afe5ab 2009-08-03 13:32:10,227 [pool-1-thread-4] [INFO ] (o.a.j.JcrTransactionManager:207) - tx = org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction@3a0f578c 2009-08-03 13:32:10,251 [pool-1-thread-1] [ERROR] (o.a.s.a.AsyncAdvice :271) - Could not execute async method: 'public abstract void org.artifactory.api.security.SecurityService.updateUserLastLogin(java.lang.String,java.lang.String,long)'. org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) [se-jcr-0.9.jar:na] at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:83) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) [spring-tx-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:71) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:119) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [na:1.6.0_12] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_12] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_12] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12] Caused by: javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101) [se-jcr-0.9.jar:na] at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189) [se-jcr-0.9.jar:na] ... 13 common frames omitted Caused by: javax.transaction.xa.XAException: null at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:171) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:324) [jackrabbit-core-1.5.6.jar:na] at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:91) [se-jcr-0.9.jar:na] ... 14 common frames omitted Caused by: org.apache.jackrabbit.core.TransactionException: Unable to prepare transaction. at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:162) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:154) [jackrabbit-core-1.5.6.jar:na] ... 16 common frames omitted Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: b015f993-56c0-4d29-9912-3ae584d51d1f/{}groups at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:270) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:648) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1062) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:156) [jackrabbit-core-1.5.6.jar:na] ... 17 common frames omitted 2009-08-03 13:32:10,252 [pool-1-thread-4] [ERROR] (o.a.s.a.AsyncAdvice :271) - Could not execute async method: 'public abstract void org.artifactory.api.security.SecurityService.updateUserLastLogin(java.lang.String,java.lang.String,long)'. org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192) [se-jcr-0.9.jar:na] at org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:83) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) [spring-tx-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) [spring-tx-2.5.6.jar:2.5.6] at org.artifactory.jcr.lock.aop.LockingAdvice.invoke(LockingAdvice.java:71) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at org.artifactory.schedule.aop.AsyncAdvice$1.run(AsyncAdvice.java:119) [artifactory-core-2.1.0-SNAPSHOT.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [na:1.6.0_12] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [na:1.6.0_12] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_12] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_12] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12] Caused by: javax.transaction.RollbackException: javax.transaction.xa.XAException at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101) [se-jcr-0.9.jar:na] at org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:189) [se-jcr-0.9.jar:na] ... 13 common frames omitted Caused by: javax.transaction.xa.XAException: null at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:171) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:324) [jackrabbit-core-1.5.6.jar:na] at org.springframework.extensions.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:91) [se-jcr-0.9.jar:na] ... 14 common frames omitted Caused by: org.apache.jackrabbit.core.TransactionException: Unable to prepare transaction. at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:162) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:154) [jackrabbit-core-1.5.6.jar:na] ... 16 common frames omitted Caused by: org.apache.jackrabbit.core.state.NoSuchItemStateException: b015f993-56c0-4d29-9912-3ae584d51d1f/{}groups at org.apache.jackrabbit.core.state.SharedItemStateManager.getItemState(SharedItemStateManager.java:270) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:648) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:1062) [jackrabbit-core-1.5.6.jar:na] at org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:156) [jackrabbit-core-1.5.6.jar:na] ... 17 common frames omitted 2009-08-03 13:37:54,574 [pool-1-thread-4] [INFO ] (o.a.j.JcrServiceImpl:207) - Datastore garbage collector deleted 0 unreferenced item(s). 2009-08-03 13:43:36,989 [TP-Processor52] [INFO ] (o.a.r.HttpRepo :207) - repo1: Retrieving

    JFrog JIRA | 7 years ago | Tal Abramson
    org.springframework.transaction.TransactionSystemException: Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.jackrabbit.core.state.StaleItemStateException

      46254760-0ca4-4cf2-ae4c-3560e4e97d9e/{http://www.jcp.org/jcr/1.0}mimeType has been modified externally

      at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin()
    2. Jackrabbit Core
      XASessionImpl.prepare
      1. org.apache.jackrabbit.core.state.SharedItemStateManager$Update.begin(SharedItemStateManager.java:620)
      2. org.apache.jackrabbit.core.state.SharedItemStateManager.beginUpdate(SharedItemStateManager.java:843)
      3. org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:146)
      4. org.apache.jackrabbit.core.state.XAItemStateManager.prepare(XAItemStateManager.java:152)
      5. org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:138)
      6. org.apache.jackrabbit.core.TransactionContext.prepare(TransactionContext.java:155)
      7. org.apache.jackrabbit.core.XASessionImpl.prepare(XASessionImpl.java:324)
      7 frames
    3. org.springmodules.jcr
      LocalTransactionManager.doCommit
      1. org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:101)
      2. org.springmodules.jcr.jackrabbit.support.JackRabbitUserTransaction.commit(JackRabbitUserTransaction.java:111)
      3. org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:192)
      4. org.springmodules.jcr.jackrabbit.LocalTransactionManager.doCommit(LocalTransactionManager.java:195)
      4 frames
    4. org.artifactory.jcr
      JcrTransactionManager.doCommit
      1. org.artifactory.jcr.JcrTransactionManager.doCommit(JcrTransactionManager.java:85)
      1 frame
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)
      2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)
      3. org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
      4. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
      4 frames
    6. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
      2 frames
    7. org.artifactory.repo
      RepositoryServiceImpl$$EnhancerByCGLIB$$79b65f35.getResourceStreamHandle
      1. org.artifactory.repo.service.RepositoryServiceImpl$$EnhancerByCGLIB$$79b65f35.getResourceStreamHandle(<generated>)
      1 frame
    8. org.artifactory.engine
      DownloadEngine.process
      1. org.artifactory.engine.DownloadEngine.respond(DownloadEngine.java:509)
      2. org.artifactory.engine.DownloadEngine.processStandard(DownloadEngine.java:195)
      3. org.artifactory.engine.DownloadEngine.process(DownloadEngine.java:115)
      3 frames
    9. org.artifactory.test
      SimpleArtifactoryTest.simpleJarDownload
      1. org.artifactory.test.SimpleArtifactoryTest.simpleJarDownload(SimpleArtifactoryTest.java:31)
      1 frame
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames