[英]Cobertura 2.7 and Java 1.8 -issues with Junit 4 test cases-Exception
[英]Exception occurs at the end of test cases
我正在使用Maven進行依賴管理。 當我運行測試用例時,盡管測試用例成功通過,但在測試用例的末尾會發生異常。
以下是我的堆棧跟蹤:
2013-10-08 16:04:22,839 [Thread-15] ERROR plugins.DefaultGrailsPlugin - Error configuration scaffolding: Error creating bean with name 'instanceControllersApi': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
Message: Error creating bean with name 'instanceControllersApi': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
Line | Method
->> 662 | run in java.lang.Thread
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
我正在使用Grails 2.1.3。 我已經嘗試了“靜態”和“動態”腳手架,但都不能解決問題。
我還提到了此異常是什么意思? 問題,但沒有運氣。
一個存在類似錯誤的用戶通過刪除其〜/ .grails目錄中的項目文件夾來修復此問題。 http://grails.1312388.n4.nabble.com/Database-migration-plugin-Running-dbm-gorm-diff-results-Error-creating-bean-with-name-instanceContro-td4637567.html
良好的清潔效果可能也有幫助,並且侵入性較小。
另外,如果您可以通過源代碼控制(git,mercurial,svn)共享項目,則可以嘗試在另一台計算機上重現該問題。 如果不能,則表明該問題是您的環境所特有的,並且可以通過某種清理方式解決。
我已經解決了我的問題。 我不確定為什么會發生這種情況,但是我在scaffold = true的地方有很多控制器。 我生成了所有控制器和視圖,它解決了我的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.