### Method not matched

If the error "Method not matched" occurs, it means that the parameter for the method is/are not matching the definition.
This is an Example of a JavaObject RunMethod with wrong parameter.
Wrong
joInlineLava.RunMethod("HelloWorldParameter", Null)
Right
joInlineLava.RunMethod("HelloWorldParameter", Array("Hello World!"))
The method HelloWorldParameter expects a String as Parameter.
#If JAVA
'Method HelloWorldParameter
'Purpose: To log a string which is given as parameter
'Parameter String
public static void HelloWorldParameter(String s) {
BA.Log("HelloWorldParameter(String)" + s);
System.out.println("HelloWorldParameter(String)" + s);
}
#End If
IMPORTANT
To sum up:
When using JavaObjects with the RunMethod ensure to use the right type of parameters and the right number.
Check the relevant API documentation to go for sure.

Changed: , Category: JavaObject, File: T6C208M1525.htm, ID: 1525