Problem in parsing when using jep function in jBoss

Skip to first unread message

jose carlos Dias

Sep 21, 2017, 6:49:15 PM9/21/17
to Jep Java Users

We used the jep-java-3.4 version a few years ago.
To date we have generated our application for use in Tomcat and we have no problem with its use.

Now we need to make our application available to jBoss (7.1 or 6.4 eap) even though it generates .war correctly,
when using some functions written for Jep, we received the following message:

15: 06: 02,477 ERROR [arteinfo] (http - *: lllegal parameters null, GLB_MES_ANO_SISTEMA (String): com.singularsys.jep.functions.IllegalParameterException: *: lllegal parameters null, GLB_MES_ANO_SISTEMA ( String)
at com.singularsys.jep.functions.Multiply.mul (Unknown Source) [jep-java-3.4.jar:]

In Java it is:

jep.parse (expression);

at where:
jep is an instance of Jep

In Tomcat7, 8 we have no problem. In parse it returns GLOBAL

Already on jBoss, we received the error presented. Inspecting the parse it returns Operator: "*"
Here is the class of the Jep function:

Sure of your attention of guidelines to solve this problem, thank you already.

Richard Morris

Sep 21, 2017, 7:18:21 PM9/21/17
to Jep Java Users
A slightly more complete example might be helpful.

From what I can tell you have an expression 
String expression ="GLOBAL (\"GLB_MES_ANO_SISTEMA\")";

Now this could be interpreted in two ways. If GLOBAL has been defined as a function using

jep.addFunction("GLOBAL",  .... );

it would be treated as a function call.

However, if the function has not been defined it will treat it as an implicit multiplication basically


the error messages seem to indicate this is whats happened. The error has occurred in the multiplication routine.

To help debugging it might help to include the output of 


The code where Jep ins initialised would also help.

Hope that's of some help

Reply all
Reply to author
0 new messages