0

我正在尝试在 Intellij 中启动现有的 mule 服务器项目。我遵循了这些说明,并在对构建路径进行了一些调整后,已经解决了以下错误:

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)

谢谢你的帮助。

4

1 回答 1

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)
于 2013-04-26T15:12:05.710 回答