我正在尝试在Intellij中启动现有的mule服务器项目。 我按照these说明操作,经过多次调整到我的构建路径后,我已经按照下面的错误工作:
2013-04-26 10:55:26,632 ERROR [main] [MuleServer] A Fatal error has occurred while the server was running: org.mvel2.ast.Function.<init>(Ljava/lang/String;[C[CILorg/mvel2/ParserContext;)V
java.lang.NoSuchMethodError: org.mvel2.ast.Function.<init>(Ljava/lang/String;[C[CILorg/mvel2/ParserContext;)V
at org.mule.el.mvel.MVELFunctionAdaptor.<init>(MVELFunctionAdaptor.java:27)
at org.mule.el.mvel.MVELExpressionLanguageContext.declareFunction(MVELExpressionLanguageContext.java:229)
at org.mule.el.mvel.StaticVariableResolverFactory.<init>(StaticVariableResolverFactory.java:32)
at org.mule.el.mvel.MVELExpressionLanguage.initialise(MVELExpressionLanguage.java:99)
at org.mule.expression.DefaultExpressionManager.initialise(DefaultExpressionManager.java:611)
at org.mule.DefaultMuleContext.initialise(DefaultMuleContext.java:223)
at org.mule.context.DefaultMuleContextFactory.doCreateMuleContext(DefaultMuleContextFactory.java:192)
感谢您的帮助。
答案 0 :(得分:1)
将此跟踪到不同版本的mvel2之间的冲突。似乎他们从2.0.19改变了Function()的签名:
Function(String name, char[] parameters, char[] block, int fields, ParserContext pCtx)
到2.1.beta1:
Function(String name, char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx)