From: Shahid M. <sh...@st...> - 2003-02-20 16:49:07
|
Dear, I have found a bug in eXist-0.9. Exist make a exception when my XPath query (collection('temp')/omdoc/theory/*[@id='aaa']) on the following xml file. <?xml version='1.0' encoding='UTF-8' ?> <omdoc> <theory> <omtext id='a1'> <omlet id = 'd'> //this element existance cause of exception </omlet> </omtext> </theory> </omdoc> It produces the following expception: java.lang.NullPointerException: cannot compare null values at org.exist.dom.NodeProxy$NodeProxyComparator.compare(NodeProxy.java:33 0) at org.exist.dom.NodeProxy.compareTo(NodeProxy.java:142) at org.exist.dom.ArraySet.search(ArraySet.java:141) at org.exist.dom.ArraySet.contains(ArraySet.java:303) at org.exist.dom.VirtualNodeSet.addInternal(VirtualNodeSet.java:155) at org.exist.dom.VirtualNodeSet.nodeHasParent(VirtualNodeSet.java:148) at org.exist.dom.NodeSet.getChildren(NodeSet.java:147) at org.exist.dom.ArraySet.getChildren(ArraySet.java:382) at org.exist.xpath.LocationStep.getAttributes(LocationStep.java:148) at org.exist.xpath.LocationStep.eval(LocationStep.java:111) at org.exist.xpath.OpEquals.nodeSetCompare(OpEquals.java:235) at org.exist.xpath.OpEquals.eval(OpEquals.java:194) at org.exist.xpath.PathExpr.eval(PathExpr.java:131) at org.exist.xpath.Predicate.eval(Predicate.java:57) at org.exist.xpath.LocationStep.applyPredicate(LocationStep.java:82) at org.exist.xpath.LocationStep.eval(LocationStep.java:116) at org.exist.xpath.PathExpr.eval(PathExpr.java:131) at org.exist.xmldb.LocalXPathQueryService.doQuery(LocalXPathQueryService .java:121) at org.exist.xmldb.LocalXPathQueryService.query(LocalXPathQueryService.j ava:87) at org.exist.InteractiveClient.find(InteractiveClient.java:838) at org.exist.InteractiveClient.process(InteractiveClient.java:494) at org.exist.InteractiveClient.run(InteractiveClient.java:1412) at org.exist.InteractiveClient.main(InteractiveClient.java:284) This is the least input file that I have provided it. It does not make any exception on element names but on the mention struture. I have tested it with my different test cases but result is same. I have commented out the minmal error cuase in the input file. My operating System Info: Suse Linux 7.2 Please write me feed back about the bug report. Shahid Manzoor Saarland Univeristy |