cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <>
Subject C2.2: Accessing static method on Java object with Flowscript
Date Fri, 12 Aug 2011 11:53:07 GMT

I am dealing with the following. An extremely useful Java class provides 
a static method for completing a particular task, like

class Useful {
   private Useful() {}

   public static void someMethod(String arg1, String arg2)


In flow, I do something like

var arg1 = "test1";
var arg2 = "test2";, arg2);

The error I get is

Java constructor for "" with arguments 
"java.lang.String,java.lang.String" not found.

My question is now. How can I call a static method on a Java class, if 
at all, in Flowscript. One solution is to make the constructor of the 
class public (certainly not my preference).


Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email:
University of Oulu, Finland  | WWW:
StruBioCat                   | WWW:
Triacle Biocomputing         | WWW:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message