2

依存関係の管理に 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 を使用しています。「静的」と「動的」の両方の足場を試しましたが、問題は解決しませんでした。

また、この例外はどういう意味ですか?にも言及しました。問題はありますが、運はありません。

4

2 に答える 2

0

問題を解決しました。なぜそれが起こったのかはわかりませんが、scaffold=true のコントローラーがたくさんありました。すべてのコントローラーとビューを生成し、問題を解決しました。

于 2013-11-19T05:33:08.380 に答える