alibaba / druid

阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
https://github.com/alibaba/druid/wiki
Apache License 2.0
27.9k stars 8.57k forks source link

springboot 2.0.3 RELEASE必须要使用log4j的日志才可以启动druid #2884

Closed wendao8469759 closed 5 years ago

wendao8469759 commented 5 years ago

druid依赖

com.alibaba druid-spring-boot-starter 1.1.10

springboot 版本为 2.0.3 RELEASE 如果我不依赖 log4j日志的情况下,会出现以下错误: G:\java\JDK8\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:49482,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=49481 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\Administrator\AppData\Local\Temp\capture861jars\debugger-agent.jar=file:/C:/Users/Administrator/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -classpath "G:\java\jdk8\jre\lib\charsets.jar;G:\java\jdk8\jre\lib\deploy.jar;G:\java\jdk8\jre\lib\ext\cldrdata.jar;G:\java\jdk8\jre\lib\ext\dnsns.jar;G:\java\jdk8\jre\lib\ext\jaccess.jar;G:\java\jdk8\jre\lib\ext\jfxrt.jar;G:\java\jdk8\jre\lib\ext\localedata.jar;G:\java\jdk8\jre\lib\ext\nashorn.jar;G:\java\jdk8\jre\lib\ext\sunec.jar;G:\java\jdk8\jre\lib\ext\sunjce_provider.jar;G:\java\jdk8\jre\lib\ext\sunmscapi.jar;G:\java\jdk8\jre\lib\ext\sunpkcs11.jar;G:\java\jdk8\jre\lib\ext\zipfs.jar;G:\java\jdk8\jre\lib\javaws.jar;G:\java\jdk8\jre\lib\jce.jar;G:\java\jdk8\jre\lib\jfr.jar;G:\java\jdk8\jre\lib\jfxswt.jar;G:\java\jdk8\jre\lib\jsse.jar;G:\java\jdk8\jre\lib\management-agent.jar;G:\java\jdk8\jre\lib\plugin.jar;G:\java\jdk8\jre\lib\resources.jar;G:\java\jdk8\jre\lib\rt.jar;G:\workspace\project\user-module\user-server\target\classes;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-netflix-eureka-client\2.0.0.RELEASE\spring-cloud-starter-netflix-eureka-client-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter\2.0.0.RELEASE\spring-cloud-starter-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-context\2.0.0.RELEASE\spring-cloud-context-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\security\spring-security-crypto\5.0.6.RELEASE\spring-security-crypto-5.0.6.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-commons\2.0.0.RELEASE\spring-cloud-commons-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\security\spring-security-rsa\1.0.5.RELEASE\spring-security-rsa-1.0.5.RELEASE.jar;D:\m2localRepository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar;D:\m2localRepository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-netflix-core\2.0.0.RELEASE\spring-cloud-netflix-core-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-aop\2.0.3.RELEASE\spring-boot-starter-aop-2.0.3.RELEASE.jar;D:\m2localRepository\org\aspectj\aspectjweaver\1.8.13\aspectjweaver-1.8.13.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-netflix-eureka-client\2.0.0.RELEASE\spring-cloud-netflix-eureka-client-2.0.0.RELEASE.jar;D:\m2localRepository\com\netflix\eureka\eureka-client\1.9.2\eureka-client-1.9.2.jar;D:\m2localRepository\org\codehaus\jettison\jettison\1.3.7\jettison-1.3.7.jar;D:\m2localRepository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\m2localRepository\com\netflix\netflix-commons\netflix-eventbus\0.3.0\netflix-eventbus-0.3.0.jar;D:\m2localRepository\com\netflix\netflix-commons\netflix-infix\0.3.0\netflix-infix-0.3.0.jar;D:\m2localRepository\commons-jxpath\commons-jxpath\1.3\commons-jxpath-1.3.jar;D:\m2localRepository\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar;D:\m2localRepository\org\antlr\antlr-runtime\3.4\antlr-runtime-3.4.jar;D:\m2localRepository\org\antlr\stringtemplate\3.2.1\stringtemplate-3.2.1.jar;D:\m2localRepository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\m2localRepository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\m2localRepository\org\apache\commons\commons-math\2.2\commons-math-2.2.jar;D:\m2localRepository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\m2localRepository\com\google\guava\guava\16.0\guava-16.0.jar;D:\m2localRepository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\m2localRepository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\m2localRepository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\m2localRepository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\m2localRepository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\m2localRepository\org\apache\httpcomponents\httpclient\4.5.5\httpclient-4.5.5.jar;D:\m2localRepository\org\apache\httpcomponents\httpcore\4.4.9\httpcore-4.4.9.jar;D:\m2localRepository\com\google\inject\guice\4.1.0\guice-4.1.0.jar;D:\m2localRepository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\m2localRepository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\m2localRepository\com\github\vlsi\compactmap\compactmap\1.2.1\compactmap-1.2.1.jar;D:\m2localRepository\com\github\andrewoma\dexx\dexx-collections\0.2\dexx-collections-0.2.jar;D:\m2localRepository\com\netflix\eureka\eureka-core\1.9.2\eureka-core-1.9.2.jar;D:\m2localRepository\org\codehaus\woodstox\woodstox-core-asl\4.4.1\woodstox-core-asl-4.4.1.jar;D:\m2localRepository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;D:\m2localRepository\org\codehaus\woodstox\stax2-api\3.1.4\stax2-api-3.1.4.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.0.0.RELEASE\spring-cloud-starter-netflix-archaius-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.0.0.RELEASE\spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-netflix-archaius\2.0.0.RELEASE\spring-cloud-netflix-archaius-2.0.0.RELEASE.jar;D:\m2localRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.0.0.RELEASE\spring-cloud-starter-netflix-ribbon-2.0.0.RELEASE.jar;D:\m2localRepository\com\netflix\ribbon\ribbon\2.2.5\ribbon-2.2.5.jar;D:\m2localRepository\com\netflix\ribbon\ribbon-transport\2.2.5\ribbon-transport-2.2.5.jar;D:\m2localRepository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\m2localRepository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\m2localRepository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;D:\m2localRepository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\m2localRepository\io\netty\netty-codec-http\4.1.25.Final\netty-codec-http-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-codec\4.1.25.Final\netty-codec-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-transport-native-epoll\4.1.25.Final\netty-transport-native-epoll-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-common\4.1.25.Final\netty-common-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-buffer\4.1.25.Final\netty-buffer-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-transport-native-unix-common\4.1.25.Final\netty-transport-native-unix-common-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-transport\4.1.25.Final\netty-transport-4.1.25.Final.jar;D:\m2localRepository\io\netty\netty-resolver\4.1.25.Final\netty-resolver-4.1.25.Final.jar;D:\m2localRepository\com\netflix\ribbon\ribbon-core\2.2.5\ribbon-core-2.2.5.jar;D:\m2localRepository\com\netflix\ribbon\ribbon-httpclient\2.2.5\ribbon-httpclient-2.2.5.jar;D:\m2localRepository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\m2localRepository\com\netflix\ribbon\ribbon-loadbalancer\2.2.5\ribbon-loadbalancer-2.2.5.jar;D:\m2localRepository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\m2localRepository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\m2localRepository\com\netflix\ribbon\ribbon-eureka\2.2.5\ribbon-eureka-2.2.5.jar;D:\m2localRepository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\m2localRepository\com\thoughtworks\xstream\xstream\1.4.10\xstream-1.4.10.jar;D:\m2localRepository\xmlpull\xmlpull\1.1.3.1\xmlpull-1.1.3.1.jar;D:\m2localRepository\xpp3\xpp3_min\1.1.4c\xpp3_min-1.1.4c.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-actuator\2.0.3.RELEASE\spring-boot-starter-actuator-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter\2.0.3.RELEASE\spring-boot-starter-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-logging\2.0.3.RELEASE\spring-boot-starter-logging-2.0.3.RELEASE.jar;D:\m2localRepository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\m2localRepository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\m2localRepository\org\apache\logging\log4j\log4j-to-slf4j\2.10.0\log4j-to-slf4j-2.10.0.jar;D:\m2localRepository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar;D:\m2localRepository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\m2localRepository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\m2localRepository\org\yaml\snakeyaml\1.19\snakeyaml-1.19.jar;D:\m2localRepository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.0.3.RELEASE\spring-boot-actuator-autoconfigure-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-actuator\2.0.3.RELEASE\spring-boot-actuator-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\spring-context\5.0.7.RELEASE\spring-context-5.0.7.RELEASE.jar;D:\m2localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.6\jackson-datatype-jsr310-2.9.6.jar;D:\m2localRepository\io\micrometer\micrometer-core\1.0.5\micrometer-core-1.0.5.jar;D:\m2localRepository\org\hdrhistogram\HdrHistogram\2.1.10\HdrHistogram-2.1.10.jar;D:\m2localRepository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\m2localRepository\io\github\openfeign\feign-core\9.5.1\feign-core-9.5.1.jar;G:\workspace\project\common-module\xunwei-common\target\classes;G:\workspace\project\common-module\xunwei-dao\target\classes;D:\m2localRepository\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar;D:\m2localRepository\com\alibaba\druid-spring-boot-starter\1.1.10\druid-spring-boot-starter-1.1.10.jar;D:\m2localRepository\com\alibaba\druid\1.1.10\druid-1.1.10.jar;D:\m2localRepository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.3.1\mybatis-spring-boot-starter-1.3.1.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-jdbc\2.0.3.RELEASE\spring-boot-starter-jdbc-2.0.3.RELEASE.jar;D:\m2localRepository\com\zaxxer\HikariCP\2.7.9\HikariCP-2.7.9.jar;D:\m2localRepository\org\springframework\spring-jdbc\5.0.7.RELEASE\spring-jdbc-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-tx\5.0.7.RELEASE\spring-tx-5.0.7.RELEASE.jar;D:\m2localRepository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.3.1\mybatis-spring-boot-autoconfigure-1.3.1.jar;D:\m2localRepository\org\mybatis\mybatis\3.4.5\mybatis-3.4.5.jar;D:\m2localRepository\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;G:\workspace\project\common-module\xunwei-pojo\target\classes;D:\m2localRepository\org\springframework\boot\spring-boot-autoconfigure\2.0.3.RELEASE\spring-boot-autoconfigure-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot\2.0.3.RELEASE\spring-boot-2.0.3.RELEASE.jar;D:\m2localRepository\com\fasterxml\jackson\core\jackson-databind\2.9.6\jackson-databind-2.9.6.jar;D:\m2localRepository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\m2localRepository\com\fasterxml\jackson\core\jackson-core\2.9.6\jackson-core-2.9.6.jar;D:\m2localRepository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar;D:\m2localRepository\commons-beanutils\commons-beanutils\1.8.0\commons-beanutils-1.8.0.jar;D:\m2localRepository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;D:\m2localRepository\commons-lang\commons-lang\2.5\commons-lang-2.5.jar;D:\m2localRepository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\m2localRepository\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;D:\m2localRepository\com\alibaba\fastjson\1.2.35\fastjson-1.2.35.jar;D:\m2localRepository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;D:\m2localRepository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\m2localRepository\org\springframework\spring-core\5.0.7.RELEASE\spring-core-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-jcl\5.0.7.RELEASE\spring-jcl-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-config\2.0.0.RELEASE\spring-cloud-starter-config-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-config-client\2.0.0.RELEASE\spring-cloud-config-client-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-web\2.0.3.RELEASE\spring-boot-starter-web-2.0.3.RELEASE.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-json\2.0.3.RELEASE\spring-boot-starter-json-2.0.3.RELEASE.jar;D:\m2localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.6\jackson-datatype-jdk8-2.9.6.jar;D:\m2localRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.6\jackson-module-parameter-names-2.9.6.jar;D:\m2localRepository\org\springframework\boot\spring-boot-starter-tomcat\2.0.3.RELEASE\spring-boot-starter-tomcat-2.0.3.RELEASE.jar;D:\m2localRepository\org\apache\tomcat\embed\tomcat-embed-core\8.5.31\tomcat-embed-core-8.5.31.jar;D:\m2localRepository\org\apache\tomcat\embed\tomcat-embed-el\8.5.31\tomcat-embed-el-8.5.31.jar;D:\m2localRepository\org\apache\tomcat\embed\tomcat-embed-websocket\8.5.31\tomcat-embed-websocket-8.5.31.jar;D:\m2localRepository\org\hibernate\validator\hibernate-validator\6.0.10.Final\hibernate-validator-6.0.10.Final.jar;D:\m2localRepository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\m2localRepository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\m2localRepository\com\fasterxml\classmate\1.3.4\classmate-1.3.4.jar;D:\m2localRepository\org\springframework\spring-web\5.0.7.RELEASE\spring-web-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-beans\5.0.7.RELEASE\spring-beans-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-webmvc\5.0.7.RELEASE\spring-webmvc-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-aop\5.0.7.RELEASE\spring-aop-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\spring-expression\5.0.7.RELEASE\spring-expression-5.0.7.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-zipkin\2.0.0.RELEASE\spring-cloud-starter-zipkin-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-starter-sleuth\2.0.0.RELEASE\spring-cloud-starter-sleuth-2.0.0.RELEASE.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-sleuth-core\2.0.0.RELEASE\spring-cloud-sleuth-core-2.0.0.RELEASE.jar;D:\m2localRepository\org\aspectj\aspectjrt\1.8.13\aspectjrt-1.8.13.jar;D:\m2localRepository\io\zipkin\brave\brave\5.1.0\brave-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-context-log4j2\5.1.0\brave-context-log4j2-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-spring-web\5.1.0\brave-instrumentation-spring-web-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-http\5.1.0\brave-instrumentation-http-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-spring-rabbit\5.1.0\brave-instrumentation-spring-rabbit-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-kafka-clients\5.1.0\brave-instrumentation-kafka-clients-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-httpclient\5.1.0\brave-instrumentation-httpclient-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-httpasyncclient\5.1.0\brave-instrumentation-httpasyncclient-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-spring-webmvc\5.1.0\brave-instrumentation-spring-webmvc-5.1.0.jar;D:\m2localRepository\io\zipkin\brave\brave-instrumentation-servlet\5.1.0\brave-instrumentation-servlet-5.1.0.jar;D:\m2localRepository\org\springframework\cloud\spring-cloud-sleuth-zipkin\2.0.0.RELEASE\spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar;D:\m2localRepository\io\zipkin\zipkin2\zipkin\2.9.3\zipkin-2.9.3.jar;D:\m2localRepository\io\zipkin\reporter2\zipkin-reporter\2.7.3\zipkin-reporter-2.7.3.jar;D:\m2localRepository\io\zipkin\reporter2\zipkin-sender-kafka11\2.7.3\zipkin-sender-kafka11-2.7.3.jar;D:\m2localRepository\io\zipkin\reporter2\zipkin-sender-amqp-client\2.7.3\zipkin-sender-amqp-client-2.7.3.jar;G:\IDEA\IntelliJ IDEA 2018.1.6\lib\idea_rt.jar" com.xunwei.core.UserServiceApplication --spring.profiles.active=test1 Connected to the target VM, address: '127.0.0.1:49482', transport: 'socket' 2018-10-30 17:29:27.969 INFO [-,,,] 13148 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@a22cb6a: startup date [Tue Oct 30 17:29:27 CST 2018]; root of context hierarchy 2018-10-30 17:29:28.181 INFO [-,,,] 13148 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-10-30 17:29:28.216 INFO [-,,,] 13148 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$cb55e282] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.0.3.RELEASE)

2018-10-30 17:29:28.421 INFO [eureka-client,,,] 13148 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : http://localhost:8888 2018-10-30 17:29:29.502 INFO [eureka-client,,,] 13148 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available 2018-10-30 17:29:29.502 WARN [eureka-client,,,] 13148 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/eureka-client/test1": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect 2018-10-30 17:29:29.504 INFO [eureka-client,,,] 13148 --- [ main] com.xunwei.core.UserServiceApplication : The following profiles are active: test1 2018-10-30 17:29:29.516 INFO [eureka-client,,,] 13148 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@42deb43a: startup date [Tue Oct 30 17:29:29 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@a22cb6a 2018-10-30 17:29:30.574 INFO [eureka-client,,,] 13148 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=372a0d49-7b63-38a5-9b29-4b18353ce5da 2018-10-30 17:29:30.592 INFO [eureka-client,,,] 13148 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 2018-10-30 17:29:30.852 INFO [eureka-client,,,] 13148 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$af3bdf85] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-30 17:29:30.893 INFO [eureka-client,,,] 13148 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$cb55e282] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-30 17:29:31.192 INFO [eureka-client,,,] 13148 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8661 (http) 2018-10-30 17:29:31.215 INFO [eureka-client,,,] 13148 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-10-30 17:29:31.215 INFO [eureka-client,,,] 13148 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31 2018-10-30 17:29:31.218 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [G:\java\JDK8\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Common Files\NetSarang;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;G:\Git\Git\cmd;G:\java\jdk8\bin;G:\svn\bin;G:\utils\maven\apache-maven-3.3.9\bin;G:\utils\node\;C:\Program Files\MySQL\MySQL Utilities 1.6\;G:\utils\TortoiseGit\bin;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm;.] 2018-10-30 17:29:31.330 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2018-10-30 17:29:31.330 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1814 ms 2018-10-30 17:29:31.633 WARN [eureka-client,,,] 13148 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources. 2018-10-30 17:29:31.633 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. 2018-10-30 17:29:31.640 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@2fec9fd5 2018-10-30 17:29:32.192 INFO [eureka-client,,,] 13148 --- [ost-startStop-1] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2018-10-30 17:29:32.390 ERROR [eureka-client,,,] 13148 --- [ost-startStop-1] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthEndpoint]: Factory method 'healthEndpoint' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$1e20310b]: Constructor threw exception; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'dataSource': Could not bind properties to 'DruidDataSourceWrapper' : prefix=spring.datasource.druid, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'spring.datasource.druid' to javax.sql.DataSource 2018-10-30 17:29:32.411 INFO [eureka-client,,,] 13148 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2018-10-30 17:29:32.420 WARN [eureka-client,,,] 13148 --- [ost-startStop-1] o.a.c.loader.WebappClassLoaderBase : The web application [ROOT] appears to have started a thread named [AsyncReporter{org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender@23b61e20}] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: sun.misc.Unsafe.park(Native Method) java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215) java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078) zipkin2.reporter.ByteBoundedQueue.drainTo(ByteBoundedQueue.java:81) zipkin2.reporter.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:257) zipkin2.reporter.AsyncReporter$Builder$1.run(AsyncReporter.java:190) 2018-10-30 17:29:32.422 WARN [eureka-client,,,] 13148 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 2018-10-30 17:29:32.877 INFO [eureka-client,,,] 13148 --- [ender@23b61e20}] s.c.a.AnnotationConfigApplicationContext : Refreshing SpringClientFactory-localhost: startup date [Tue Oct 30 17:29:32 CST 2018]; parent: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@42deb43a 2018-10-30 17:29:32.881 INFO [eureka-client,,,] 13148 --- [ender@23b61e20}] o.a.c.loader.WebappClassLoaderBase : Illegal access: this web application instance has been stopped already. Could not load [org/springframework/cloud/netflix/ribbon/eureka/EurekaRibbonClientConfiguration.class]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/springframework/cloud/netflix/ribbon/eureka/EurekaRibbonClientConfiguration.class]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1328) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.apache.catalina.loader.WebappClassLoaderBase.getResourceAsStream(WebappClassLoaderBase.java:1062) [tomcat-embed-core-8.5.31.jar:8.5.31] at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:174) [spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:51) [spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103) [spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:123) [spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81) [spring-core-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.retrieveBeanMethodMetadata(ConfigurationClassParser.java:400) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:318) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:316) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) [spring-context-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.cloud.context.named.NamedContextFactory.createContext(NamedContextFactory.java:117) [spring-cloud-context-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.context.named.NamedContextFactory.getContext(NamedContextFactory.java:85) [spring-cloud-context-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.SpringClientFactory.getContext(SpringClientFactory.java:118) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.context.named.NamedContextFactory.getInstance(NamedContextFactory.java:126) [spring-cloud-context-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.SpringClientFactory.getInstance(SpringClientFactory.java:108) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.SpringClientFactory.getLoadBalancer(SpringClientFactory.java:57) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.getLoadBalancer(RibbonLoadBalancerClient.java:155) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.getServer(RibbonLoadBalancerClient.java:144) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient.choose(RibbonLoadBalancerClient.java:76) [spring-cloud-netflix-ribbon-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.LoadBalancerClientZipkinLoadBalancer.instance(LoadBalancerClientZipkinLoadBalancer.java:42) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.ZipkinRestTemplateSenderConfiguration$1.zipkinUrl(ZipkinRestTemplateSenderConfiguration.java:104) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.ZipkinRestTemplateWrapper.doExecute(ZipkinRestTemplateSenderConfiguration.java:130) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:658) [spring-web-5.0.7.RELEASE.jar:5.0.7.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender.post(RestTemplateSender.java:112) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender$HttpPostCall.doExecute(RestTemplateSender.java:123) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.cloud.sleuth.zipkin2.sender.RestTemplateSender$HttpPostCall.doExecute(RestTemplateSender.java:115) [spring-cloud-sleuth-zipkin-2.0.0.RELEASE.jar:2.0.0.RELEASE] at zipkin2.Call$Base.execute(Call.java:379) [zipkin-2.9.3.jar:na] at zipkin2.reporter.AsyncReporter$BoundedAsyncReporter.flush(AsyncReporter.java:286) [zipkin-reporter-2.7.3.jar:na] at zipkin2.reporter.AsyncReporter$Builder$1.run(AsyncReporter.java:190) [zipkin-reporter-2.7.3.jar:na]

2018-10-30 17:29:32.886 WARN [eureka-client,,,] 13148 --- [ender@23b61e20}] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [org.springframework.cloud.netflix.ribbon.eureka.EurekaRibbonClientConfiguration]; nested exception is java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org/springframework/cloud/netflix/ribbon/eureka/EurekaRibbonClientConfiguration.class]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. Disconnected from the target VM, address: '127.0.0.1:49482', transport: 'socket'

Process finished with exit code 1

wendao8469759 commented 5 years ago

不好意思。 我的失误。 配置错了一个东西