Red Hat Bugzilla – Bug 1026746
Failing JBoss AS testsuite GetCallerPrincipalTestCase with JTS transactions
Last modified: 2015-10-26 07:45:32 EDT
Created attachment 819655 [details]
Test org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase#testStatefulLifecycle from jboss as testsuite fails when run with JTS transactions.
Download the 6.2.0.ER7 sources and compile in way like:
./build.sh clean install -e -DallTests -Dpublic-repos -U -B -fae -Dmaven.test.skip.exec=true
Then change the standalone-full.xml from build/target/jboss-as-7.3.0.Final-redhat-SNAPSHOT/standalone/configuration to use jts
- jacorb subystem: transactions="on"
- transactions subsystem: add the <jts/> tag
Run the test:
./integration-tests.sh clean install -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.ejb.security.callerprincipal.GetCallerPrincipalTestCase#testStatefulLifecycle
Check the testsuite/integration/basic/target/surefire-reports folder for test logs and testsuite/integration/basic/target/jbossas/standalone/log/server.log for the server logs.
The exception cause is:
Caused by: org.omg.CORBA.TRANSACTION_UNAVAILABLE: ARJUNA022258: Transaction was inactive
The logs are added as attachement.
Created attachment 819656 [details]
Someone is calling getTransactionTimeout in an afterCompletion, this is raising a SystemException which is compatible with the signature of the SPI method. I think it would need a change in the EJB3 code to deal with that scenario.
Hitting with EAP 6.3.0.DR4 as well.
Still hitting (with EAP 6.3.0.ER9 as well).
From my experience this is still not fixed in WildFly see https://issues.jboss.org/browse/WFLY-5578
There is an similar issue here https://issues.jboss.org/browse/WFLY-2814 which is working for WFLY10 but it's not connected with this issue which touches transactions with JTS.