spring-attic / spring-cloud-etcd

Apache License 2.0
144 stars 60 forks source link

etcd4j 2.13.0 runtime error #44

Closed regardfs closed 7 years ago

regardfs commented 7 years ago

Hi, all: I use below version to run spring-cloud-etcd, but got error, version 2.7.0 is fine for starting sample, but i need username/password auth, so i must use 2.13.0, do you guys have any idea?

      <dependency>
          <groupId>org.mousio</groupId>
          <artifactId>etcd4j</artifactId>
          <version>2.13.0</version>
      </dependency>

error code:

2017-05-17 16:45:51.763 INFO 58425 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2017-05-17 16:45:51.933 INFO 58425 --- [ main] mousio.etcd4j.transport.EtcdNettyClient : Setting up Etcd4j Netty client 2017-05-17 16:45:51.936 WARN 58425 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration$$EnhancerBySpringCGLIB$$aabc980]: Constructor threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'etcdHealthIndicator' defined in class path resource [org/springframework/cloud/etcd/EtcdAutoConfiguration.class]: Unsatisfied dependency expressed through method 'etcdHealthIndicator' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'etcdClient' defined in class path resource [org/springframework/cloud/etcd/EtcdAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [mousio.etcd4j.EtcdClient]: Factory method 'etcdClient' threw exception; nested exception is java.lang.NoClassDefFoundError: io/netty/resolver/DefaultNameResolverGroup 2017-05-17 16:45:51.936 INFO 58425 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown 2017-05-17 16:45:51.938 INFO 58425 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat 2017-05-17 16:45:51.954 INFO 58425 --- [ main] utoConfigurationReportLoggingInitializer : Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2017-05-17 16:45:51.964 ERROR 58425 --- [ main] o.s.boot.SpringApplication : Application startup failed