Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JBoss Issue Tracker by Miroslav Novak, 1 year ago
javax.transaction.xa.XAException: The method 'xa_rollback' has failed with errorCode '-4'.
via redhat.com by Unknown author, 1 year ago
javax.transaction.xa.XAException: The method 'xa_rollback' has failed with errorCode '-4'.
XAException.XAER_NOTA: javax.transaction.xa.XAException: The method 'xa_rollback' has failed with errorCode '-4'.	at com.ibm.mq.jmqi.JmqiXAResource.rollback(JmqiXAResource.java:861)	at com.ibm.mq.connector.xa.XARWrapper.rollback(XARWrapper.java:503)	at org.jboss.jca.core.tx.jbossts.XAResourceWrapperImpl.rollback(XAResourceWrapperImpl.java:196)	at org.jboss.jca.core.tx.jbossts.XAResourceWrapperStatImpl.rollback(XAResourceWrapperStatImpl.java:160)	at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:369)	at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2994)	at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2973)	at com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1655)	at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:127)	at com.arjuna.ats.arjuna.AtomicAction.abort(AtomicAction.java:186)	at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.rollbackAndDisassociate(TransactionImple.java:1282)	at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:143)	at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:134)	at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:187)	at com.sun.ts.tests.jms.ee.mdb.xa.MsgBeanxa.runTest8(MsgBeanxa.java:272)	at com.sun.ts.tests.jms.ee.mdb.xa.MsgBeanxa.runTests(MsgBeanxa.java:122)	at com.sun.ts.tests.jms.ee.mdb.xa.MsgBeanxa.onMessage(MsgBeanxa.java:78)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:103)	at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:58)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)	at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:53)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:239)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)	at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)	at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)	at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)	at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)	at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)	at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)	at com.sun.ts.tests.jms.ee.mdb.xa.MsgBeanxa$$$view32.onMessage(Unknown Source)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)	at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139)	at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73)	at com.sun.ts.tests.jms.ee.mdb.xa.MsgBeanxa$$$endpoint12.onMessage(Unknown Source)	at com.ibm.mq.connector.inbound.MessageEndpointWrapper.onMessage(MessageEndpointWrapper.java:136)	at com.ibm.mq.jms.MQSession$FacadeMessageListener.onMessage(MQSession.java:138)	at com.ibm.msg.client.jms.internal.JmsSessionImpl.run(JmsSessionImpl.java:2677)	at com.ibm.mq.jms.MQSession.run(MQSession.java:963)	at com.ibm.mq.connector.inbound.ASFWorkImpl.doDelivery(ASFWorkImpl.java:102)	at com.ibm.mq.connector.inbound.AbstractWorkImpl.run(AbstractWorkImpl.java:237)	at org.jboss.jca.core.workmanager.WorkWrapper.run(WorkWrapper.java:226)	at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)	at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:808)	at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)	at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:828)	at java.lang.Thread.run(Thread.java:745)	at org.jboss.threads.JBossThread.run(JBossThread.java:320)