2017-12-05 15 views
0

私が作業しているSpring起動アプリケーション(昨日)から、本当に奇妙なエラーが発生しました(1.5.2.RELEASE)。私はEclipseでプロジェクトを実行するときに以下の例外を取得し始めました。Eclipse Spring Boot - TransactionAutoConfigurationとNeo4jDataAutoConfigurationの間で自動設定サイクルが検出されました

コマンドラインから実行すると、すべて正常に機能しました(ただし、開発とデバッグ時にEclipseから実行する必要があります)。私は、Eclipseでそれらをクリーニングする、プロジェクトを再インポートし、deleting the .classpath fileを試してみましたが、エラーが春ブーツ1.5.8.RELEASEを使用するように私のメインのプロジェクトとライブラリをアップグレードした後、私はEclipseで私のアプリを実行することができ

2017-12-05 13:46:45.620 ERROR 11048 --- [ restartedMain] o.s.b.f.s.DefaultListableBeanFactory  : Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception 
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot[email protected]744ed1b7: startup date [Tue Dec 05 13:46:43 EET 2017]; root of context hierarchy 
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] 

<STACK-TRACE> 

2017-12-05 13:46:45.635 ERROR 11048 --- [ restartedMain] o.s.boot.SpringApplication    : Application startup failed 

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.almetis.webraadmin.WebRaAdminApplication]; 
nested exception is java.lang.IllegalStateException: AutoConfigure cycle detected between org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration and org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration 
at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:545) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] 

<STACK-TRACE> 

Caused by: java.lang.IllegalStateException: AutoConfigure cycle detected between org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration and org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration 
at org.springframework.util.Assert.state(Assert.java:70) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE] 

答えて

0

を持続しました再び。

1.5.2.RELEASEとNeo4Jの統合に問題があるようです(github issueおよびissueを参照)。

よく見ると、私の主なアプリはSpring Boot 1.5.2を使用していましたが、消費していたライブラリの1つがSpring Boot 1.5.8を使用していました。

私のライブラリと、メインアプリの春のブートバージョンで遊んでた後、私は以下を参照してくださいすべてのライブラリとメインアプリは春ブーツ1.5.2を使用している場合

  • 、すべてがうまく
  • 場合に動作しますすべてのライブラリとメインアプリケーションはSpringブート1.5.8を使用しています。すべて正常に動作します。

  • ライブラリがSpringブート1.5.8を使用し、メインアプリケーションがSpringブート1.5.2を使用している場合、スローされた

エラーはちょっと不思議ですが(少なくとも言えば)、主なテイクアウェイはで、すべてのライブラリとアプリケーションを同じスプリングブートバージョンに保存してください。

関連する問題