2011-02-02 1 views
0

の問題をオートワイヤリング:統合テストが失敗する - 私は任意の統合テストを実行しようとすると、私は次のように取得しています、何らかの理由でGrailsの

Initialization of bean failed; nested exception is 
org.springframework.beans.ConversionNotSupportedException: Failed to convert property  
value of type  
'myproject.provider.shipping.variable.ConcreteImplService$$EnhancerByCGLIB$$f28ea3b8' to 
required type 'ammoscanner.provider.shipping.variable.ConcreteImplService' for property 
'concreteImplService'; nested exception is java.lang.IllegalStateException: Cannot 
convert value of type 

なぜCGLIBは私注入したクラスをラップし、テストが失敗する原因となっています?私はgrails 1.3.6を実行し、Intelli-J ultimate 10.01でテストを実行しています。

+0

実行アプリケーションや戦争で同じコードを実行しても機能しますか?また、どのプラグインをあなたのアプリで使用していますか? –

+1

また、コマンドラインから実行してIntelliJを変数として削除してみてください。 –

+0

run-appと戦争は正常です。 –

答えて

0

IntelliJを再構築して再起動しましたが、すべて正常でした。

+0

うん、 'grails clean'は多くの謎に役立ちます。 –

関連する問題