您能帮我解决这个问题吗?当服务器尝试通过EJB远程将消息发送到其他服务器时,我正在使用JBoss和Cluster,但是当通过EJB本地时,出现此问题:
org.wildfly.transaction.client.SynchronizationException:javax.transaction.xa.XAException:WFTXN0034:无法在org.wildfly.transaction.client.XAOutflowedResources $ 1.beforeCompletion(XAOutflowedResources $ X.OutforeCompletion(XAOutflowedResources.java:83:83)上获取此连接)于org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:209)于org.wildfly.transaction.client.AbstractTransaction.performConsumer(AbstractTransaction.java:220)于org.wildfly.transaction.client.AbstractTransaction $ com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)上com.arjuna.ats.arjuna.coordinator.TwoPhase的AssociatingSynchronization.beforeCompletion(AbstractTransaction.java:265) com.arjuna.ats.arjuna.coordinator上的TwoPhaseCoordinator.java:368)com.arjuna.ats.arjuna上的TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)上com.arjuna处的AtomicAction.commit(AtomicAction.java:162) .ats.internal.jta。 transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1289)位于com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)位于com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate在org.jboss的org.wildfly.transaction.client.ContextTransactionManager.commit(ContextTransactionManager.java:71)的org.wildfly.transaction.client.LocalTransaction.commitAndDissociate(LocalTransaction.java:73)的commit(BaseTransactionManagerDelegate.java:89) org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279)上的org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:92)在org.jboss.as.ejb3.tx。 org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:240)上的org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)上的。(CMTTxInterceptor.java:332)。 jboss.invocation.InterceptorContext $ Invocation.proceed(InterceptorContext.java:509)在或g.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)位于org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:89)在org.Context。 org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:89)处的org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.asjjbo.422 :) org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)处的.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)在org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor。 (WaitTimeInterceptor.java:47)在org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)在org.jboss.as.ejb3.secu org.jboss.as.ejb3.security.Security.SecurityDomainInterceptor.processInvocation(SecurityDomainInterceptor.java)上的org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)处的rity.IdentityOutflowInterceptor.processInvocation(IdentityOutflowInterceptor.java:73)在org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22)的org.jboss.as.ejb3.org.jboss.invocation.InterceptorContext.proceed处(InterceptorContext.java:422) (InterceptorContext.java:422)在org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory $ 1.processInvocation(ShutDownInterceptorFactory.java:64)在org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)上的.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57)在org.jboss.as.ejb3component。 .Lo org.org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)的org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)的ggingInterceptor.processInvocation(LoggingInterceptor.java:67) org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)在org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)在org.jboss.invocation.InterceptorContext.proceed org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)处的org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)处的org.jboss.invocation.InterceptorContext.run(.java:422) org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:609)处的InterceptorContext.java:438)org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.j)处的InterceptorContext.java:438) ava:57)在org.jboss.as.ee.component.ViewService在org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)在org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:380)处的org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java处的$ View.invoke(ViewService.java:198) :535)at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:530)at org.jboss.ejb3.remote.AssociationImpl.lambda $ receiveInvocationRequest $ 0(AssociationImpl.java:193) .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)作者:javax.transaction.xa.XAException:WFTXN0034:无法在org.wildfly.transaction.client.provider.remoting.RemotingRem上获取此操作的连接oteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer.java:94)位于org.wildfly.transaction.client.provider.remoting.RemotingRemoteTransactionPeer $ 1.beforeCompletion(RemotingRemoteTransactionPeer.java:166)位于org.ResourceA。 :135),位于org.wildfly.transaction.client.XAOutflowedResources $ 1.beforeCompletion(XAOutflowedResources.java:70)... 58更多原因:org.wildfly.security.auth.AuthenticationException:JBREM000308:验证失败(没有机制) ,尝试:JBOSS-LOCAL-USER:org.wildfly.security.auth.AuthenticationException:JBREM000300:由于org.jboss上org.jboss.remoting3.ConnectionPeerIdentityContext.doAuthenticate(ConnectionPeerIdentityContext.java:368)的I / O错误,身份验证失败org.jboss.remoting3.EndpointImpl $ 3.handleDone(EndpointImpl.java:505)的org.jboss.remoting3.Endpoi的.remoting3.ConnectionPeerIdentityContext.authenticate(ConnectionPeerIdentityContext.java:174) org.xnio上的ntImpl $ 3.handleDone(EndpointImpl.java:494)在org.xnio上的IoFuture $ HandlingNotifier.notify(IoFuture.java:208)在org.xnio上的AbstractIoFuture $ NotifierRunnable.run(AbstractIoFuture.java:720)。 org.xnio上的IoUtils $ 2.execute(IoUtils.java:71),org.xnio.AbstractIoFuture.runNotifier(AbstractIoFuture.java:693)在org.xnio.AbstractIoFuture $ CompleteState.withNotifier(AbstractIoFuture.javaF:132)在org.xnio.AbstractI。 org.jboss.remoting3的addNotifier(AbstractIoFuture.java:570).org.wildfly.transaction.client的org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:433)的EndpointImpl.doGetConnection(EndpointImpl.java:494) .provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentity(RemotingRemoteTransactionPeer.java:87)位于org.wildfly.transaction.client.provider.provider.remoting.RemotingRemoteTransactionPeer.getPeerIdentityXA(RemotingRemoteTransactionPeer 92 ...)