2014-09-26 86 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

相關問題