[jbossts-issues] [JBoss JIRA] (JBTM-957) NullPointerException found in com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple

Mark Little (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 7 12:02:40 EST 2011


    [ https://issues.jboss.org/browse/JBTM-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648925#comment-12648925 ] 

Mark Little commented on JBTM-957:
----------------------------------

Just confirming a conversation Jonathan and I have had: in the C++ implementation, createTransactionHandle in OTS_Control also did a setControlHandle. The Java version of createTransactionHandle doesn't do that any longer and the ServerControl constructor was obviously overlooked when making the change. So an explicit call to setControlHandle should be in there.
                
> NullPointerException found in com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-957
>                 URL: https://issues.jboss.org/browse/JBTM-957
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JTS
>    Affects Versions: 4.15.3
>            Reporter: David Lloyd
>            Assignee: Jonathan Halliday
>            Priority: Minor
>             Fix For: 4.16.0.Final
>
>
> com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple's doBeforeCompletion() method assumes that the "controlHandle" field is initialized to a non-null value.  However, com.arjuna.ats.internal.jts.orbspecific.interposition.ServerControl does not do said initialization despite the fact that the apparent contract published in com.arjuna.ats.internal.jts.orbspecific.ControlImple specifies that "The derived classes are responsible for setting everything up, including adding the control to the list of controls...".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list