2014-09-26 73 views
1

运行应用程序时出现以下错误,编译期间没有问题。请帮助,如何解决这个问题。Grails 2.4.3升级 - Spring Security ACl - SpelExpressionParser

ERROR [localhost-startStop-1] 2014-09-26 19:19:19,050 org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener.error(213) : Error initializing the application: Error creating bean with name 'flowBuilderServices': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.expression.spel.standard.SpelExpressionParser' to required type 'org.springframework.binding.expression.ExpressionParser' for property 'expressionParser'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.expression.spel.standard.SpelExpressionParser] to required type [org.springframework.binding.expression.ExpressionParser] for property 'expressionParser': no matching editors or conversion strategy found 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowBuilderServices': Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.expression.spel.standard.SpelExpressionParser' to required type 'org.springframework.binding.expression.ExpressionParser' for property 'expressionParser'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.expression.spel.standard.SpelExpressionParser] to required type [org.springframework.binding.expression.ExpressionParser] for property 'expressionParser': no matching editors or conversion strategy found 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:745) 
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.expression.spel.standard.SpelExpressionParser' to required type 'org.springframework.binding.expression.ExpressionParser' for property 'expressionParser'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.expression.spel.standard.SpelExpressionParser] to required type [org.springframework.binding.expression.ExpressionParser] for property 'expressionParser': no matching editors or conversion strategy found 
    ... 4 more 
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.springframework.expression.spel.standard.SpelExpressionParser] to required type [org.springframework.binding.expression.ExpressionParser] for property 'expressionParser': no matching editors or conversion strategy found 
+0

需要更详细的smidge。它是否正在运行,现在它不是,你升级了哪个版本,你是如何升级的等等。你是一个程序员 - 想象一下,如果你的一个用户用8行堆栈跟踪来找你,并且基本上说“它不会不工作,请让它工作“ – 2014-09-26 20:49:17

回答

3

您使用的是什么插件?升级到Grails 2.4.3时,我遇到了同样的异常,并且缩小了它(这并不容易),因为Grails WebFlow插件和ACL插件都设置了一个名为expressionParser的bean,但是每个插件都使用了不同的类...在Spring bean的Grails初始化过程中覆盖另一个类。通过将Web Flow插件的ExpressionParser重命名为WebFlowPluginSupport.groovy文件中的flowExpressionParser,我可以解决此异常。您可以在插件目录中搜索'expressionParser'并查看是否有> 1插件使用它。

我已经让webflow插件人知道,并在这里稍微详细一点。 https://jira.grails.org/browse/GPWEBFLOW-109

相关问题