Description of problem: org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase - testSLSBMandatoryTx - testClientTransactionManagement fails once run with other tests with ARJUNA022006: The ORB has not been initialized yet Version-Release number of selected component (if applicable): EAP 6.4.0.DR2 How reproducible: Not if run as a single test, only once I run whole it.basic module Steps to Reproduce: 1. See reproducer jobs configuration Actual results: org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase.testSLSBMandatoryTx https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eapp-640-as-testsuite-EJBClientXidTransactionTestCase-RHEL_IPv6_secman/2/jdk=ibm1.6,label_exp=eap-sustaining%20&&%20RHEL5 && x86 && ipv6/testReport/org.jboss.as.test.integration.ejb.remote.client.api.tx/EJBClientXidTransactionTestCase/testSLSBMandatoryTx/ com.arjuna.ats.arjuna.exceptions.FatalError at com.arjuna.ats.internal.jts.ORBManager.getPOA(ORBManager.java:96) at com.arjuna.ats.internal.jts.OTSImpleManager.<clinit>(OTSImpleManager.java:296) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:201) at com.arjuna.ats.jts.OTSManager.get_current(OTSManager.java:71) at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.checkTransactionState(BaseTransaction.java:265) at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.begin(BaseTransaction.java:72) at org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase.testSLSBMandatoryTx(EJBClientXidTransactionTestCase.java:130) org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase.testClientTransactionManagement https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eapp-640-as-testsuite-EJBClientXidTransactionTestCase-RHEL_IPv6_secman/2/jdk=ibm1.6,label_exp=eap-sustaining%20&&%20RHEL5 && x86 && ipv6/testReport/org.jboss.as.test.integration.ejb.remote.client.api.tx/EJBClientXidTransactionTestCase/testClientTransactionManagement/ java.lang.NoClassDefFoundError: com.arjuna.ats.internal.jts.OTSImpleManager (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:141) at com.arjuna.ats.jts.OTSManager.get_current(OTSManager.java:71) at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.checkTransactionState(BaseTransaction.java:265) at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.begin(BaseTransaction.java:72) at org.jboss.as.test.integration.ejb.remote.client.api.tx.EJBClientXidTransactionTestCase.testClientTransactionManagement(EJBClientXidTransactionTestCase.java:152) Expected results: Both tests pass Additional info: To see server logs and surefire reports: - click on "red ball" - click on Build Artifacts - navigate to testsuite/integration/basic/target/surefire-reports/ Reproducer job - RHEL IPv6 w/ secman https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eapp-640-as-testsuite-EJBClientXidTransactionTestCase-RHEL_IPv6_secman/2/ Reproducer job - solaris https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-640-as-testsuite-EJBClientXidTransactionTestCase/5/ Seen also on RHEL e.g.: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap-6x-as-testsuite-rhel/5/RELEASE=6.4.0,jdk=openjdk1.6_local,label_exp=eap-sustaining%20&&%20RHEL6%20&&%20x86_64/testReport/
Updated links to test failures into "clickable" form: - testSLSBMandatoryTx: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eapp-640-as-testsuite-EJBClientXidTransactionTestCase-RHEL_IPv6_secman/2/jdk=ibm1.6,label_exp=eap-sustaining%20&&%20RHEL5%20&&%20x86%20&&%20ipv6/testReport/org.jboss.as.test.integration.ejb.remote.client.api.tx/EJBClientXidTransactionTestCase/testSLSBMandatoryTx/ - testClientTransactionManagement: https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eapp-640-as-testsuite-EJBClientXidTransactionTestCase-RHEL_IPv6_secman/2/jdk=ibm1.6,label_exp=eap-sustaining%20&&%20RHEL5%20&&%20x86%20&&%20ipv6/testReport/org.jboss.as.test.integration.ejb.remote.client.api.tx/EJBClientXidTransactionTestCase/testClientTransactionManagement/ Please use 'Unwrap comment' button to make description more readable.
Hi Petr, This test only makes sense to run with the none-JTS transaction manager as it is about EJB remoting transaction propagation. As such it does not do any ORB initialization. The test attempts to set Narayana to use the JTA transaction manager using system properties: https://github.com/jbossas/jboss-eap/blob/6.x/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/remote/client/api/tx/EJBClientXidTransactionTestCase.java#L112 Unfortunately these are only read once at startup, hence why the test fails when ran with other tests. Reconfiguring the transaction manager from JTS to none-JTS within one JVM is hairy and not recommended. Even then, you can't reconfigure it using system properties and would need something like this probably: https://github.com/jbossas/jboss-eap/pull/1856 Petr, are you able to test my change for me as I am not really too au fait with the EAP testsuite. Many thanks, Tom
Hi Tom, sure, we will test it out and let you know whether it helps. Petr
Hi Tom. I tested your change in reproducer job on Solaris. EJBClientXidTransactionTestCase finished witnout any errors, so the error was probably fixed by your commit. Marek
Perfect - thanks Marek!
https://github.com/jbossas/jboss-eap/pull/1856
Verified on EAP 6.4.0.DR11
Petr Kremensky <pkremens> updated the status of jira JBQA-11003 to Closed