2017-08-17 15 views
0

私はSpringプロジェクトを実行しようとしています。 のpom.xml:java.lang.IllegalStateException:ApplicationEventMulticasterが初期化されていません -

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
<modelVersion>4.0.0</modelVersion> 

<groupId>org.ocp</groupId> 
<artifactId>testruleemall</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<packaging>war</packaging> 

<name>testruleemall</name> 
<description>Demo project for Spring Boot</description> 

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.3.RELEASE</version> 
    <relativePath/> <!-- lookup parent from repository --> 
</parent> 

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
    <java.version>1.8</java.version> 
    <vaadin.version>8.0.5</vaadin.version> 
    <tomcat.version>8.0.5</tomcat.version> 
    <start-class>org.ocp.test</start-class> 
</properties> 

<dependencies> 
    <dependency> 
     <groupId>cglib</groupId> 
     <artifactId>cglib</artifactId> 
     <version>2.2.2</version> 
    </dependency> 
    <dependency> 
     <groupId>com.vaadin</groupId> 
     <artifactId>vaadin-spring-boot-starter</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web</artifactId> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-devtools</artifactId> 
     <scope>runtime</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-tomcat</artifactId> 
     <scope>provided</scope> 
    </dependency> 
    <dependency> 
     <groupId>javax.servlet</groupId> 
     <artifactId>jstl</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-core</artifactId> 
     <version>4.3.11.Final</version> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-entitymanager</artifactId> 
     <version>4.3.11.Final</version> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate.javax.persistence</groupId> 
     <artifactId>hibernate-jpa-2.0-api</artifactId> 
     <version>1.0.1.Final</version> 
    </dependency> 
    <dependency> 
     <groupId>com.github.noraui</groupId> 
     <artifactId>ojdbc7</artifactId> 
     <version>12.1.0.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.mariadb.jdbc</groupId> 
     <artifactId>mariadb-java-client</artifactId> 
     <version>1.1.7</version> 
    </dependency> 
    <dependency> 
     <groupId>mysql</groupId> 
     <artifactId>mysql-connector-java</artifactId> 
     <version>6.0.4</version> 
    </dependency> 
    <dependency> 
     <groupId>log4j</groupId> 
     <artifactId>log4j</artifactId> 
     <version>1.2.17</version> 
    </dependency> 
    <dependency> 
     <groupId>joda-time</groupId> 
     <artifactId>joda-time</artifactId> 
     <version>2.9.9</version> 
    </dependency> 
    <!--thymeleaf--> 
    <dependency> 
     <groupId>org.thymeleaf</groupId> 
     <artifactId>thymeleaf</artifactId> 
     <version>3.0.2.RELEASE</version> 
    </dependency> 
    <dependency> 
     <groupId>org.thymeleaf</groupId> 
     <artifactId>thymeleaf-spring4</artifactId> 
     <version>3.0.2.RELEASE</version> 
    </dependency> 
    <dependency> 
     <groupId>nz.net.ultraq.thymeleaf</groupId> 
     <artifactId>thymeleaf-layout-dialect</artifactId> 
     <version>2.2.1</version> 
    </dependency> 
    <dependency> 
     <groupId>net.sf.ehcache</groupId> 
     <artifactId>ehcache-core</artifactId> 
     <version>2.4.3</version> 
    </dependency> 
    <dependency> 
     <groupId>org.hibernate</groupId> 
     <artifactId>hibernate-ehcache</artifactId> 
     <version>4.3.11.Final</version> 
    </dependency> 
    <!--webjars--> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>bootstrap</artifactId> 
     <version>3.3.7</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>font-awesome</artifactId> 
     <version>4.6.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>nprogress</artifactId> 
     <version>0.2.0</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>jquery</artifactId> 
     <version>2.2.3</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>fastclick</artifactId> 
     <version>1.0.6</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>webjars-locator</artifactId> 
     <version>0.30</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>bootstrap-toggle</artifactId> 
     <version>2.2.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>iCheck</artifactId> 
     <version>1.0.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net</artifactId> 
     <version>1.10.11</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-bs</artifactId> 
     <version>1.10.11</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-buttons</artifactId> 
     <version>1.1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-buttons-bs</artifactId> 
     <version>1.1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-fixedheader</artifactId> 
     <version>3.1.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-fixedheader-bs</artifactId> 
     <version>3.1.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-keytable</artifactId> 
     <version>2.1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-keytable-bs</artifactId> 
     <version>2.1.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-responsive</artifactId> 
     <version>2.0.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-responsive-bs</artifactId> 
     <version>2.0.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-scroller</artifactId> 
     <version>1.4.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>datatables.net-scroller-bs</artifactId> 
     <version>1.4.2</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars.bower</groupId> 
     <artifactId>pdfmake</artifactId> 
     <version>0.1.20</version> 
    </dependency> 
    <dependency> 
     <groupId>org.jetbrains</groupId> 
     <artifactId>annotations</artifactId> 
     <version>RELEASE</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>animate.css</artifactId> 
     <version>3.5.1</version> 
    </dependency> 
    <dependency> 
     <groupId>org.webjars</groupId> 
     <artifactId>bootstrap-select</artifactId> 
     <version>1.4.2</version> 
    </dependency> 


</dependencies> 

<dependencyManagement> 
    <dependencies> 
     <dependency> 
      <groupId>com.vaadin</groupId> 
      <artifactId>vaadin-bom</artifactId> 
      <version>${vaadin.version}</version> 
      <type>pom</type> 
      <scope>import</scope> 
     </dependency> 
    </dependencies> 
</dependencyManagement> 

<build> 
    <plugins> 
     <plugin> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-maven-plugin</artifactId> 
     </plugin> 
     <plugin> 
      <groupId>org.eclipse.jetty</groupId> 
      <artifactId>jetty-maven-plugin</artifactId> 
      <version>9.4.0.M0</version> 
     </plugin> 
    </plugins> 
</build> 

結果はこれです:

2017年8月17日01:11:01.405 INFO 9156 --- [restartedMain] org.ocp.TestruleemallApplication :C:\ Users \ Ilias \ Desktop \ testruleemall \ testruleemallでIliasによって起動されたC:\ Users \ Ilias \ Desktop \ testruleemall \ testruleemall \ target \ classesのDESKTOP-PL25CTRでのTestruleemallApplicationの起動 2017-08-17 01:11:01.406 INFO 9156 --- [restartedMain] org.ocp.TestruleemallApplication:N oアクティブプロファイルセット、デフォルトプロファイルに戻す:デフォルト 2017-08-17 01:11:01.651 INFO 9156 --- [restartedMain] scaAnnotationConfigApplicationContext:リフレッシュするorg.spring[email protected]5a289d1d:起動日[ Thu Aug 17 01:11:01 UTC 2017];コンテキストの階層のルート 2017-08-17 01:11:02.257 WARN 9156 --- [restartedMain] scaAnnotationConfigApplicationContext:コンテキストの初期化中に例外が発生しました - リフレッシュの試行をキャンセルしました:org.springframework.beans.factory.BeanDefinitionStoreException:構成の解析に失敗しましたクラス[org.ocp.TestruleemallApplication];ネストされた例外はjava.lang.IllegalStateExceptionです:org.springframework.boot.web.support.SpringBootServletInitializerクラスの注釈付きメソッドのイントロスペクションに失敗しました 2017-08-17 01:11:02.261 ERROR 9156 --- [restartedMain] osbfsDefaultListableBeanFactory:Destroy org.springframework.context: - コンテキストを経由して、イベントをマルチキャストする前に、「リフレッシュ」を呼び出すApplicationEventMulticasterが初期化されていません:名前のBeanのメソッドは、「org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory」例外

java.lang.IllegalStateExceptionを投げました。 [email protected]:スタートアップ日[Aug 17 01:11:01 UTC 2017];コンテキスト階層のルート org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.context .support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)〜[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter .java:253)〜[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)[spring- beans-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegis try.java:554)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)[spring- beans-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)[spring-beans-4.3.8.RELEASE.jar :4.3.8.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractA pplicationContext.java:555)[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)[spring-boot-1.5。 3.RELEASE.jar:1.5.3.RELEASE] at orgspringframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) )[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring-boot-1.5.3.RELEASE.jar :1.5.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE] at org.ocp。 (Native Method)〜[na:1.8.0_131] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java)[クラス/:na]をsun.reflect.NativeMethodAccessorImpl.invoke0から取得しました。 :62)〜[na:1.8.0_131] at ():at java.lang.reflect.Method.invoke(Method.java:498)〜[na:1.8.0_131] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)〜[na:1.8.0_131] org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[春・ブート・デベロッパーツール-1.5.3.RELEASE.jar:1.5.3.RELEASE]

+0

'構成クラス[org.ocp.TestruleemallApplication]を解析できませんでした。ネストされた例外はjava.lang.IllegalStateExceptionです:クラス 'の注釈付きメソッドをイントロスペクションできませんでした。ルートエラーです。 'org.ocp.TestruleemallApplication'クラスを投稿してください。 – yaswanth

+0

"@SpringBootApplication " @RestController パブリッククラスTestruleemallApplicationはSpringBootServletInitializer { @Override保護SpringApplicationBuilderの設定(SpringApplicationBuilderアプリケーション){ 戻りapplication.sources(TestruleemallApplication.class)に延びています。 } public static void main(String [] args)例外をスローする{ SpringApplication.run(TestruleemallApplication.class、args); } } – Ilias

+0

質問のコードをアップデートとして追加してください。これは読めるわけではありません。 – yaswanth

答えて

0
は、バージョンをアップグレード

cglib3.2.4のプロジェクトを更新し、スターターアプリケーションクラスでスプリングブート注釈@SpringBootApplicationを使用してください。あなたのクラスと構成を共有することができます。

+0

はい私はそれをしましたが、それでも動作しません – Ilias

関連する問題