2

由于将应用程序从 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

我很困惑为什么会这样……有什么想法吗?

谢谢

4

1 回答 1

2

因此,以下JIRA 似乎与该问题相似:

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

-grails-debug -noreloading -Dserver.port=8082 run-app
于 2013-02-01T14:04:24.440 回答