]
Ondřej Chaloupka updated WFLY-5578:
-----------------------------------
Steps to Reproduce:
# {{git clone git@github.com:wildfly/wildfly.git}}
# {{cd widlfly}}
# {{./build.sh -B -fae -DallTests -DskipTests}}
# change {{dist/target/wildfly-*-SNAPSHOT/standalone/configuration/standalone-full.xml}}
of the distribution to enable JTS
## set parameter of iiop-openjdk subsystem {{transactions}} to have value {{full}}
## define element {{jts} ( by adding new tag {{<jts/>}} in transactions subsystem
# run test {{./integration-tests.sh clean install -Dts.noSmoke -Dts.basic
-Dtest=GetCallerPrincipalTestCase#testStatefulLifecycle}}
was:
# unzip WILDFLY distro
# unzip and define {{JBOSS_HOME}}
# change {{standalone-full.xml}} of the distribution to enable JTS
## set iiop orb subsystem parameter {{transactions}} to have value {{full}}
## define element {{jts}} in subsystem transactions
# run test {{./integration-tests.sh clean install -Dts.noSmoke -Dts.basic
-Djboss.dist=$JBOSS_HOME -Dtest=GetCallerPrincipalTestCase#testStatefulLifecycle}}
AS testsuite testcase
GetCallerPrincipalTestCase.testStatefulLifecycle fails when JTS is used
---------------------------------------------------------------------------------------------
Key: WFLY-5578
URL:
https://issues.jboss.org/browse/WFLY-5578
Project: WildFly
Issue Type: Bug
Components: Test Suite
Affects Versions: 10.0.0.CR4
Reporter: Ondřej Chaloupka
Attachments: server.log
Testcase of WFLY/EAP testsuite
org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase#testStatefulLifecycle
fail when JBoss configured with JTS transaction. The failure is:
{code}
Running
org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCaseTests
run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.225 sec <<< FAILURE!
- in
org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCasetestStatefulLifecycle(org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase)
Time elapsed: 2.135 sec <<< FAILURE!java.lang.AssertionError:
expected:<$localstop> but was:<null>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:144)
at
org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase.testStatefulLifecycle(GetCallerPrincipalTestCase.java:232)
Results :Failed tests: GetCallerPrincipalTestCase.testStatefulLifecycle:232
expected:<$localstop> but was:<null>Tests run: 3, Failures: 1, Errors: 0,
Skipped: 0
{code}
Running command
{{./integration-tests.sh clean install -Dts.noSmoke -Dts.basic -Djboss.dist=$JBOSS_HOME
-Dtest=GetCallerPrincipalTestCase}}
The server exception is
{code}
WARN [com.arjuna.ats.jts] (EJB default - 4) ARJUNA022261: ServerTopLevelAction detected
that the transaction was inactiveWARN [com.arjuna.ats.jts] (EJB default - 4)
ARJUNA022261: ServerTopLevelAction detected that the transaction was inactiveERROR
[org.jboss.as.ejb3.invocation] (EJB default - 4) WFLYEJB0034: EJB Invocation failed on
component TestResultsSingleton for method public abstract void
org.jboss.as.test.integration.ejb.security.callerprincipal.ITestResultsSingleton.setSfsb(java.lang.String,java.lang.String):
javax.transaction.SystemException: org.omg.CORBA.TRANSACTION_UNAVAILABLE: ARJUNA022258:
Transaction was inactive vmcid: 0x0 minor code: 1 completed: No at
com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.getTimeout(BaseTransaction.java:245) at
com.arjuna.ats.jbossatx.jts.TransactionManagerDelegate.getTransactionTimeout(TransactionManagerDelegate.java:60) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.getCurrentTransactionTimeout(CMTTxInterceptor.java:130) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:226) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) 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.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437) at
org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:110) 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:44) 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.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.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:259) at
org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:184) at
org.jboss.ejb.client.EJBObjectInterceptor.handleInvocation(EJBObjectInterceptor.java:58) at
org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) at
org.jboss.ejb.client.EJBHomeInterceptor.handleInvocation(EJBHomeInterceptor.java:83) at
org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) at
org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) at
org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) at
org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) at
org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186) at
org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:255) at
org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:200) at
org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:183) at
org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:146) at
com.sun.proxy.$Proxy42.setSfsb(Unknown Source) at
org.jboss.as.test.integration.ejb.security.callerprincipal.SFSBLifecycleCallback.tearDown(SFSBLifecycleCallback.java:74) 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.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:96) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doLifecycleInterception(Jsr299BindingsInterceptor.java:114) at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:98) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:56) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.ee.component.ManagedReferenceReleaseInterceptor.processInvocation(ManagedReferenceReleaseInterceptor.java:56) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.jpa.interceptor.SFSBDestroyInterceptor.processInvocation(SFSBDestroyInterceptor.java:49) 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.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:263) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:308) at
org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:62) 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.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) 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.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.BasicComponentInstance.destroy(BasicComponentInstance.java:125) at
org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor$StatefulSessionSynchronization.afterCompletion(StatefulSessionSynchronizationInterceptor.java:243) at
org.jboss.as.txn.service.internal.tsr.JCAOrderedLastSynchronizationList.afterCompletion(JCAOrderedLastSynchronizationList.java:147) at
com.arjuna.ats.internal.jta.resources.jts.orbspecific.SynchronizationImple.after_completion(SynchronizationImple.java:118) at
com.arjuna.ArjunaOTS.JTAInterposedSynchronizationPOATie.after_completion(JTAInterposedSynchronizationPOATie.java:46) at
com.arjuna.ArjunaOTS.JTAInterposedSynchronizationPOA._invoke(JTAInterposedSynchronizationPOA.java:47) at
com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:654) at
com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:205) at
com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1700) at
com.sun.corba.se.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:180) at
com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:148) at
org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:475) at
org.omg.CosTransactions._SynchronizationStub.after_completion(_SynchronizationStub.java:38) at
com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.doAfterCompletion(ArjunaTransactionImple.java:1636) at
com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.commit(ArjunaTransactionImple.java:383) at
com.arjuna.ats.internal.jts.ControlWrapper.commit(ControlWrapper.java:244) at
com.arjuna.ats.internal.jts.orbspecific.CurrentImple.commit(CurrentImple.java:247) at
com.arjuna.ats.jts.extensions.AtomicTransaction.commit(AtomicTransaction.java:276) at
com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.commitAndDisassociate(TransactionImple.java:1313) at
com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.commit(BaseTransaction.java:130) at
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:89) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:91) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:279) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327) at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at
org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) 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.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.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:331) at
org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:69) at
org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:202) at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at
java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at
java.lang.Thread.run(Thread.java:745) at
org.jboss.threads.JBossThread.run(JBossThread.java:320)Caused by:
org.omg.CORBA.TRANSACTION_UNAVAILABLE: ARJUNA022258: Transaction was inactive vmcid: 0x0
minor code: 1 completed: No at
com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.createHierarchy(Interposition.java:189) at
com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.setupHierarchy(Interposition.java:107) at
com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.create(Interposition.java:66) at
com.arjuna.ats.internal.jts.interposition.resources.arjuna.InterpositionCreator.recreateLocal(InterpositionCreator.java:46) at
com.arjuna.ats.internal.jts.interposition.FactoryElement.recreateLocal(FactoryList.java:66) at
com.arjuna.ats.internal.jts.interposition.FactoryList.recreateLocal(FactoryList.java:115) at
com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple.recreateLocal(TransactionFactoryImple.java:230) at
com.arjuna.ats.internal.jts.context.ContextManager.createHierarchy(ContextManager.java:703) at
com.arjuna.ats.internal.jts.context.ContextManager.currentPIContext(ContextManager.java:610) at
com.arjuna.ats.internal.jts.context.ContextManager.current(ContextManager.java:170) at
com.arjuna.ats.internal.jts.context.ContextManager.associate(ContextManager.java:311) at
com.arjuna.ats.internal.jts.OTSImpleManager.current(OTSImpleManager.java:76) at
com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.getTimeout(BaseTransaction.java:241) ...
147 more
{code}