Hi Michael,


$ ls ~/tools/saxon/dist/
doc notices s saxon-license.lic saxon9-sql.jar saxon9ee-qc.jar saxon9ee.jar

$ java -cp ~/tools/saxon/dist/saxon9ee.jar:~/trunk/src/sas/war/WEB-INF/lib/commons-lang-2.4.jar net.sf.saxon.Query -q:books.xq -s:../data/books.xml -TJ
Looking for function {http://www.w3.org/2005/xpath-functions}string-length
Trying net.sf.saxon.functions.SystemFunctionLibrary
Looking for function {java:org.apache.commons.lang.StringUtils}capitalize
Trying net.sf.saxon.functions.SystemFunctionLibrary
Trying net.sf.saxon.functions.VendorFunctionLibrary
Trying net.sf.saxon.functions.ConstructorFunctionLibrary
Trying net.sf.saxon.query.XQueryFunctionLibrary
Trying net.sf.saxon.query.ImportedFunctionLibrary
Trying net.sf.saxon.functions.IntegratedFunctionLibrary
Trying com.saxonica.config.JavaExtensionLibrary
Looking for method capitalize in namespace java:org.apache.commons.lang.StringUtils
Number of actual arguments = 1
Calls to extension functions are not permitted without a Saxon license
Trying net.sf.saxon.query.UnboundFunctionLibrary
Error on line 10 of books.xq:
  XPST0017: Cannot find a matching 1-argument function named
  {java:org.apache.commons.lang.StringUtils}capitalize()
Static error(s) in query


In this trace, the license error showed up.  I then peeked inside saxon eval license :  it had expired 1-week back i.e., 2012-10-07.
So, I guess that's the issue then.   Apologies, I should have double checked that.  
Anyways, my company person (John Crupi) is contacting you on a separate thread to acquire product license.

Thanks for a great product Michael.

thanks,
raj.    

 


On Mon, Oct 15, 2012 at 8:52 AM, Michael Kay <mike@saxonica.com> wrote:
OK, that now make a little bit more sense!

Are you running from the command line? If so, could you please run it with the -TJ option and let us know what output it produces.

Michael Kay
Saxonica


On 15/10/2012 15:41, Raj rajmohan wrote:
Hi Michael,


Sorry - I sent  wrong error message, It should really read  (i.e., 1-argument function)

"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"


The version is Saxon EE 9.3.0.11   (Got this eval jar a month back through my company channel, may be I should try eval license with 9.4.0.6 ? ) 

thanks,
raj

On Mon, Oct 15, 2012 at 6:53 AM, Michael Kay <mike@saxonica.com> wrote:

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 


------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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 


------------------------------------------------------------------------------
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