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. 9.4.0.6)?

Michael Kay
Saxonica

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

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:capitalize('hello')

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.


thanks,

raj



------------------------------------------------------------------------------
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!
http://p.sf.net/sfu/newrelic-dev2dev


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help