Sorry, the error message should read 

" Caused by: net.sf.saxon.trans.XPathException: Cannot find a matching 1-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
    "

thanks,
/raj

On Mon, Oct 15, 2012 at 6:28 AM, Raj rajmohan <rajmohan.krishnamurthy@gmail.com> 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