spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.86k stars 2.44k forks source link

Eureka discoveryClient registration error #1335

Closed xchunzhao closed 7 years ago

xchunzhao commented 8 years ago

when i new a springboot application ,yet it can regist to eureka server,but when i add dependency in maven pom , it will log

DiscoveryClient_UNKNOWN/10.100.152.48:xxxx:493a3698228d7544b85b6b1bb443ef32 - registration status: not sent

then , i thought my dependency has some error maybe multiple jars , but i remove the annotation @EnableEurekaClient , the application runs well.

ryanjbaxter commented 8 years ago

Can you share a sample application that demonstrates the problem?

xchunzhao commented 8 years ago

I think i didn't explain it clearly . When i start a new springboot application, and i use annotation @EnbaleEurekaClient and add serviceUrl in yml,it can regist to eureka server. Problem occoured when i add a dependency that i wrote before , then it can not regist to eureka , and log that :

DiscoveryClient_UNKNOWN/10.100.152.48:xxxx:493a3698228d7544b85b6b1bb443ef32 - registration status: not sent

Do the multiple jars in dependency make this problem?

spencergibb commented 8 years ago

You still haven't helped. What is the dependency? What is your configuration?

xchunzhao commented 8 years ago

OK, my configuration in application.yml :

spring:
  application:
    name: composite-ec-order
server:
  port: 8080
eureka:
  instance:
    preferIpAddress: true
    leaseRenewalIntervalInSeconds: 10
    metadataMap:      
    instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${random.value}}}
  client:
    serviceUrl:
      defaultZone: http://10.100.15.176:8761/eureka/

and the application mvn dependency tree is :

[INFO] com.winxuan.cloud:composite-ec-order:jar:1.0-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:1.3.5.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot:jar:1.3.5.RELEASE:compile
[INFO] |  \- org.springframework.boot:spring-boot-autoconfigure:jar:1.3.5.RELEASE:compile
[INFO] +- winxuan:ec-core-grafted:jar:1.0-SNAPSHOT:compile
[INFO] |  +- com.netflix.feign:feign-jackson:jar:8.16.0:compile
[INFO] |  +- com.netflix.feign:feign-core:jar:8.16.0:compile
[INFO] |  |  \- org.jvnet:animal-sniffer-annotation:jar:1.0:runtime
[INFO] |  +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] |  +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] |  |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] |  \- winxuan:ec-core:jar:1.0.alpha:compile
[INFO] |     +- hiiposm_engine_simple_2.0.0.26:hiiposm_engine_simple_2.0.0.26:jar:20120706:compile
[INFO] |     +- net.sourceforge:openforecast:jar:0.5.0:compile
[INFO] |     +- activemq-pool:activemq-pool:jar:5.4.0:compile
[INFO] |     +- p6spy:p6spy:jar:1.3:compile
[INFO] |     +- tenpay:tenpay:jar:20101228:compile
[INFO] |     +- aopalliance:aopalliance:jar:1.0:compile
[INFO] |     +- cglib:cglib:jar:2.2.2:compile
[INFO] |     |  \- asm:asm:jar:3.3.1:compile
[INFO] |     +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] |     |  \- commons-pool:commons-pool:jar:1.6:compile
[INFO] |     +- commons-net:commons-net:jar:2.2:compile
[INFO] |     +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile
[INFO] |     +- org.json:json:jar:20140107:compile
[INFO] |     +- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
[INFO] |     +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] |     |  \- commons-codec:commons-codec:jar:1.9:compile
[INFO] |     +- javassist:javassist:jar:3.9.0.GA:compile
[INFO] |     +- joda-time:joda-time:jar:2.8.2:compile
[INFO] |     +- org.jdom:jdom:jar:1.1:compile
[INFO] |     +- org.jsoup:jsoup:jar:1.4.1:compile
[INFO] |     +- IKAnalyzer:IKAnalyzer:jar:3.2.8:compile
[INFO] |     +- com.winxuan:winxuan-cache:jar:1.0-SNAPSHOT:compile
[INFO] |     |  +- java_memcached-release_2.5.2:java_memcached-release_2.5.2:jar:java_memcached-release_2.5.2:compile
[INFO] |     |  +- memcached:memcached:jar:2.4.2:compile
[INFO] |     |  +- junit:junit-dep:jar:4.10:compile
[INFO] |     |  +- org.drools:drools-core:jar:5.3.0.Final:compile
[INFO] |     |  |  +- org.mvel:mvel2:jar:2.1.0.drools4:compile
[INFO] |     |  |  \- org.drools:knowledge-api:jar:5.3.0.Final:compile
[INFO] |     |  \- com.googlecode.xmemcached:xmemcached:jar:1.4.1:compile
[INFO] |     +- com.winxuan:winxuan-pagination:jar:1.0-SNAPSHOT:compile
[INFO] |     +- hibernate-validator:hibernate-validator:jar:4.1.0.Final:compile
[INFO] |     +- jackson-all:jackson-all:jar:1.7.3:compile
[INFO] |     +- javax.validation:validation-api:jar:1.0.0.GA:compile
[INFO] |     +- standard:standard:jar:standard:compile
[INFO] |     +- javax.servlet:jstl:jar:1.2:compile
[INFO] |     +- org.easymock:easymock:jar:3.0:compile
[INFO] |     +- com.winxuan:winxuan-jms:jar:1.0-SNAPSHOT:compile
[INFO] |     |  +- org.freemarker:freemarker:jar:2.3.23:compile
[INFO] |     |  +- org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:compile
[INFO] |     |  +- mail:mail:jar:mail:compile
[INFO] |     |  +- activemq-core:activemq-core:jar:5.4.1:compile
[INFO] |     |  \- com.springsource.javax.jms:com.springsource.javax.jms:jar:1.1.0:compile
[INFO] |     +- com.winxuan:winxuan-report:jar:1.0-SNAPSHOT:compile
[INFO] |     |  \- ojdbc14:ojdbc14:jar:ojdbc14:compile
[INFO] |     +- com.winxuan:winxuan-validator:jar:1.0-SNAPSHOT:compile
[INFO] |     |  \- com.winxuan:winxuan-util:jar:1.0-SNAPSHOT:compile
[INFO] |     |     +- com.opensymphony:xwork:jar:2.1.3:compile
[INFO] |     |     |  \- opensymphony:ognl:jar:2.6.11:compile
[INFO] |     |     +- org.apache.struts:struts2-core:jar:2.2.1.1:compile
[INFO] |     |     |  +- org.apache.struts.xwork:xwork-core:jar:2.2.1.1:compile
[INFO] |     |     |  +- ognl:ognl:jar:3.0:compile
[INFO] |     |     |  \- commons-fileupload:commons-fileupload:jar:1.2.1:compile
[INFO] |     |     +- org.nutz:nutz:jar:1.b.45:compile
[INFO] |     |     +- javax.jms:jms-api:jar:1.1-rev-1:compile
[INFO] |     |     +- javax.activation:activation:jar:1.1.1:compile
[INFO] |     |     +- javax.mail:mail:jar:1.4.4:compile
[INFO] |     |     \- javax.management.j2ee:management-api:jar:1.1-rev-1:compile
[INFO] |     |        \- javax.ejb:ejb-api:jar:3.0-alpha-1:compile
[INFO] |     |           +- javax.transaction:transaction-api:jar:1.1:compile
[INFO] |     |           \- javax.xml:jaxrpc-api:jar:1.1:compile
[INFO] |     +- com.winxuan:winxuan-spring-extensions:jar:1.0-SNAPSHOT:compile
[INFO] |     |  +- net.sf.jxls:jxls-core:jar:0.9.9:compile
[INFO] |     |  |  +- commons-digester:commons-digester:jar:2.1:compile
[INFO] |     |  |  +- commons-jexl:commons-jexl:jar:1.1:compile
[INFO] |     |  |  \- org.apache.poi:poi:jar:3.6:compile
[INFO] |     |  +- net.sf.jxls:jxls-reader:jar:0.9.9:compile
[INFO] |     |  +- org.slf4j:jcl-over-slf4j:jar:1.7.21:compile
[INFO] |     |  +- commons-io:commons-io:jar:1.3.2:compile
[INFO] |     |  \- com.winxuan:commons-lang:jar:1.0-SNAPSHOT:compile
[INFO] |     +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] |     +- netpayclient:netpayclient:jar:netpayclient:compile
[INFO] |     +- alipay:alipay:jar:20110524:compile
[INFO] |     +- com.winxuan:winxuan-dynamicdao:jar:1.0-SNAPSHOT:compile
[INFO] |     +- pinyin4j:pinyin4j:jar:1.1.0:compile
[INFO] |     +- net.sourceforge.jexcelapi:jxl:jar:2.6:compile
[INFO] |     +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |     +- com.winxuan:winxuan-readwritesplitting:jar:1.0-SNAPSHOT:compile
[INFO] |     |  \- c3p0:c3p0:jar:0.9.1.2:compile
[INFO] |     +- org.aspectj:aspectjweaver:jar:1.8.9:compile
[INFO] |     +- cglib:cglib-nodep:jar:2.2.2:compile
[INFO] |     +- com.googlecode:hibernate-memcached:jar:1.2.2:compile
[INFO] |     |  \- spy:memcached:jar:2.4.2:compile
[INFO] |     +- org.apache.commons:commons-math3:jar:3.3:compile
[INFO] |     +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] |     |  \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] |     +- org.springframework.data:spring-data-redis:jar:1.6.4.RELEASE:compile
[INFO] |     +- com.wandoulabs.jodis:jodis:jar:0.1.2:compile
[INFO] |     |  \- org.apache.curator:curator-recipes:jar:2.7.0:compile
[INFO] |     |     \- org.apache.curator:curator-framework:jar:2.7.0:compile
[INFO] |     |        \- org.apache.curator:curator-client:jar:2.7.0:compile
[INFO] |     +- com.winxuan:sms.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     +- org.dbunit:dbunit:jar:2.2:compile
[INFO] |     |  +- junit-addons:junit-addons:jar:1.4:compile
[INFO] |     |  |  +- xerces:xercesImpl:jar:2.6.2:compile
[INFO] |     |  |  \- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] |     |  \- poi:poi:jar:2.5.1-final-20040804:compile
[INFO] |     +- com.winxuan:erp-interface-adapter:jar:0.0.1-SNAPSHOT:compile
[INFO] |     +- com.caucho:hessian:jar:4.0.7:compile
[INFO] |     +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.6.6:compile
[INFO] |     |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.6.6:compile
[INFO] |     |  \- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |     +- com.winxuan:curator-client:jar:2.6.0:compile
[INFO] |     +- com.winxuan:curator-framework:jar:2.6.0:compile
[INFO] |     +- com.winxuan:curator-recipes:jar:2.6.0:compile
[INFO] |     +- com.winxuan:zookeeper:jar:3.4.6:compile
[INFO] |     +- com.winxuan:oms.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     +- com.winxuan:pfs.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     |  +- com.winxuan:pis.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     |  +- com.winxuan:pss.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     |  \- com.winxuan:cis.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     +- com.winxuan:tms.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     |  \- com.winxuan:pagination-interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |     +- com.winxuan:dms.interface:jar:0.1.0-alpha:compile
[INFO] |     +- com.winxuan:winxuan-api-sdk:jar:2.0:compile
[INFO] |     +- com.winxuan:security.interface:jar:RELEASE:0.0.1:compile
[INFO] |     +- wxpay:scanpay:jar:1.0.1:compile
[INFO] |     +- com.winxuan:monitor.interface:jar:1.0.0-SNAPSHOT:compile
[INFO] |     +- com.winxuan.platform:logistics.interface:jar:1.0-SNAPSHOT:compile
[INFO] |     |  +- com.winxuan.platform:platform.interface:jar:1.0-SNAPSHOT:compile
[INFO] |     |  \- org.apache.commons:com.springsource.org.apache.commons.lang:jar:2.6.0:compile
[INFO] |     \- com.winxuan:guard.client:jar:0.0.1-SNAPSHOT:compile
[INFO] |        +- com.winxuan:guard.interface:jar:0.0.1-SNAPSHOT:compile
[INFO] |        \- com.winxuan:guard.common:jar:0.0.1-SNAPSHOT:compile
[INFO] |           +- commons-logging:commons-logging-api:jar:1.0.3:compile
[INFO] |           +- javax.jms:javax.jms-api:jar:2.0.1:compile
[INFO] |           +- org.apache.activemq:activemq-core:jar:5.5.1:compile
[INFO] |           |  +- org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:compile
[INFO] |           |  +- org.apache.activemq:activeio-core:jar:3.1.2:compile
[INFO] |           |  +- org.apache.activemq:kahadb:jar:5.5.1:compile
[INFO] |           |  +- org.apache.activemq.protobuf:activemq-protobuf:jar:1.1:compile
[INFO] |           |  +- org.osgi:org.osgi.core:jar:4.1.0:compile
[INFO] |           |  \- org.jasypt:jasypt:jar:1.7:compile
[INFO] |           \- org.apache.activemq:activemq-pool:jar:5.12.3:compile
[INFO] |              +- org.apache.activemq:activemq-jms-pool:jar:5.12.3:compile
[INFO] |              +- org.apache.activemq:activemq-client:jar:5.12.3:compile
[INFO] |              |  \- org.fusesource.hawtbuf:hawtbuf:jar:1.11:compile
[INFO] |              \- org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0.1:compile
[INFO] +- com.winxuan.cloud:winxuan-cloud-common:jar:2.0-SNAPSHOT:compile
[INFO] |  +- io.reactivex:rxjava:jar:1.1.5:compile
[INFO] |  +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.3.1:compile
[INFO] |  +- org.springframework.security:spring-security-core:jar:4.0.4.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-expression:jar:4.2.6.RELEASE:compile
[INFO] |  +- net.logstash.logback:logstash-logback-encoder:jar:4.3:compile
[INFO] |  +- aspectjweaver:aspectjweaver:jar:1.7.3:compile
[INFO] |  \- com.netflix.feign:feign-hystrix:jar:8.17.0:compile
[INFO] +- com.winxuan.cloud:winxuan-cloud-monitor:jar:2.0-SNAPSHOT:compile
[INFO] |  +- com.cwbase:logback-redis-appender:jar:1.1.5:compile
[INFO] |  |  \- redis.clients:jedis:jar:2.7.3:compile
[INFO] |  |     \- org.apache.commons:commons-pool2:jar:2.4.2:compile
[INFO] |  +- org.springframework:spring-webmvc:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.aspectj:aspectjrt:jar:1.8.9:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |  +- ch.qos.logback:logback-access:jar:1.1.7:compile
[INFO] |  +- ch.qos.logback:logback-classic:jar:1.1.7:compile
[INFO] |  +- ch.qos.logback:logback-core:jar:1.1.7:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.6:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.6:compile
[INFO] |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.6.6:compile
[INFO] |  +- org.commonjava.googlecode.markdown4j:markdown4j:jar:2.2-cj-1.1:compile
[INFO] |  \- org.apache.tomcat:tomcat-servlet-api:jar:8.0.11:compile
[INFO] +- com.alibaba:druid:jar:1.0.13:compile
[INFO] |  +- com.alibaba:jconsole:jar:1.8.0:system
[INFO] |  \- com.alibaba:tools:jar:1.8.0:system
[INFO] +- mysql:mysql-connector-java:jar:5.1.38:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-feign:jar:1.0.6.RELEASE:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-starter:jar:1.0.5.RELEASE:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-netflix-core:jar:1.0.7.RELEASE:compile
[INFO] |  +- org.springframework:spring-web:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-commons:jar:1.0.5.RELEASE:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:4.0.4.RELEASE:compile
[INFO] |  +- com.netflix.feign:feign-ribbon:jar:8.1.1:compile
[INFO] |  +- com.netflix.feign:feign-slf4j:jar:8.1.1:compile
[INFO] |  \- org.springframework.cloud:spring-cloud-starter-ribbon:jar:1.0.6.RELEASE:compile
[INFO] |     +- com.netflix.ribbon:ribbon:jar:2.0.0:compile
[INFO] |     |  +- com.netflix.ribbon:ribbon-transport:jar:2.0.0:runtime
[INFO] |     |  |  +- io.reactivex:rxnetty-contexts:jar:0.4.6:runtime
[INFO] |     |  |  \- io.reactivex:rxnetty-servo:jar:0.4.6:runtime
[INFO] |     |  +- javax.inject:javax.inject:jar:1:runtime
[INFO] |     |  \- io.reactivex:rxnetty:jar:0.4.6:runtime
[INFO] |     |     +- io.netty:netty-codec-http:jar:4.0.25.Final:runtime
[INFO] |     |     |  +- io.netty:netty-codec:jar:4.0.25.Final:runtime
[INFO] |     |     |  \- io.netty:netty-handler:jar:4.0.25.Final:runtime
[INFO] |     |     \- io.netty:netty-transport-native-epoll:jar:4.0.25.Final:runtime
[INFO] |     |        +- io.netty:netty-common:jar:4.0.25.Final:runtime
[INFO] |     |        +- io.netty:netty-buffer:jar:4.0.25.Final:runtime
[INFO] |     |        \- io.netty:netty-transport:jar:4.0.25.Final:runtime
[INFO] |     +- com.netflix.ribbon:ribbon-core:jar:2.0.0:compile
[INFO] |     +- com.netflix.ribbon:ribbon-httpclient:jar:2.0.0:compile
[INFO] |     |  \- com.netflix.netflix-commons:netflix-commons-util:jar:0.1.1:runtime
[INFO] |     \- com.netflix.ribbon:ribbon-loadbalancer:jar:2.0.0:compile
[INFO] |        \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] +- com.alibaba:fastjson:jar:1.2.12:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.3.5.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:1.3.5.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.5.RELEASE:compile
[INFO] |  |  |  +- org.slf4j:jul-to-slf4j:jar:1.7.21:compile
[INFO] |  |  |  \- org.slf4j:log4j-over-slf4j:jar:1.7.21:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.16:runtime
[INFO] |  +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.3.5.RELEASE:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.33:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.33:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.33:compile
[INFO] |  |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.33:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-validation:jar:1.3.5.RELEASE:compile
[INFO] |     \- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
[INFO] |        +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] |        \- com.fasterxml:classmate:jar:1.1.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:1.3.5.RELEASE:compile
[INFO] |  \- org.springframework.boot:spring-boot-actuator:jar:1.3.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.3.5.RELEASE:test
[INFO] |  +- junit:junit:jar:4.12:compile
[INFO] |  +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] |  |  \- org.objenesis:objenesis:jar:2.1:compile
[INFO] |  +- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:compile
[INFO] |  +- org.springframework:spring-core:jar:4.2.6.RELEASE:compile
[INFO] |  \- org.springframework:spring-test:jar:4.2.6.RELEASE:test
[INFO] +- org.springframework.cloud:spring-cloud-config-client:jar:1.0.4.RELEASE:compile
[INFO] |  \- org.springframework.cloud:spring-cloud-context:jar:1.0.4.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-eureka:jar:1.0.4.RELEASE:compile
[INFO] |  +- com.netflix.eureka:eureka-client:jar:1.1.147:compile
[INFO] |  |  +- org.codehaus.jettison:jettison:jar:1.2:runtime
[INFO] |  |  |  \- stax:stax-api:jar:1.0.1:runtime
[INFO] |  |  +- com.netflix.netflix-commons:netflix-eventbus:jar:0.1.2:runtime
[INFO] |  |  |  +- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] |  |  |  \- com.netflix.netflix-commons:netflix-infix:jar:0.1.2:runtime
[INFO] |  |  |     +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] |  |  |     \- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] |  |  |        \- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] |  |  +- com.netflix.archaius:archaius-core:jar:0.6.0:runtime
[INFO] |  |  |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.11:runtime
[INFO] |  |  |  \- org.codehaus.jackson:jackson-core-asl:jar:1.9.11:runtime
[INFO] |  |  +- javax.ws.rs:jsr311-api:jar:1.1.1:runtime
[INFO] |  |  +- com.netflix.servo:servo-core:jar:0.7.4:runtime
[INFO] |  |  +- com.sun.jersey:jersey-core:jar:1.11:runtime
[INFO] |  |  +- com.sun.jersey:jersey-client:jar:1.11:runtime
[INFO] |  |  +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.11:runtime
[INFO] |  |  \- com.netflix.governator:governator:jar:1.2.10:runtime
[INFO] |  |     +- com.google.inject.extensions:guice-grapher:jar:3.0:runtime
[INFO] |  |     |  \- com.google.inject.extensions:guice-assistedinject:jar:3.0:runtime
[INFO] |  |     +- org.codehaus.jsr166-mirror:jsr166y:jar:1.7.0:runtime
[INFO] |  |     +- com.google.inject:guice:jar:3.0:runtime
[INFO] |  |     +- org.apache.xbean:xbean-finder:jar:3.11.1:runtime
[INFO] |  |     +- asm:asm-all:jar:3.2:runtime
[INFO] |  |     +- com.google.inject.extensions:guice-multibindings:jar:3.0:runtime
[INFO] |  |     \- org.apache.xbean:xbean-bundleutils:jar:3.11.1:runtime
[INFO] |  +- com.netflix.ribbon:ribbon-eureka:jar:2.0.0:compile
[INFO] |  |  \- com.google.code.findbugs:annotations:jar:2.0.0:runtime
[INFO] |  \- com.thoughtworks.xstream:xstream:jar:1.4.2:compile
[INFO] |     +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] |     \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-hystrix:jar:1.0.4.RELEASE:compile
[INFO] |  +- com.netflix.hystrix:hystrix-core:jar:1.4.10:compile
[INFO] |  +- com.netflix.hystrix:hystrix-metrics-event-stream:jar:1.4.10:compile
[INFO] |  \- com.netflix.hystrix:hystrix-javanica:jar:1.4.10:compile
[INFO] |     \- com.google.code.findbugs:jsr305:jar:2.0.0:runtime
[INFO] +- org.springframework.cloud:spring-cloud-starter-bus-amqp:jar:1.0.4.RELEASE:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-bus:jar:1.0.2.RELEASE:compile
[INFO] |  +- org.springframework.integration:spring-integration-java-dsl:jar:1.0.1.RELEASE:compile
[INFO] |  |  \- org.springframework.integration:spring-integration-core:jar:4.2.5.RELEASE:compile
[INFO] |  |     \- org.springframework.retry:spring-retry:jar:1.1.2.RELEASE:compile
[INFO] |  +- org.springframework.integration:spring-integration-amqp:jar:4.2.5.RELEASE:compile
[INFO] |  |  \- org.springframework.amqp:spring-rabbit:jar:1.5.6.RELEASE:compile
[INFO] |  |     +- org.springframework.amqp:spring-amqp:jar:1.5.6.RELEASE:compile
[INFO] |  |     +- com.rabbitmq:http-client:jar:1.0.0.RELEASE:compile
[INFO] |  |     \- com.rabbitmq:amqp-client:jar:3.5.7:compile
[INFO] |  \- org.springframework.integration:spring-integration-event:jar:4.2.5.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-netflix-hystrix-amqp:jar:1.0.4.RELEASE:compile
[INFO] |  \- org.springframework.boot:spring-boot-starter-amqp:jar:1.3.5.RELEASE:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- com.winxuan:dip.interface:jar:1.0.RELEASE:compile
[INFO] |  +- com.winxuan:service.support:jar:1.0.RELEASE:compile
[INFO] |  \- com.winxuan:pcs.interface:jar:1.0.RELEASE:compile
[INFO] |     \- com.winxuan:service.common.support:jar:0.0.1-SNAPSHOT:compile
[INFO] +- com.alibaba:dubbo:jar:2.5.3:compile
[INFO] |  +- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] |  \- org.jboss.netty:netty:jar:3.2.5.Final:compile
[INFO] +- com.101tec:zkclient:jar:0.9:compile
[INFO] |  \- org.apache.zookeeper:zookeeper:jar:3.4.8:compile
[INFO] |     +- jline:jline:jar:0.9.94:compile
[INFO] |     \- io.netty:netty:jar:3.7.0.Final:compile
[INFO] +- org.hibernate:hibernate-core:jar:3.6.4.Final:compile
[INFO] |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
[INFO] |  +- javax.transaction:jta:jar:1.1:compile
[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.21:compile
[INFO] +- org.springframework:spring-jms:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-beans:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-context:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-messaging:jar:4.2.6.RELEASE:compile
[INFO] |  \- org.springframework:spring-tx:jar:4.2.6.RELEASE:compile
[INFO] \- org.springframework:spring-orm:jar:4.3.2.RELEASE:compile
[INFO]    \- org.springframework:spring-jdbc:jar:4.2.6.RELEASE:compile

Will this cause the problem?

spencergibb commented 8 years ago

What dependency did you add that causes the problem?

Can you share a sample project?

zlongyue commented 7 years ago

This phenomenon also appeared in my project, I increase the following dependent on the issue of the following:

<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.6.0</version>
</dependency>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.6.0</version>
</dependency>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-staticdocs</artifactId>
    <version>2.6.0</version>
    <scope>test</scope>
</dependency>

But when I put the springfox version down to 2.5.0, the problem is solved. At present, do not know the specific reasons for the problem.

spencergibb commented 7 years ago

@xchunzhao it looks like you have multiple versions of spring on the classpath which can always make problems. @zlongyue I know very little about springfox. I don't know what I could do about it.

xchunzhao commented 7 years ago

@spencergibb Thanks. I have sovled the problem, but i don't know the specific reason for the problem. I add system properties like this:

System.setProperty("spring.application.name","composite-ec-order");

and it works

spencergibb commented 7 years ago

You shouldn't have to do that. Setting spring.application.name in application.yml (or bootstrap.yml if using config server) should be sufficient.

sonata82 commented 7 years ago

Thanks for the pointer @zlongyue, I had the same problem after updating to springfox 2.6.0. Downgrading to 2.5.0 fixed the issue.