[英]Grails 2.0.0.RC3: Could not reload changes to controller, java.lang.NoSuchFieldException: __timeStamp__239_neverHappen1323622798918
[英]Error PayPal plugin on grails 2.0.0.RC3
我使用grails 2.0.0.rc3,当我安装PayPal插件时出现此错误:
Error Compilation error: startup failed:
/Users/sartre/.grails/2.0.0.M1/projects/testapp/plugins/paypal-0.6.4/grails-app/controllers/org/grails/paypal/PaypalController.groovy: -1: The return type of java.lang.Object notify() in org.grails.paypal.PaypalController is incompatible with void notify() in java.lang.Object
. At [-1:-1] @ line -1, column -1.
1 error
我该如何解决?
非常感谢任何想法
grails 2.0中的不兼容性变化!! 它似乎与grails 2.0的微小变化有关。
现在可以将控制器操作定义为方法,而不是像以前版本的Grails中那样使用闭包。 (来自官方文档: http : //grails.org/doc/2.0.x/guide/introduction.html#webFeatures )
它的行为类似于PaypalController中的闭包通知,它会覆盖Object.notify方法。 如果你在notifyPaypal中重命名通知,它应该工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.