[英]Problem with grails email confirmation plug-in only with run-war
I'm using the email-confirmation plug-in and it's working fine when using run-app. 我正在使用电子邮件确认插件,并且在使用run-app时工作正常。 However if I run-war, it gives me the following error upon confirmation sendout:
但是,如果我参战,在确认发送后会出现以下错误:
[...] No signature of method: com.grailsrocks.emailconfirmation.PendingEmailConfirmation.save() [...] [...]没有方法签名:com.grailsrocks.emailconfirmation.PendingEmailConfirmation.save()[...]
After further trying, it seems that this even happens only with certain e-mail addresses (eg with German tlds, but not having umlauts or something). 经过进一步的尝试,似乎这甚至只在某些电子邮件地址上才发生(例如,使用德语tlds,但没有变音符号等)。
I have no idea why this happens or how I could narrow down the problem. 我不知道为什么会这样或如何缩小问题的范围。 Can anybody help me?
有谁能够帮助我?
I've found the solution - renaming the "conf" variable in PendingEmailConfirmation to "confirmation" did the trick. 我找到了解决方案-重命名了PendingEmailConfirmation中的“ conf”变量为“ confirmation”。 Maybe "conf" is a somewhat reserved word or anything?
也许“ conf”是一个有点保留的词还是什么? Anyway, it obviously solved my problem.
无论如何,它显然解决了我的问题。 Perhaps this can be changed in the next version - doesn't do any harm anyway.
也许可以在下一版本中进行更改-仍然不会造成任何损害。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.