From: Alexandre L. <ale...@do...> - 2004-04-06 02:35:10
|
Please find attached, a self demonstrating code reproducing the error. Syntax : java -classpath $CLASSPATH AOOBE base document sample.xml Thanks in advance for your help, Alexandre Liduena. Jean-Marc Vanel a =E9crit : > = > Le 04/05/2004 12:36 PM, Alexandre Liduena a =E9crit : > = > > Hello, > > > > In local mode, I get an > > > >java.lang.ArrayIndexOutOfBoundsException: -1 > > at > >org.exist.dom.DocumentImpl.getTreeLevelOrder(DocumentImpl.java:462) > > at org.exist.dom.NodeImpl.getParentGID(NodeImpl.java:347) > > at org.exist.dom.NodeImpl.getParentNode(NodeImpl.java:357) > > at > >org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManag= erDefault.java:603) > > at > >org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java:2= 20) > > at org.apache.xpath.XPathAPI.eval(XPathAPI.java:283) > > at > >org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:172) > > at org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:13= 3) > > at org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:11= 3) > >... > > > >using XPath query applyed on node returned by getContentAsDOM() method= > >of XmlResource class, whereas rpc mode works correctly. I have tried > >both 1.0b1 & lastest cvs snapshot, and I am using lastest xalan.jar > > > > Have you a bug resolution in work or any suggestion to this ? > > > > > There are some restrictions on queries on in-memory Documents that are > not clear to me. > But this is transitory since Wolfgang plans to work on that. > = > I you tell more about your queries, maybe a workaround can be found. > Ideally, a complete zip with a shell script to reproduce the problem > would be apreciated. > = > > Regards, > > > > Alexandre Liduena. > > > > > > > = > -- > Jean-Marc Vanel 01 39 43 31 46 > Conseil et Services / d=E9veloppement & int=E9gration logiciels > Logiciel libre, Web, Java, XML ... > A la pointe de la technique, au service des projets > http://jmvanel.free.fr/ =3D=3D=3D) CV, software resources > = > Mes journaux: > - sujets g=E9n=E9raux en Fran=E7ais: http://jmvanel.free.fr/Block-note.= html > - sujets informatiques en Fran=E7ais: http://jmvanel.free.fr/notes-info= rmatiques.html > - computer science diary : http://jmvanel.free.fr/computer-notes.html > = > Worldwide Botanical Knowledge Base > http://wwbota.free.fr/ > test XML query engine: http://jmvanel.free.fr/protea.html -- = (=B0- 05-59-41-59-29 //\ http://www.docimsol.com v_/_ mailto:ale...@do... |