[ http://nagoya.apache.org/jira/browse/XALANJ-1352?page=history ]

Henry Zongaro updated XALANJ-1352:
----------------------------------

    Priority: Major  (was: Blocker)

> DTMManager.getDTM(int) sometimes returns null for RTF
> -----------------------------------------------------
>
>          Key: XALANJ-1352
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1352
>      Project: XalanJ2
>         Type: Bug
>   Components: DTM
>     Versions: CurrentCVS
>  Environment: Operating System: Windows NT/2K
> Platform: All
>     Reporter: Morris Kwan

>
> I saw a NullPointerException in the testcase 
> extensions\library\libraryNodeset03.xsl when propagating the extension 
> changes 
> to Xalan3. The weird thing is that this problem has nothing to do with the 
> changes I made. It is also intermittent. I can reproduce it on the command 
> line. But the problem disappeared when running inside the debugger. Adding 
> another unrelated command line option can also cause the problem to disappear.
> I finally traced the problem down to 
> org.apache.xpath.objects.XRTreeFrag.finalize(), which calls the destruct() 
> method to release the DTM associated with the RTF. The problem is the DTM can 
> still be referenced after it is released, causing DTMManager.getDTM(int 
> nodeHandle) to return NULL. The finalize() method is called by GC, which 
> explains the undeterministic behavior of this bug.
> I think the main branch also has this problem although I only saw it in the 
> xslt20 branch.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to