maven - spring cloud consul No bean named 'configServerRetryInterceptor' is defined -


i try setup consul service.but can't start it. project simple. email : keets001@gmail.com

there little configurations on spring.io

could me? lot.

pom:

<dependencies>     <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-consul-config -->     <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-consul-config</artifactid>         <version>1.0.2.release</version>     </dependency>      <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-consul-discovery -->     <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-consul-discovery</artifactid>         <version>1.0.0.release</version>     </dependency>      <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-bus -->     <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-bus</artifactid>         <version>1.1.1.release</version>     </dependency>      <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-consul-ui</artifactid>         <version>1.0.0.m1</version>     </dependency>     <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-consul-dependencies -->     <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-consul-dependencies</artifactid>         <version>1.0.0.release</version>         <type>pom</type>     </dependency>      <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-starter-config</artifactid>     </dependency>     <dependency>         <groupid>org.springframework.cloud</groupid>         <artifactid>spring-cloud-starter-consul-all</artifactid>     </dependency> </dependencies> 

application.yml:

spring:   cloud:     config:       retry:         initial-interval: 10         max-interval: 20     consul:       consul:         port: 8500         host: localhost         enabled: false         discovery:           preferipaddress: true           enabled: true           register: true           service-name: config-server           hostname: localhost bootstrap.yml: spring:   application:     name: testconsulapp 

bootstrap.java

import org.springframework.boot.springapplication; import org.springframework.boot.autoconfigure.enableautoconfiguration; import org.springframework.boot.autoconfigure.springbootapplication; import org.springframework.cloud.client.discovery.enablediscoveryclient; import org.springframework.cloud.ui.enableconsului;  @springbootapplication @enablediscoveryclient @enableconsului @enableautoconfiguration public class bootstrap {     public static void main(string[] args) {          springapplication.run(bootstrap.class, args);     } } 

error:

2016-09-02 14:45:57.124  warn 22886 --- [           main] o.s.boot.springapplication               : error handling failed (applicationeventmulticaster not initialized - call 'refresh' before multicasting events via context: org.springframework.boot.context.embedded.annotationconfigembeddedwebapplicationcontext@2054d744: startup date [thu jan 01 08:00:00 cst 1970]; parent: org.springframework.context.annotation.annotationconfigapplicationcontext@2530aeb4) 2016-09-02 14:45:57.139 error 22886 --- [           main] o.s.boot.springapplication               : application startup failed  org.springframework.beans.factory.nosuchbeandefinitionexception: no bean named 'configserverretryinterceptor' defined         @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbeandefinition(defaultlistablebeanfactory.java:702) ~[spring-beans-4.3.2.release.jar:4.3.2.release]         @ org.springframework.beans.factory.support.abstractbeanfactory.getmergedlocalbeandefinition(abstractbeanfactory.java:1180) ~[spring-beans-4.3.2.release.jar:4.3.2.release]         @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:284) ~[spring-beans-4.3.2.release.jar:4.3.2.release]         @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202) ~[spring-beans-4.3.2.release.jar:4.3.2.release]         @ org.springframework.retry.annotation.annotationawareretryoperationsinterceptor.getdelegate(annotationawareretryoperationsinterceptor.java:138) ~[spring-retry-1.1.2.release.jar:na]         @ org.springframework.retry.annotation.annotationawareretryoperationsinterceptor.invoke(annotationawareretryoperationsinterceptor.java:116) ~[spring-retry-1.1.2.release.jar:na]         @ org.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:179) ~[spring-aop-4.3.2.release.jar:4.3.2.release]         @ org.springframework.aop.framework.cglibaopproxy$dynamicadvisedinterceptor.intercept(cglibaopproxy.java:655) ~[spring-aop-4.3.2.release.jar:4.3.2.release]         @ org.springframework.cloud.config.client.configservicepropertysourcelocator$$enhancerbyspringcglib$$d2da9622.locate(<generated>) ~[spring-cloud-config-client-1.1.2.release.jar:1.1.2.release]         @ org.springframework.cloud.bootstrap.config.propertysourcebootstrapconfiguration.initialize(propertysourcebootstrapconfiguration.java:89) ~[spring-cloud-context-1.1.1.release.jar:1.1.1.release]         @ org.springframework.boot.springapplication.applyinitializers(springapplication.java:633) [spring-boot-1.4.0.release.jar:1.4.0.release]         @ org.springframework.boot.springapplication.preparecontext(springapplication.java:347) [spring-boot-1.4.0.release.jar:1.4.0.release]         @ org.springframework.boot.springapplication.run(springapplication.java:311) [spring-boot-1.4.0.release.jar:1.4.0.release]         @ org.springframework.boot.springapplication.run(springapplication.java:1185) [spring-boot-1.4.0.release.jar:1.4.0.release]         @ org.springframework.boot.springapplication.run(springapplication.java:1174) [spring-boot-1.4.0.release.jar:1.4.0.release]         @ consul.bootstrap.main(bootstrap.java:16) [classes/:na]         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_74]         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_74]         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_74]         @ java.lang.reflect.method.invoke(method.java:498) ~[na:1.8.0_74]         @ org.springframework.boot.maven.abstractrunmojo$launchrunner.run(abstractrunmojo.java:483) [spring-boot-maven-plugin-1.4.0.release.jar:1.4.0.release]         @ java.lang.thread.run(thread.java:745) [na:1.8.0_74]  [warning] java.lang.reflect.invocationtargetexception         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:498)         @ org.springframework.boot.maven.abstractrunmojo$launchrunner.run(abstractrunmojo.java:483)         @ java.lang.thread.run(thread.java:745) caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no bean named 'configserverretryinterceptor' defined         @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbeandefinition(defaultlistablebeanfactory.java:702)         @ org.springframework.beans.factory.support.abstractbeanfactory.getmergedlocalbeandefinition(abstractbeanfactory.java:1180)         @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:284)         @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202)         @ org.springframework.retry.annotation.annotationawareretryoperationsinterceptor.getdelegate(annotationawareretryoperationsinterceptor.java:138)         @ org.springframework.retry.annotation.annotationawareretryoperationsinterceptor.invoke(annotationawareretryoperationsinterceptor.java:116)         @ org.springframework.aop.framework.reflectivemethodinvocation.proceed(reflectivemethodinvocation.java:179)         @ org.springframework.aop.framework.cglibaopproxy$dynamicadvisedinterceptor.intercept(cglibaopproxy.java:655)         @ org.springframework.cloud.config.client.configservicepropertysourcelocator$$enhancerbyspringcglib$$d2da9622.locate(<generated>)         @ org.springframework.cloud.bootstrap.config.propertysourcebootstrapconfiguration.initialize(propertysourcebootstrapconfiguration.java:89)         @ org.springframework.boot.springapplication.applyinitializers(springapplication.java:633)         @ org.springframework.boot.springapplication.preparecontext(springapplication.java:347)         @ org.springframework.boot.springapplication.run(springapplication.java:311)         @ org.springframework.boot.springapplication.run(springapplication.java:1185)         @ org.springframework.boot.springapplication.run(springapplication.java:1174)         @ consul.bootstrap.main(bootstrap.java:16)         ... 6 more [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 3.346 s [info] finished at: 2016-09-02t14:45:57+08:00 [info] final memory: 44m/735m [info] ------------------------------------------------------------------------ [error] failed execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.0.release:run (default-cli) on project consulclient: exception occurred while running. null: invocationtargetexception: no bean named 'configserverretryinterceptor' defined -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception 

there few odd things dependencies. of them redundant. should work if remove them except spring-cloud-starter-consul-all.


Comments