Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 900293 (JBPAPP6-749)

Summary: Domain management API fails to expose JTS participant records from the transaction object store
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ivo Studensky <istudens>
Component: Transaction ManagerAssignee: Michael <mmusgrov>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: istudens, paul.robinson
Target Milestone: ---   
Target Release: EAP 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-749
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-22 10:08:43 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
0242-JBPAPP-8824-Fix-NPE-whilst-probing-txn-logs.patch none

Description Ivo Studensky 2012-04-25 14:58:16 UTC
project_key: JBPAPP6

Domain management API fails when trying to expose transaction participants under JTS. Under JTA it works nicely, but under JTS it fails with NPE, see the following log snippet.
{noformat}
16:41:07,653 INFO  [org.jboss.as.test.jbossts.tooling.ToolingTestCase] (main) operation={
    "operation" => "probe",
    "address" => [
        ("subsystem" => "transactions"),
        ("log-store" => "log-store")
    ]
}
16:41:07,733 WARN  [com.arjuna.ats.arjuna] (management-handler-thread - 2) ARJUNA012035: Activate of object with id = 0:0:0:0:0 and type /StateManager/AbstractRecord/ExtendedResourceRecord unexpectedly failed
16:41:07,738 WARN  [com.arjuna.ats.arjuna] (management-handler-thread - 2) ARJUNA012035: Activate of object with id = 0:0:0:0:0 and type /StateManager/AbstractRecord/ExtendedResourceRecord unexpectedly failed
16:41:07,896 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014612: Operation ("probe") failed - address: ([
    ("subsystem" => "transactions"),
    ("log-store" => "log-store")
]): java.lang.NullPointerException
	at org.jboss.as.txn.subsystem.LogStoreProbeHandler.addParticipants(LogStoreProbeHandler.java:109)
	at org.jboss.as.txn.subsystem.LogStoreProbeHandler.addTransactions(LogStoreProbeHandler.java:143)
	at org.jboss.as.txn.subsystem.LogStoreProbeHandler.probeTransactions(LogStoreProbeHandler.java:161)
	at org.jboss.as.txn.subsystem.LogStoreProbeHandler.execute(LogStoreProbeHandler.java:184)
	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:466) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:139) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:108) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:287) [jboss-as-protocol-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:487) [jboss-as-protocol-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
	at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
{noformat}

According to first lines of the snippet above it seems that the failure comes from JBossTS, see Arjuna warnings.
NPE is then thrown out from the following line of org.jboss.as.txn.subsystem.LogStoreProbeHandler:
{noformat}
  String pAddress = pAttributes.get(JNDI_PROPNAME);
{noformat}


Steps to reproduce:
# git clone git://github.com/istudens/jboss-as.git
# cd jboss-as
# git checkout crash_rec_tests
# ./build.sh clean install -DskipTests -Dts.noSmoke
# cd testsuite/integration/jbossts
# mvn clean install -Dtest=ToolingTestCase#commitHalt -Djbossts.jts

Comment 1 Rajesh Rajasekaran 2012-04-25 22:16:39 UTC
Labels: Added: eap6_need_triage


Comment 2 Michael 2012-04-27 12:27:57 UTC
The attached patch fixes the issue.

Comment 3 Michael 2012-04-27 12:27:57 UTC
Attachment: Added: 0242-JBPAPP-8824-Fix-NPE-whilst-probing-txn-logs.patch


Comment 5 Ivo Studensky 2012-05-02 14:36:28 UTC
The attached patch seems to be good.
I ran the test again with the patch applied and they passed.


Comment 6 Michael 2012-05-03 16:12:33 UTC
Git Pull Request: Added: https://github.com/jbossas/jboss-as/pull/2223


Comment 7 Ivo Studensky 2012-05-04 09:23:43 UTC
Link: Added: This issue is related to JBQA-6260


Comment 8 Shelly McGowan 2012-05-04 19:03:02 UTC
upstream pull request merged.  Will be in EAP CR build.

Comment 9 Shelly McGowan 2012-05-04 19:03:03 UTC
Git Pull Request: Removed: https://github.com/jbossas/jboss-as/pull/2223 Added: https://github.com/jbossas/jboss-as/pull/2223


Comment 10 Paul Gier 2012-05-10 17:52:07 UTC
Labels: Removed: eap6_need_triage 


Comment 11 Ivo Studensky 2012-05-22 10:08:43 UTC
Verified on ER8.

Comment 12 Anne-Louise Tangring 2012-11-05 17:51:04 UTC
Docs QE Status: Removed: NEW