You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Harpal Gujral (JIRA)" <xm...@xml.apache.org> on 2006/10/17 19:57:41 UTC
[jira] Commented: (XMLBEANS-287) NoSuchMethodError
[ http://issues.apache.org/jira/browse/XMLBEANS-287?page=comments#action_12443016 ]
Harpal Gujral commented on XMLBEANS-287:
----------------------------------------
Neil,
It seems you are using a later version of Saxon-B. The XMLBeans 2.2.0 documentation does suggest that one uses Saxon-B 8.6.1. for XPath/XQuery support.
Saxon 8.8, I noticed, has done away with the said method, which is what I suspect you are using.
Get the correct version here... http://prdownloads.sourceforge.net/saxon/saxonb8-6-1.zip?download
Regards
Harpal Gujral
> NoSuchMethodError
> -----------------
>
> Key: XMLBEANS-287
> URL: http://issues.apache.org/jira/browse/XMLBEANS-287
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Java 1.5.0_08; Windows NT
> Reporter: Neil Hornbeck
>
> When trying to create a cursor by executing an xquery ( XmlCursor cursor = doc.newCursor().execQuery( ns + path ); ) I get:
> Exception in thread "main" java.lang.NoSuchMethodError: net.sf.saxon.query.DynamicQueryContext.getContextNode()Lnet/sf/saxon/om/NodeInfo;
> at org.apache.xmlbeans.impl.xquery.saxon.XBeansXQuery.execQuery(XBeansXQuery.java:76)
> at org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl$SaxonQueryEngine.cursorExecute(Query.java:345)
> at org.apache.xmlbeans.impl.store.Query$SaxonQueryImpl.cursorExecute(Query.java:243)
> at org.apache.xmlbeans.impl.store.Query.cursorExecQuery(Query.java:48)
> at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1336)
> at org.apache.xmlbeans.impl.store.Cursor._execQuery(Cursor.java:1331)
> at org.apache.xmlbeans.impl.store.Cursor.execQuery(Cursor.java:3839)
> If I look at the DynamicQueryContext class in the Saxon8.jar, the method getContextNode() is indeed missing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org