ClassCircularityError在调试模式下使用grails 2.1

时间:2013-01-29 15:58:57

标签: grails sts-springsourcetoolsuite

自将应用程序从grails 1.3.7升级到2.1.0后,我在尝试提交(发布)表单时收到以下错误。

它只在调试模式下发生!

我正在使用Groovy / Grails Tool Suite 3.1.0

5:41:13 ERROR [GrailsExceptionResolver] ClassCircularityError occurred when processing request: [POST] /myapp/contextRoot/addItem - parameters:
startTimeDate: 
addcoupon: Add Item
maxRedemptions: 
timeZone: Europe/London
termsAndConditions: 
percentOff: 
title: test
buyX: 
discountType: 
shortDescription: 
redemptionType.id: 
getY: 
categoryKey: 
amountOff: 
org/springframework/beans/PropertyBatchUpdateException. Stacktrace follows:
org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [addItem] of controller [com.mastercard.deals.merchant.testController]  caused exception: Runtime error executing action
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Runtime error executing action
    ... 3 more
Caused by: java.lang.reflect.InvocationTargetException
    ... 3 more
Caused by: java.lang.ClassCircularityError: org/springframework/beans/PropertyBatchUpdateException
    ... 3 more

我很困惑为什么会发生这种情况......有什么想法吗?

由于

1 个答案:

答案 0 :(得分:2)

所以following JIRA看起来与问题类似:

我现在在调试模式下使用-noreloading参数运行应用程序并且它可以工作:

-grails-debug -noreloading -Dserver.port=8082 run-app