W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2009

Re: Using Saxon9HE, Calabash crashes with java.lang.NoSuchMethodError

From: David A. Lee <dlee@calldei.com>
Date: Sat, 19 Sep 2009 08:57:24 -0400
Message-ID: <4AB4D534.5030100@calldei.com>
To: Manfred Staudinger <manfred.staudinger@gmail.com>
CC: xproc-dev <xproc-dev@w3.org>
This is to be expected (or at least I expected it)
In Saxon 9.2 he mechanism for implementing xpath/xslt/xquery extension 
functions has been totally redesigned.
XProc needs these at its core in order to implement the special xproc 
functions in xpath.

I'm facing the same consideration myself of if or when to update to 
Saxon 9.2.

David A. Lee
dlee@calldei.com  
http://www.calldei.com
http://www.xmlsh.org
812-482-5224



Manfred Staudinger wrote:
> A rather small test [1] seems to show that Calabash 0.9.14 is not
> working properly with Saxon-HE 9.2.0.2J but runs fine with Saxon
> 9.1.0.5J. For the tests the Classpath is given explicit:
> java -cp "J:\Programme\xproc\calabash\lib\calabash.jar;D:\Programme\Saxon9.1.0.5\saxon9.jar;D:\Programme\Saxon9.1.0.5\saxon9-xpath.jar;D:\Programme\Saxon9.1.0.5\saxon9-s9api.jar"
> com.xmlcalabash.drivers.Main t-show-dirs.xpl dir=ttt
> works fine and gives
> <c:directory xmlns:c="http://www.w3.org/ns/xproc-step"><c:directory
> name="ttt"/></c:directory>
> as expected. But when I use
> java -cp "J:\Programme\xproc\calabash\lib\calabash.jar;D:\Programme\Saxon9\saxon9he.jar"
> com.xmlcalabash.drivers.Main t-show-dirs.xpl dir=ttt
> then I get an Exception in thread "main" java.lang.NoSuchMethodError:
> net.sf.saxon.functions.StandardFunction.makeEntry(Ljava/lang/String;Ljava/lang/Class;IIILnet/sf/saxon/type/ItemType;I)Lnet/sf/saxon/functions/StandardFunction$Entry;
> 	at com.xmlcalabash.functions.XProcFunctionLibrary.register(XProcFunctionLibrary.java:69)
> 	at com.xmlcalabash.functions.XProcFunctionLibrary.init(XProcFunctionLibrary.java:78)
> 	at com.xmlcalabash.functions.XProcFunctionLibrary.<init>(XProcFunctionLibrary.java:46)
> 	at com.xmlcalabash.runtime.XAtomicStep.<init>(XAtomicStep.java:61)
> 	at com.xmlcalabash.runtime.XCompoundStep.<init>(XCompoundStep.java:28)
> 	at com.xmlcalabash.runtime.XRootStep.<init>(XRootStep.java:24)
> 	at com.xmlcalabash.core.XProcRuntime.load(XProcRuntime.java:267)
> 	at com.xmlcalabash.drivers.Main.run(Main.java:133)
> 	at com.xmlcalabash.drivers.Main.main(Main.java:65)
>
> Any workaround?
>
> Regards,
> Manfred
>
> [1] t-show-dirs.xpl
> <?xml version="1.0" encoding="UTF-8"?>
> <p:declare-step name="myPipeline"
>    xmlns:c="http://www.w3.org/ns/xproc-step"
>    xmlns:p="http://www.w3.org/ns/xproc">
>    <p:input port='parameters' kind='parameter' primary='true'/>
>    <p:output port="result"/>
>    <p:option name="dir"/>
>    <p:add-attribute match="*/c:directory" attribute-name="name" name="level-0">
>       <p:with-option name="attribute-value"
> select="$dir"><p:empty/></p:with-option>
>       <p:input port="source">
>          <p:inline>
> <c:directory><c:directory/></c:directory>
>          </p:inline>
>       </p:input>
>    </p:add-attribute>
> </p:declare-step>
>   
Received on Saturday, 19 September 2009 12:58:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 19 September 2009 12:58:14 GMT