PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2878 *** shadow/2878 Sun Jul 29 23:07:46 2001 --- shadow/2878.tmp.18975 Sun Jul 29 23:07:46 2001 *************** *** 0 **** --- 1,76 ---- + +============================================================================+ + | XPath crashes under XalanJ 2.2.D8 | + +----------------------------------------------------------------------------+ + | Bug #: 2878 Product: XalanJ2 | + | Status: NEW Version: 2.2.x | + | Resolution: Platform: Other | + | Severity: Normal OS/Version: Other | + | Priority: Other Component: org.apache.xpath | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Given the XPath + + (//*[local-name()='included'] | //@* | //namespace::*) + + and the following input, XalanJ 2.2.D8 throws + + java.lang.NullPointerException + at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:528) + at org.apache.xpath.axes.PredicatedNodeTest.acceptNode + (PredicatedNodeTest.java:428) + at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:395) + at org.apache.xpath.axes.WalkingIterator.nextNode + (WalkingIterator.java:182) + at org.apache.xpath.axes.UnionPathIterator.nextNode + (UnionPathIterator.java:686) + at org.apache.xpath.axes.UnionPathIterator.runTo + (UnionPathIterator.java:721) + at org.apache.xml.dtm.ref.DTMNodeList.<init>(DTMNodeList.java:114) + at org.apache.xpath.objects.XNodeSet.nodelist(XNodeSet.java:349) + at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:205) + at org.apache.xpath.XPathAPI.selectNodeList(XPathAPI.java:182) + at org.xmlsecurity.temp.Xalan22D8crash.main(Xalan22D8crash.java:58) + + Input was: + + String input = "" + + "<included xmlns:ietf='http://www.ietf.org/'>" + + "<notIncluded xmlns:w3c='http://www.w3c.org/'>" + + "<notIncluded xmlns:ietf='http://www.ietf.org/'>" + + "<included xmlns='http://www.ietf.org'>" + + "<included>" + + "<included xmlns='http://www.w3c.org'>" + + "<included>" + + "<notIncluded xmlns='http://www.ietf.org'>" + + "<notIncluded>" + + "<notIncluded xmlns:w3c='http://www.w3c.org/'>" + + "<notIncluded>" + + "<notIncluded xmlns='http://www.w3c.org'>" + + "<notIncluded>" + + "<notIncluded>" + + "<included xmlns:ietf='http://www.ietf.org/' >" + + "</included>" + + "</notIncluded>" + + "</notIncluded>" + + "</notIncluded>" + + "</notIncluded>" + + "</notIncluded>" + + "</notIncluded>" + + "</notIncluded>" + + "</included>" + + "</included>" + + "</included>" + + "</included>" + + "</notIncluded>" + + "</notIncluded>" + + "</included>"; + + Regards, + + Christian
