It's very strange that it should complain about a 0-argument function call when your actual function call supplies one argument. Could you check/confirm this?

The error messages means that it's got as far as loading the class and checking its methods; it has found a method capitalize() in the relevant class, but not a zero-argument method.

Could you confirm exactly what Saxon version you are using (four-component number, e.g.

Michael Kay

On 15/10/2012 14:28, Raj rajmohan wrote:

I am migrating a Saxon-B based Java codebase to saxon 9.

Usage env is,

* JAXP API (legacy codebase)

* Saxon EE eval license

* saxon-license.lic in the same directory having saxon9ee.jar

I get following error when invoking (any) external java function,


sutils prefix is mapped to uri 'java:org.apache.commons.lang.StringUtils'

"Caused by: net.sf.saxon.trans.XPathException: Cannot find a matching 0-argument function named {java:org.apache.commons.lang.StringUtils}capitalize(). The namespace URI and local name are recognized, but the number of arguments is wrong".

This works fine on Saxon-B edition. 

Appreciate any help.



Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!

saxon-help mailing list archived at