You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Glen Blanchard (JIRA)" <xa...@xml.apache.org> on 2005/07/11 09:01:11 UTC
[jira] Created: (XALANJ-2169) Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
-------------------------------------------------------------------------------------
Key: XALANJ-2169
URL: http://issues.apache.org/jira/browse/XALANJ-2169
Project: XalanJ2
Type: Bug
Components: Xalan, XSLTC, DTM
Versions: 2.6
Environment: Java 1.4.2_06; Xalan 2.6.0; Xerces 2.6.2; Windows 2000
Reporter: Glen Blanchard
When using an extension over a RTF converted to a NodeList using the nodeset extension function, some methods on the Nodes in the NodeList throw and java.lang.ArrayIndexOutOfBoundsException: -1
Tracing through the code it comes down to the DTMDefaultBase.makeNodeIdentity function returning a DTM.NULL because the nodeHandle passed in doesn't belong to "this" DTMDefaultBase instance.
Comment extracted from DTMDefaultBase:
// %REVIEW% Wish I didn't have to perform the pre-test, but
// someone is apparently asking DTMs whether they contain nodes
// which really don't belong to them. That's probably a bug
// which should be fixed, but until it is:
if(m_mgrDefault.m_dtms[whichDTMindex]!=this)
return NULL;
The full call path is:
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.xml.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:438)
at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:526)
at org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:973)
at org.apache.xml.dtm.ref.DTMNodeProxy.getFirstChild(DTMNodeProxy.java:370)
Let me know if more detail is required as this is the last hurdle for a major speed improvement.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2169) Functions on Nodes in NodeList fail
with java.lang.ArrayIndexOutOfBoundsException: -1
Posted by "Sean Pudney (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANJ-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520074 ]
Sean Pudney commented on XALANJ-2169:
-------------------------------------
Any updates on this issue? I'm having the same problem on 2.7 when using XSLTC
> Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
> -------------------------------------------------------------------------------------
>
> Key: XALANJ-2169
> URL: https://issues.apache.org/jira/browse/XALANJ-2169
> Project: XalanJ2
> Issue Type: Bug
> Components: DTM, Xalan, XSLTC
> Affects Versions: 2.6
> Environment: Java 1.4.2_06; Xalan 2.6.0; Xerces 2.6.2; Windows 2000
> Reporter: Glen Blanchard
> Attachments: booklist.xml, Extension.java, test.xsl
>
>
> When using an extension over a RTF converted to a NodeList using the nodeset extension function, some methods on the Nodes in the NodeList throw and java.lang.ArrayIndexOutOfBoundsException: -1
> Tracing through the code it comes down to the DTMDefaultBase.makeNodeIdentity function returning a DTM.NULL because the nodeHandle passed in doesn't belong to "this" DTMDefaultBase instance.
> Comment extracted from DTMDefaultBase:
> // %REVIEW% Wish I didn't have to perform the pre-test, but
> // someone is apparently asking DTMs whether they contain nodes
> // which really don't belong to them. That's probably a bug
> // which should be fixed, but until it is:
> if(m_mgrDefault.m_dtms[whichDTMindex]!=this)
> return NULL;
> The full call path is:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.xml.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:438)
> at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:526)
> at org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:973)
> at org.apache.xml.dtm.ref.DTMNodeProxy.getFirstChild(DTMNodeProxy.java:370)
> Let me know if more detail is required as this is the last hurdle for a major speed improvement.
> Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2169) Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2169?page=all ]
Brian Minchau updated XALANJ-2169:
----------------------------------
fix-priority: fp3
Setting to fp3 per the JIRA meeting on July 12, 2005.
> Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
> -------------------------------------------------------------------------------------
>
> Key: XALANJ-2169
> URL: http://issues.apache.org/jira/browse/XALANJ-2169
> Project: XalanJ2
> Type: Bug
> Components: Xalan, XSLTC, DTM
> Versions: 2.6
> Environment: Java 1.4.2_06; Xalan 2.6.0; Xerces 2.6.2; Windows 2000
> Reporter: Glen Blanchard
> Attachments: Extension.java, booklist.xml, test.xsl
>
> When using an extension over a RTF converted to a NodeList using the nodeset extension function, some methods on the Nodes in the NodeList throw and java.lang.ArrayIndexOutOfBoundsException: -1
> Tracing through the code it comes down to the DTMDefaultBase.makeNodeIdentity function returning a DTM.NULL because the nodeHandle passed in doesn't belong to "this" DTMDefaultBase instance.
> Comment extracted from DTMDefaultBase:
> // %REVIEW% Wish I didn't have to perform the pre-test, but
> // someone is apparently asking DTMs whether they contain nodes
> // which really don't belong to them. That's probably a bug
> // which should be fixed, but until it is:
> if(m_mgrDefault.m_dtms[whichDTMindex]!=this)
> return NULL;
> The full call path is:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.xml.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:438)
> at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:526)
> at org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:973)
> at org.apache.xml.dtm.ref.DTMNodeProxy.getFirstChild(DTMNodeProxy.java:370)
> Let me know if more detail is required as this is the last hurdle for a major speed improvement.
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANJ-2169) Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
Posted by "Glen Blanchard (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2169?page=all ]
Glen Blanchard updated XALANJ-2169:
-----------------------------------
Attachment: Extension.java
test.xsl
booklist.xml
Compile Extension.java and run using the following:
java -cp . org.apache.xalan.xslt.Process -EDUMP -IN booklist.xml -XSL test.xsl
Should return 3
java -cp . org.apache.xalan.xslt.Process -EDUMP -XSLTC -IN booklist.xml -XSL test.xsl
Throws Exception
> Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
> -------------------------------------------------------------------------------------
>
> Key: XALANJ-2169
> URL: http://issues.apache.org/jira/browse/XALANJ-2169
> Project: XalanJ2
> Type: Bug
> Components: Xalan, XSLTC, DTM
> Versions: 2.6
> Environment: Java 1.4.2_06; Xalan 2.6.0; Xerces 2.6.2; Windows 2000
> Reporter: Glen Blanchard
> Attachments: Extension.java, booklist.xml, test.xsl
>
> When using an extension over a RTF converted to a NodeList using the nodeset extension function, some methods on the Nodes in the NodeList throw and java.lang.ArrayIndexOutOfBoundsException: -1
> Tracing through the code it comes down to the DTMDefaultBase.makeNodeIdentity function returning a DTM.NULL because the nodeHandle passed in doesn't belong to "this" DTMDefaultBase instance.
> Comment extracted from DTMDefaultBase:
> // %REVIEW% Wish I didn't have to perform the pre-test, but
> // someone is apparently asking DTMs whether they contain nodes
> // which really don't belong to them. That's probably a bug
> // which should be fixed, but until it is:
> if(m_mgrDefault.m_dtms[whichDTMindex]!=this)
> return NULL;
> The full call path is:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.xml.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:438)
> at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:526)
> at org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:973)
> at org.apache.xml.dtm.ref.DTMNodeProxy.getFirstChild(DTMNodeProxy.java:370)
> Let me know if more detail is required as this is the last hurdle for a major speed improvement.
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Commented: (XALANJ-2169) Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2169?page=comments#action_12315663 ]
Brian Minchau commented on XALANJ-2169:
---------------------------------------
Problem was reproduced by Henry Z.
There are either nodes from multiple DTMs involved, or something like that.
There is a DTM associated with the node list that is different than the DTM for the particular node that is involved.
Perhaps a constructor is being invoked with the wrong DTM specified.
The DTM is being asked for information about a node and it is not the DTM that owns the node.
Not sure if there is a work around for this one.
> Functions on Nodes in NodeList fail with java.lang.ArrayIndexOutOfBoundsException: -1
> -------------------------------------------------------------------------------------
>
> Key: XALANJ-2169
> URL: http://issues.apache.org/jira/browse/XALANJ-2169
> Project: XalanJ2
> Type: Bug
> Components: Xalan, XSLTC, DTM
> Versions: 2.6
> Environment: Java 1.4.2_06; Xalan 2.6.0; Xerces 2.6.2; Windows 2000
> Reporter: Glen Blanchard
> Attachments: Extension.java, booklist.xml, test.xsl
>
> When using an extension over a RTF converted to a NodeList using the nodeset extension function, some methods on the Nodes in the NodeList throw and java.lang.ArrayIndexOutOfBoundsException: -1
> Tracing through the code it comes down to the DTMDefaultBase.makeNodeIdentity function returning a DTM.NULL because the nodeHandle passed in doesn't belong to "this" DTMDefaultBase instance.
> Comment extracted from DTMDefaultBase:
> // %REVIEW% Wish I didn't have to perform the pre-test, but
> // someone is apparently asking DTMs whether they contain nodes
> // which really don't belong to them. That's probably a bug
> // which should be fixed, but until it is:
> if(m_mgrDefault.m_dtms[whichDTMindex]!=this)
> return NULL;
> The full call path is:
> Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
> at org.apache.xml.utils.SuballocatedIntVector.elementAt(SuballocatedIntVector.java:438)
> at org.apache.xml.dtm.ref.DTMDefaultBase._firstch(DTMDefaultBase.java:526)
> at org.apache.xml.dtm.ref.DTMDefaultBase.getFirstChild(DTMDefaultBase.java:973)
> at org.apache.xml.dtm.ref.DTMNodeProxy.getFirstChild(DTMNodeProxy.java:370)
> Let me know if more detail is required as this is the last hurdle for a major speed improvement.
> Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org