.parser.JexlParser.jjtreeCloseNodeScope(JexlParser.java:126)at org.apache.commons.jexl2.parser.Parser.Statement(Parser.java:140)
at org.apache.commons.jexl2.parser.Pa
JEXL计算返回int而不是float:Expression e = jexl.createExpression("7/2");Float result = (Float)e.evaluate(null);java.lang.ClassCastException: java.lang.Integer cannotbe cast to java.lang.Float
我将“线程组”指定为"${__jexl(${LoadRatio}*1,)}“。我遇到了下面的错误。怎么啦?:4176)at org.apache.commons.jexl.parser.Parser.ExpressionExpression(Parser.java:1885)
at org.apache.commons.jexl</em
(Unknown Source) at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258) at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)at org.apache.commons.jexl.parser.ASTReference.execute
我想添加extern库commons-jexl-2.1.1.jar。我将jar复制到libs/文件夹并执行Add as library...菜点。我在代码中没有收到任何错误,而且一切似乎都正常,但是在编译和启动应用程序时,我收到了该行上的错误java.lang.NoClassDefFoundError: org.apache.commons.jexl2.JexlEngine,private JexlEngine jexl = new JexlEngine();,有人知道我错过了什么吗?