From: Sava J. <sju...@mr...> - 2006-02-13 07:49:13
|
Hi All, I have just deployed latest snapshot; We upgraded from 20050803 snapshot where all of our queries were working just fine and the build was fairly stable; I know there was a change in XQuery engine and we were just about to start "adjusting" our queries, but here is the first issue and I have no clue what is wrong!!! Under db/data/users we have users.xml with following structure: <users> <user id="4"> <uid>brock</uid> <dfirstname>D'Arcey</dfirstname> <dlastname>Rock</dlastname> <password>8C6F5D02DEB21501AAD3B435B51404EE</password> <title>dr</title> <access_right>all</access_right> <status>active</status> </user> <user id="3"> <uid>aford</uid> <dfirstname>Alan</dfirstname> <dlastname>Ford</dlastname> <password>8C6F5D02DEB21501AAD3B435B51404EE</password> <title>dr</title> <access_right>all</access_right> <status>active</status> </user> </users> Executing the following query returns the error: let $id := //user/@id return $id ------------------------------------------------------ Error: An error occurred while retrieving results: org.xml.sax.SAXException: Error SENR0001: attribute 'id' has no parent element org.xmldb.api.base.XMLDBException: org.xml.sax.SAXException: Error SENR0001: attribute 'id' has no parent element at org.exist.xmldb.RemoteXMLResource.getContent(RemoteXMLResource.java:168) at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:417) Caused by: org.apache.xmlrpc.XmlRpcException: org.xml.sax.SAXException: Error SENR0001: attribute 'id' has no parent element at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163) at org.exist.xmldb.RemoteXMLResource.getContent(RemoteXMLResource.java:166) ... 1 more Caused by: org.apache.xmlrpc.XmlRpcException: org.xml.sax.SAXException: Error SENR0001: attribute 'id' has no parent element at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163) at org.exist.xmldb.RemoteXMLResource.getContent(RemoteXMLResource.java:166) at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:417) ----------------------------------------------------------------------------- We use REST and eXist runs under Tomcat 5.5, Java 1.5.0_05 Any help is welcome!!! Should we use the previous snapshot? THANKS, Sava |