我想集成Grails的異步郵箱:1.0插件我的應用程序爲我添加了以下到我的構建配置 纂「:異步郵件:1.0"錯誤運行或 - 異步郵件插件配置Grails應用程序引發異常
後,作爲我試圖通過以下的例外運行應用程序,它失敗
| Error 2014-06-26 11:49:55,958 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Error creating bean with name 'nonAsynchronousMailService': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'grailsApplication' of bean class [grails.plugin.mail.MailService]: Bean property 'grailsApplication' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Message: Error creating bean with name 'nonAsynchronousMailService': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'grailsApplication' of bean class [grails.plugin.mail.MailService]: Bean property 'grailsApplication' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
Line | Method
->> 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
Caused by NotWritablePropertyException: Invalid property 'grailsApplication' of bean class [grails.plugin.mail.MailService]: Bean property 'grailsApplication' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
->> 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 745 | run in java.lang.Thread
| Error Forked Grails VM exited with error
如果我刪除 纂「:異步郵箱:1.0」 從集結的Config.groovy 應用程序運行良好 有使用Grails版本2.3.9或異步郵件插件的任何麻煩
異步郵件插件功能似乎真的很好,想用它
我用下面的插件還他們工作的罰款
build ":tomcat:7.0.53"
// plugins for the compile step
compile ":scaffolding:2.0.3"
compile ':cache:1.1.2'
runtime ":hibernate:3.6.10.15" // or ":hibernate4:4.3.5.2"
runtime ":database-migration:1.4.0"
runtime ":jquery:1.8.3"
runtime ":resources:1.2.8"
compile ':cache:1.0.1'
compile ':spring-security-core:2.0-RC2'
runtime ":email-confirmation:2.0.8"
provided ":codenarc:0.21"
compile (":postgresql-extensions:0.9.0") {
excludes "hibernate"
}
compile ":browser-detection:0.4.3"
如果誰是面臨這樣的問題,請在JDK哪個版本使用的是幫助 在此先感謝
[插件文檔(http://grails.org/plugin/asynchronous-mail)說,它已被遷移到石英plugin.Also這取決於休眠,石英和郵件插件。停止服務器,包括剩餘的依賴關係,然後從IDE刷新依賴關係,然後嘗試通過執行grails clean。 –
喜swapnil我使用電子郵件的確認也這反過來取決於石英插件,郵件做我需要單獨配置他們嗎? –
暫時請刪除電子郵件確認,刷新,清理,然後嘗試此插件分別配置它們。先做好這項工作,然後轉到電子郵件確認。 –