由于将应用程序从 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
我很困惑为什么会这样……有什么想法吗?
谢谢