简体   繁体   English

Grails 2.0和PayPal插件

[英]Grails 2.0 and PayPal plugin

I've installed the newest Grails PayPal-Plugin (0.6.4) and got the following error: 我已经安装了最新的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:-----------

I fixed it by renaming notify() into notifyPaypal() => Error PayPal plugin on grails 2.0.0.RC3 我通过将grails notifyPaypal() notify()重命名为notifyPaypal() => Error PayPal插件来修复它

But the plugin seems to disturb springSecurity because I got the following error if I try to login: 但是插件似乎打扰了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

How can I fix it? 我该如何解决?

Notice that two versions have been released since 0.6.4, and it now behaves as you asked regarding the 'notify()' method (probably thanks to your report). 请注意,自0.6.4起已发布了两个版本,并且现在可以按照您对“ notify()”方法的要求进行操作(可能要感谢您的报告)。

http://grails.org/plugin/paypal/ http://grails.org/plugin/paypal/

(just saying it here for any casual reader to know) (只是在这里说出来,让任何随便的读者都知道)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM