You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Celinio Fernandes <ce...@wanadoo.fr> on 2005/08/10 07:33:21 UTC
No query engine found
Hi,
I do not understand this error, can anyone tell me what am i doing wrong
here please ?
Thanks
java.lang.RuntimeException: No query engine found
at org.apache.xmlbeans.impl.store.Query.getCompiledQuery(Query.java:97)
at org.apache.xmlbeans.impl.store.Query.getCompiledQuery(Query.java:53)
at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:48)
at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1328)
at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1323)
at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3814)
at Conversion.parse(Conversion.java:432)
at Conversion.main(Conversion.java:149)
Exception in thread "main"
Here is my code:
XmlObject resultXml =null;
IOS lios = lesepjs[i].getIOS();
XmlCursor curs = lios.newCursor();
String queryText = "$this:IOS/IO/LO_CO_IDG";
XmlCursor resultCursor = curs.execQuery(queryText); //
<============= line 432
if (resultCursor.getSelectionCount() > 0)
{
resultXml = resultCursor.getObject();
System.out.println(resultXml.toString());
resultCursor.dispose();
}
curs.dispose();
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org