我安装了最新的Grails PayPal-Plugin (0.6.4)
并收到以下错误:
Problems occurred (un)installing plugins. See details for more information
------System.out:-----------
| Loading Grails 2.0.0
| Configuring classpath.
| Environment set to development.....
| Compiling 97 source files
| Compiling 97 source files.
| Error Compilation error: startup failed:
C:\Users\username\.grails\2.0.0\projects\projectname\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
------System.err:-----------
我通过将notify()
重命名为notifyPaypal()
=>来修复它Error PayPal plugin on grails 2.0.0.RC3
但插件似乎会干扰springSecurity,因为如果我尝试登录,则会出现以下错误:
| Error 2012-02-05 21:42:07,245 ["http-bio-8080"-exec-8] ERROR [/projectname].[default] - Servlet.service() for servlet [default] in context with path [/projectname] threw exception
Message: The specified user domain class 'Person' is not a domain class
我该如何解决?
答案 0 :(得分:1)
请注意,自0.6.4以来已发布了两个版本,现在它的行为与您询问的'notify()'方法一样(可能要归功于您的报告)。
http://grails.org/plugin/paypal/
(这里只是为了让任何随意的读者都知道)