org.springframework.transaction.TransactionSystemException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web300

  • via JFrog JIRA by Matti Linnanvuori, 10 months ago
    Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  • via JFrog JIRA by Matti Linnanvuori, 1 year ago
    Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  • via JFrog JIRA by Yoav Landman, 1 year ago
    Could not commit JCR transaction; nested exception is javax.transaction.RollbackException: javax.transaction.xa.XAException
  • Stack trace

    • 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 more 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 more 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 more 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 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.