gpt4 book ai didi

spring - Grails 2.4.3升级-Spring Security ACl-SpelExpressionParser

转载 作者:行者123 更新时间:2023-12-02 14:23:40 25 4
gpt4 key购买 nike

运行应用程序时出现以下错误,编译过程中没有问题。请帮助,如何解决此问题。

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

最佳答案

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

我已经让webflow插件的人们知道了,这里还有更多细节。
https://jira.grails.org/browse/GPWEBFLOW-109

关于spring - Grails 2.4.3升级-Spring Security ACl-SpelExpressionParser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26066911/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com