[ https://issues.apache.org/jira/browse/XMLBEANS-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dirk Joosen updated XMLBEANS-385: --------------------------------- Description: Gents. It seems that XQueryXPath isn't working with versions I used. I took exactly the same version described for version 2.2 of xmlbeans. In my onwn project I get the same Error as when I run the example wich I dowloaded from your side. Buildfile: build.xml init: [echo] xmlbeans.home: /Users/dirkjoosen/Data/Downloads/xmlbeans-2.2.0 [echo] xmlbeans.lib: /Users/dirkjoosen/Data/Downloads/xmlbeans-2.2.0/lib schemas.check: schemas.jar: XQueryXPath.classes: build: run: [echo] ============================== running XQueryXPath [java] Running ExecQuery.selectEmpsByStateCursor [java] [java] Exception in thread "main" java.lang.NullPointerException [java] at net.sf.saxon.query.StaticQueryContext.buildDocument(StaticQueryContext.java:412) [java] at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:74) [java] at org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl$SaxonQueryEngine.cursorExecute(Query.java:345) [java] at org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl.cursorExecute(Query.java:243) [java] at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:48) [java] at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336) [java] at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331) [java] at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839) [java] at org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:74) [java] at org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75) [java] at org.apache.xmlbeans.samples.xquery.XQueryXPath.main(XQueryXPath.java:54) [java] Java Result: 1 Please any advice Regards Dirk Environment: Mac os 10.5 Using Saxon8.6.1 and xmlbeans 2.2 Affects Version/s: Version 2.2 > XQueryXPath example fails to run > -------------------------------- > > Key: XMLBEANS-385 > URL: https://issues.apache.org/jira/browse/XMLBEANS-385 > Project: XMLBeans > Issue Type: Bug > Affects Versions: Version 2.2 > Environment: Mac os 10.5 > Using Saxon8.6.1 and xmlbeans 2.2 > Reporter: Dirk Joosen > Priority: Blocker > > Gents. > It seems that XQueryXPath isn't working with versions I used. > I took exactly the same version described for version 2.2 of xmlbeans. > In my onwn project I get the same Error as when I run the example wich I > dowloaded from your side. > Buildfile: build.xml > init: > [echo] xmlbeans.home: /Users/dirkjoosen/Data/Downloads/xmlbeans-2.2.0 > [echo] xmlbeans.lib: /Users/dirkjoosen/Data/Downloads/xmlbeans-2.2.0/lib > schemas.check: > schemas.jar: > XQueryXPath.classes: > build: > run: > [echo] ============================== running XQueryXPath > [java] Running ExecQuery.selectEmpsByStateCursor > [java] > [java] Exception in thread "main" java.lang.NullPointerException > [java] at > net.sf.saxon.query.StaticQueryContext.buildDocument(StaticQueryContext.java:412) > [java] at > org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:74) > [java] at > org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl$SaxonQueryEngine.cursorExecute(Query.java:345) > [java] at > org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl.cursorExecute(Query.java:243) > [java] at > org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:48) > [java] at > org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336) > [java] at > org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331) > [java] at > org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839) > [java] at > org.apache.xmlbeans.samples.xquery.ExecQuery.updateWorkPhone(ExecQuery.java:74) > [java] at > org.apache.xmlbeans.samples.xquery.XQueryXPath.executeQueries(XQueryXPath.java:75) > [java] at > org.apache.xmlbeans.samples.xquery.XQueryXPath.main(XQueryXPath.java:54) > [java] Java Result: 1 > Please any advice > Regards Dirk -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]