Bug 1026746

Summary: Failing JBoss AS testsuite GetCallerPrincipalTestCase with JTS transactions
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ondrej Chaloupka <ochaloup>
Component: EJBAssignee: David M. Lloyd <david.lloyd>
Status: CLOSED EOL QA Contact: Ondrej Chaloupka <ochaloup>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0, 6.4.0CC: hhovsepy, istudens
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 12:47:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
GetCallerPrincipalTestCase.txt
none
TEST-GetCallerPrincipalTestCase.xml none

Description Ondrej Chaloupka 2013-11-05 10:57:13 UTC
Created attachment 819655 [details]
GetCallerPrincipalTestCase.txt

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.

Comment 1 Ondrej Chaloupka 2013-11-05 10:57:48 UTC
Created attachment 819656 [details]
TEST-GetCallerPrincipalTestCase.xml

Comment 4 tom.jenkinson 2013-11-06 15:55:15 UTC
Hi Ondra,

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.

Tom

Comment 5 Ondrej Chaloupka 2014-03-18 10:17:39 UTC
Hitting with EAP 6.3.0.DR4 as well.

Comment 6 Ondrej Chaloupka 2014-07-07 07:29:48 UTC
Still hitting (with EAP 6.3.0.ER9 as well).

Comment 8 Ondrej Chaloupka 2015-10-26 11:45:32 UTC
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.