[spring-projects/spring-boot]spring-boot-starter-parent 2.1.2.RELEASE amqp 兔子不工作

2024-04-11 722 views
6

我将 spring-boot-starter-parent 2.1.0.RELEASE 升级到 2.1.2.RELEASE 应用程序无法启动


java.lang.IllegalAccessError: class org.springframework.amqp.rabbit.listener.$Proxy224 cannot access its superinterface org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer$ContainerDelegate
    at java.lang.reflect.Proxy.defineClass0(Native Method)
    at java.lang.reflect.Proxy.access$300(Proxy.java:228)
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:642)
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)
    at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230)
    at java.lang.reflect.WeakCache.get(WeakCache.java:127)
    at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419)
    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:123)
    at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initializeProxy(AbstractMessageListenerContainer.java:1135)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initialize(AbstractMessageListenerContainer.java:1161)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.afterPropertiesSet(AbstractMessageListenerContainer.java:1109)
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.createListenerContainer(RabbitListenerEndpointRegistry.java:186)
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:154)
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:128)
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.registerAllEndpoints(RabbitListenerEndpointRegistrar.java:140)
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.afterPropertiesSet(RabbitListenerEndpointRegistrar.java:133)
    at org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor.afterSingletonsInstantiated(RabbitListenerAnnotationBeanPostProcessor.java:257)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:863)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
    at com.sixi.ali.appservice.AliAppServiceApplication.main(AliAppServiceApplication.java:15)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

回答

6

感谢您的报告,但“无法工作”和“无法启动”并不能告诉我们足够的信息来诊断问题。我可以从堆栈跟踪中看到您正在使用 DevTools。在不涉及 DevTools 的情况下是否也会出现该问题?如果您希望我们花一些时间调查该问题,请花一些时间提供重现该问题的最小样本。我们可以解压或 git 克隆的东西是理想的。

2

我有类似的问题,当我的项目使用 devtools 然后无法启动,删除 devtools 然后就可以了。我尝试制作一个小型演示,添加 spring detools + spring amqp starter + spring web starter,但演示还可以。所以可能是我的项目太奇怪了。

我的项目启动异常是:


15:37:41.879    [restartedMain] ERROR   o.s.boot.SpringApplication  -    Application run failed org.springframework.beans.factory.BeanInitializationException: Failed to initialize message listener container; nested exception is org.springframework.amqp.UncategorizedAmqpException: java.lang.IllegalArgumentException: non-public interface is not defined by the given loader 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.createListenerContainer(RabbitListenerEndpointRegistry.java:189) 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:154) 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:128) 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.registerAllEndpoints(RabbitListenerEndpointRegistrar.java:140) 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.afterPropertiesSet(RabbitListenerEndpointRegistrar.java:133) 
    at org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor.afterSingletonsInstantiated(RabbitListenerAnnotationBeanPostProcessor.java:257) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:863) 
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) 
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) 
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) 
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) 
    at thelook.wms.App.main(App.java:28) 
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.base/java.lang.reflect.Method.invoke(Method.java:566) 
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) 
 Caused by: org.springframework.amqp.UncategorizedAmqpException: java.lang.IllegalArgumentException: non-public interface is not defined by the given loader 
    at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:83) 
    at org.springframework.amqp.rabbit.connection.RabbitAccessor.convertRabbitAccessException(RabbitAccessor.java:116) 
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initialize(AbstractMessageListenerContainer.java:1179) 
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.afterPropertiesSet(AbstractMessageListenerContainer.java:1109) 
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.createListenerContainer(RabbitListenerEndpointRegistry.java:186) 
    ... 20 common frames omitted 
 Caused by: java.lang.IllegalArgumentException: non-public interface is not defined by the given loader 
    at java.base/java.lang.reflect.Proxy$ProxyBuilder.mapToModule(Proxy.java:798) 
    at java.base/java.lang.reflect.Proxy$ProxyBuilder.<init>(Proxy.java:630) 
    at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$1(Proxy.java:426) 
    at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329) 
    at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205) 
    at java.base/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:424) 
    at java.base/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1006) 
    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:123) 
    at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110) 
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initializeProxy(AbstractMessageListenerContainer.java:1135) 
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initialize(AbstractMessageListenerContainer.java:1161) 
    ... 22 common frames omitted 
8

@giant35 也许你可以分享你的构建?我怀疑您的构建正在覆盖某些版本,以便不兼容的库位于类路径上。我们怀疑 Spring Boot 中没有问题,但在没有更多详细信息的情况下无法确定。

9

@snicoll我的项目是使用maven,可能是spring-cloud Finchley.SR2覆盖de版本,这是pom.xml


<?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>test</groupId>
    <artifactId>proj1</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>war</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
        <spring-cloud-version>Finchley.SR2</spring-cloud-version>
    </properties>    
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.2.RELEASE</version>
    </parent>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud-version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>        
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.webjars</groupId>
            <artifactId>bootstrap</artifactId>
            <version>3.3.7</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>
        <!-- Provided -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
<!--            <scope>provided</scope>-->
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
<!--            <scope>provided</scope>-->
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-test-autoconfigure</artifactId>
            <scope>test</scope>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>            
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
            <version>3.17</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-taglibs</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-amqp</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-cache</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.ehcache</groupId>
            <artifactId>ehcache</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>fluent-hc</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>commons-java-jdk11</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.mail</groupId>
            <artifactId>javax.mail</artifactId>
        </dependency>
        <dependency>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-annotations</artifactId>
            <version>1.5.16</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-ldap</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.17</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-zipkin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-sleuth</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-sleuth-zipkin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>            
        </dependency>     
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-indexer</artifactId>
            <optional>true</optional>
        </dependency>           
        <dependency>
            <groupId>io.micrometer</groupId>
            <artifactId>micrometer-registry-influx</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
    </dependencies>
    <build>
        <finalName>proj1</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <useSystemClassLoader>false</useSystemClassLoader>
                </configuration>
            </plugin>
            <plugin>
                <groupId>pl.project13.maven</groupId>
                <artifactId>git-commit-id-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
                </configuration>
            </plugin>              

            <!--增加swagger-plugin-->
            <plugin>
                <groupId>com.github.kongchen</groupId>
                <artifactId>swagger-maven-plugin</artifactId>
                <version>3.1.7</version><!--(貌似别的版本不行,耗了挺长时间的) -->
                <configuration>                    
                    <apiSources>                        
                        <apiSource>
                            <springmvc>true</springmvc>
                            <locations>
                                <location>com.test.rest</location>
                            </locations>
                            <schemes>
                                <scheme>http</scheme>
                                <scheme>https</scheme>
                            </schemes>
                            <basePath>http://test.com</basePath>
                            <info>
                                <title>test API</title>
                                <version>v1</version>
                                <contact>
                                    <email>TTT@test.com</email>
                                    <name>TTT</name>
                                </contact>
                            </info>
                            <swaggerDirectory>${basedir}/docs/</swaggerDirectory>
                        </apiSource>
                    </apiSources>
                </configuration>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>                 
        </plugins>
    </build>    
</project>
4

mvn dependency:tree 显示这个:


[INFO] ----------------------------< test.proj1 >-----------------------------
[INFO] Building proj1 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ proj1 ---
[INFO] test:proj1:war:1.0-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.1.2.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.1.2.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.1.2.RELEASE:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.11.1:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.11.1:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.23:runtime
[INFO] |  +- org.springframework.boot:spring-boot-starter-json:jar:2.1.2.RELEASE:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.8:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.8:compile
[INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.8:compile
[INFO] |  +- org.hibernate.validator:hibernate-validator:jar:6.0.14.Final:compile
[INFO] |  |  +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] |  |  \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] |  +- org.springframework:spring-web:jar:5.1.4.RELEASE:compile
[INFO] |  \- org.springframework:spring-webmvc:jar:5.1.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.1.2.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-aop:jar:2.1.2.RELEASE:compile
[INFO] |  |  \- org.aspectj:aspectjweaver:jar:1.9.2:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.1.2.RELEASE:compile
[INFO] |  |  +- com.zaxxer:HikariCP:jar:3.2.0:compile
[INFO] |  |  \- org.springframework:spring-jdbc:jar:5.1.4.RELEASE:compile
[INFO] |  +- javax.transaction:javax.transaction-api:jar:1.3:compile
[INFO] |  +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] |  |  \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] |  +- org.hibernate:hibernate-core:jar:5.3.7.Final:compile
[INFO] |  |  +- javax.persistence:javax.persistence-api:jar:2.2:compile
[INFO] |  |  +- org.javassist:javassist:jar:3.23.1-GA:compile
[INFO] |  |  +- net.bytebuddy:byte-buddy:jar:1.9.7:compile
[INFO] |  |  +- antlr:antlr:jar:2.7.7:compile
[INFO] |  |  +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] |  |  +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] |  |  \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.4.Final:compile
[INFO] |  +- org.springframework.data:spring-data-jpa:jar:2.1.4.RELEASE:compile
[INFO] |  |  +- org.springframework.data:spring-data-commons:jar:2.1.4.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-orm:jar:5.1.4.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-tx:jar:5.1.4.RELEASE:compile
[INFO] |  \- org.springframework:spring-aspects:jar:5.1.4.RELEASE:compile
[INFO] +- org.webjars:bootstrap:jar:3.3.7:compile
[INFO] |  \- org.webjars:jquery:jar:1.11.1:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.13:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.1.2.RELEASE:compile (optional) 
[INFO] |  +- org.springframework.boot:spring-boot:jar:2.1.2.RELEASE:compile
[INFO] |  \- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.2.RELEASE:compile
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.1.2.RELEASE:compile
[INFO] |  +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.14:compile
[INFO] |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.14:compile
[INFO] |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.14:compile
[INFO] +- org.apache.tomcat.embed:tomcat-embed-jasper:jar:9.0.14:compile
[INFO] |  \- org.eclipse.jdt:ecj:jar:3.15.0:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.2.RELEASE:test
[INFO] |  \- org.springframework.boot:spring-boot-test:jar:2.1.2.RELEASE:test
[INFO] +- com.h2database:h2:jar:1.4.197:test
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.2.RELEASE:test
[INFO] |  +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] |  |  \- net.minidev:json-smart:jar:2.3:compile
[INFO] |  |     \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] |  |        \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] |  +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] |  +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] |  |  +- net.bytebuddy:byte-buddy-agent:jar:1.9.7:test
[INFO] |  |  \- org.objenesis:objenesis:jar:2.6:test
[INFO] |  +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] |  |  \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] |  +- org.springframework:spring-core:jar:5.1.4.RELEASE:compile
[INFO] |  |  \- org.springframework:spring-jcl:jar:5.1.4.RELEASE:compile
[INFO] |  +- org.springframework:spring-test:jar:5.1.4.RELEASE:test
[INFO] |  \- org.xmlunit:xmlunit-core:jar:2.6.2:test
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.8:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-core:jar:2.9.8:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] +- org.apache.poi:poi:jar:3.17:compile
[INFO] |  +- commons-codec:commons-codec:jar:1.11:compile
[INFO] |  \- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.1.2.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:5.1.4.RELEASE:compile
[INFO] |  \- org.springframework.security:spring-security-config:jar:5.1.3.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-web:jar:5.1.3.RELEASE:compile
[INFO] |  +- org.springframework.security:spring-security-core:jar:5.1.3.RELEASE:compile
[INFO] |  +- org.springframework:spring-beans:jar:5.1.4.RELEASE:compile
[INFO] |  +- org.springframework:spring-context:jar:5.1.4.RELEASE:compile
[INFO] |  \- org.springframework:spring-expression:jar:5.1.4.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:5.1.3.RELEASE:compile
[INFO] |  \- org.springframework.security:spring-security-acl:jar:5.1.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-amqp:jar:2.1.2.RELEASE:compile
[INFO] |  +- org.springframework:spring-messaging:jar:5.1.4.RELEASE:compile
[INFO] |  \- org.springframework.amqp:spring-rabbit:jar:2.1.3.RELEASE:compile
[INFO] |     +- org.springframework.amqp:spring-amqp:jar:2.1.3.RELEASE:compile
[INFO] |     |  \- org.springframework.retry:spring-retry:jar:1.2.3.RELEASE:compile
[INFO] |     \- com.rabbitmq:amqp-client:jar:5.4.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.1.2.RELEASE:compile
[INFO] |  \- org.springframework:spring-context-support:jar:5.1.4.RELEASE:compile
[INFO] +- net.sf.ehcache:ehcache:jar:2.10.6:compile
[INFO] +- org.apache.httpcomponents:fluent-hc:jar:4.5.6:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- thelook:commons-java-jdk11:jar:1.0-SNAPSHOT:compile
[INFO] |  +- com.qiniu:qiniu-java-sdk:jar:7.2.11:compile
[INFO] |  |  +- com.squareup.okhttp3:okhttp:jar:3.8.1:compile
[INFO] |  |  |  \- com.squareup.okio:okio:jar:1.13.0:compile
[INFO] |  |  +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] |  |  \- com.qiniu:happy-dns-java:jar:0.1.6:compile
[INFO] |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.9.8:compile
[INFO] |  |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.8:compile
[INFO] |  |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |  |  \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] |  +- commons-io:commons-io:jar:2.6:compile
[INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
[INFO] |  |  \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] |  +- jaxen:jaxen:jar:1.1.6:compile
[INFO] |  +- com.sun.xml.bind:jaxb-impl:jar:2.3.0:compile
[INFO] |  \- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile
[INFO] +- com.sun.mail:javax.mail:jar:1.6.2:compile
[INFO] |  \- javax.activation:activation:jar:1.1:compile
[INFO] +- io.swagger:swagger-annotations:jar:1.5.16:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-ldap:jar:2.1.2.RELEASE:compile
[INFO] |  \- org.springframework.data:spring-data-ldap:jar:2.1.4.RELEASE:compile
[INFO] |     \- org.springframework.ldap:spring-ldap-core:jar:2.3.2.RELEASE:compile
[INFO] +- org.apache.poi:poi-ooxml:jar:3.17:compile
[INFO] |  +- org.apache.poi:poi-ooxml-schemas:jar:3.17:compile
[INFO] |  |  \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] |  |     \- stax:stax-api:jar:1.0.1:compile
[INFO] |  \- com.github.virtuald:curvesapi:jar:1.04:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-zipkin:jar:2.0.2.RELEASE:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.0.2.RELEASE:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-starter:jar:2.0.2.RELEASE:compile
[INFO] |  |  +- org.springframework.cloud:spring-cloud-context:jar:2.0.2.RELEASE:compile
[INFO] |  |  \- org.springframework.security:spring-security-rsa:jar:1.0.7.RELEASE:compile
[INFO] |  |     \- org.bouncycastle:bcpkix-jdk15on:jar:1.60:compile
[INFO] |  |        \- org.bouncycastle:bcprov-jdk15on:jar:1.60:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-openfeign-core:jar:2.0.2.RELEASE:compile
[INFO] |  |  +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.0.2.RELEASE:compile
[INFO] |  |  |  \- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.0.2.RELEASE:compile
[INFO] |  |  \- io.github.openfeign.form:feign-form-spring:jar:3.3.0:compile
[INFO] |  |     +- io.github.openfeign.form:feign-form:jar:3.3.0:compile
[INFO] |  |     |  \- com.google.code.findbugs:annotations:jar:3.0.1:compile
[INFO] |  |     |     \- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] |  |     \- commons-fileupload:commons-fileupload:jar:1.3.3:compile
[INFO] |  +- org.springframework.cloud:spring-cloud-commons:jar:2.0.2.RELEASE:compile
[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:5.1.3.RELEASE:compile
[INFO] |  +- io.github.openfeign:feign-core:jar:9.7.0:compile
[INFO] |  +- io.github.openfeign:feign-slf4j:jar:9.7.0:compile
[INFO] |  +- io.github.openfeign:feign-hystrix:jar:9.7.0:compile
[INFO] |  |  +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] |  |  |  +- com.google.code.findbugs:jsr305:jar:3.0.1:compile
[INFO] |  |  |  +- commons-configuration:commons-configuration:jar:1.8:runtime
[INFO] |  |  |  |  \- commons-lang:commons-lang:jar:2.6:runtime
[INFO] |  |  |  \- com.google.guava:guava:jar:16.0:runtime
[INFO] |  |  \- com.netflix.hystrix:hystrix-core:jar:1.5.12:compile
[INFO] |  |     \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] |  \- io.github.openfeign:feign-java8:jar:9.7.0:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:2.0.2.RELEASE:compile
[INFO] |  \- org.springframework.cloud:spring-cloud-sleuth-core:jar:2.0.2.RELEASE:compile
[INFO] |     +- org.aspectj:aspectjrt:jar:1.9.2:compile
[INFO] |     +- io.zipkin.brave:brave:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-context-log4j2:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-instrumentation-spring-web:jar:5.4.3:compile
[INFO] |     |  \- io.zipkin.brave:brave-instrumentation-http:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.4.3:compile
[INFO] |     +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.4.3:compile
[INFO] |     \- io.zipkin.brave:brave-instrumentation-spring-webmvc:jar:5.4.3:compile
[INFO] |        \- io.zipkin.brave:brave-instrumentation-servlet:jar:5.4.3:compile
[INFO] +- org.springframework.cloud:spring-cloud-sleuth-zipkin:jar:2.0.2.RELEASE:compile
[INFO] |  +- io.zipkin.zipkin2:zipkin:jar:2.11.7:compile
[INFO] |  +- io.zipkin.reporter2:zipkin-reporter:jar:2.7.10:compile
[INFO] |  +- io.zipkin.reporter2:zipkin-sender-kafka11:jar:2.7.10:compile
[INFO] |  \- io.zipkin.reporter2:zipkin-sender-amqp-client:jar:2.7.10:compile
[INFO] +- org.flywaydb:flyway-core:jar:5.2.4:compile
[INFO] +- org.springframework:spring-context-indexer:jar:5.1.4.RELEASE:compile (optional) 
[INFO] +- io.micrometer:micrometer-registry-influx:jar:1.1.2:compile
[INFO] |  \- io.micrometer:micrometer-core:jar:1.1.2:compile
[INFO] |     +- org.hdrhistogram:HdrHistogram:jar:2.1.9:compile
[INFO] |     \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] \- org.springframework.boot:spring-boot-starter-actuator:jar:2.1.2.RELEASE:compile
[INFO]    \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.1.2.RELEASE:compile
[INFO]       \- org.springframework.boot:spring-boot-actuator:jar:2.1.2.RELEASE:compile
[INFO] ------------------------------------------------------------------------
3

@wilkinsona test-rabbitmq-service.zip 启动日志

"C:\Program Files\Java\jdk1.8.0_192\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56830,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=56829 -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:\ProgramData\IDEA\captureAgent\debugger-agent.jar=file:/C:/Users/jiang/AppData/Local/Temp/capture47970.props -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_192\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_192\jre\lib\rt.jar;E:\JavaWorkSpace\sixi-micro-services-2\sixi-micro-service-test\test-rabbitmq-service\target\classes;E:\MavenRepository\org\springframework\boot\spring-boot-starter-actuator\2.1.2.RELEASE\spring-boot-starter-actuator-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter\2.1.2.RELEASE\spring-boot-starter-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-logging\2.1.2.RELEASE\spring-boot-starter-logging-2.1.2.RELEASE.jar;E:\MavenRepository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\MavenRepository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\MavenRepository\org\apache\logging\log4j\log4j-to-slf4j\2.11.1\log4j-to-slf4j-2.11.1.jar;E:\MavenRepository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar;E:\MavenRepository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;E:\MavenRepository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;E:\MavenRepository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;E:\MavenRepository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.2.RELEASE\spring-boot-actuator-autoconfigure-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-actuator\2.1.2.RELEASE\spring-boot-actuator-2.1.2.RELEASE.jar;E:\MavenRepository\com\fasterxml\jackson\core\jackson-databind\2.9.8\jackson-databind-2.9.8.jar;E:\MavenRepository\org\springframework\spring-context\5.1.4.RELEASE\spring-context-5.1.4.RELEASE.jar;E:\MavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.8\jackson-datatype-jsr310-2.9.8.jar;E:\MavenRepository\io\micrometer\micrometer-core\1.1.2\micrometer-core-1.1.2.jar;E:\MavenRepository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\MavenRepository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-stream-rabbit\2.1.0.RC2\spring-cloud-starter-stream-rabbit-2.1.0.RC2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-stream-binder-rabbit\2.1.0.RC2\spring-cloud-stream-binder-rabbit-2.1.0.RC2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-stream-binder-rabbit-core\2.1.0.RC2\spring-cloud-stream-binder-rabbit-core-2.1.0.RC2.jar;E:\MavenRepository\org\apache\httpcomponents\httpclient\4.5.6\httpclient-4.5.6.jar;E:\MavenRepository\org\apache\httpcomponents\httpcore\4.4.10\httpcore-4.4.10.jar;E:\MavenRepository\com\rabbitmq\http-client\2.1.0.RELEASE\http-client-2.1.0.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-stream\2.1.0.RC2\spring-cloud-stream-2.1.0.RC2.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-validation\2.1.2.RELEASE\spring-boot-starter-validation-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\spring-tuple\1.0.0.RELEASE\spring-tuple-1.0.0.RELEASE.jar;E:\MavenRepository\com\esotericsoftware\kryo-shaded\3.0.3\kryo-shaded-3.0.3.jar;E:\MavenRepository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;E:\MavenRepository\org\springframework\integration\spring-integration-tuple\1.0.0.RELEASE\spring-integration-tuple-1.0.0.RELEASE.jar;E:\MavenRepository\org\springframework\retry\spring-retry\1.2.3.RELEASE\spring-retry-1.2.3.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-function-context\2.0.0.RC2\spring-cloud-function-context-2.0.0.RC2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-function-core\2.0.0.RC2\spring-cloud-function-core-2.0.0.RC2.jar;E:\MavenRepository\org\springframework\integration\spring-integration-amqp\5.1.2.RELEASE\spring-integration-amqp-5.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\integration\spring-integration-core\5.1.2.RELEASE\spring-integration-core-5.1.2.RELEASE.jar;E:\MavenRepository\io\projectreactor\reactor-core\3.2.5.RELEASE\reactor-core-3.2.5.RELEASE.jar;E:\MavenRepository\org\springframework\integration\spring-integration-jmx\5.1.2.RELEASE\spring-integration-jmx-5.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-netflix-hystrix\2.1.0.M3\spring-cloud-starter-netflix-hystrix-2.1.0.M3.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter\2.1.0.M2\spring-cloud-starter-2.1.0.M2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-context\2.1.0.M2\spring-cloud-context-2.1.0.M2.jar;E:\MavenRepository\org\springframework\security\spring-security-crypto\5.1.3.RELEASE\spring-security-crypto-5.1.3.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-commons\2.1.0.M2\spring-cloud-commons-2.1.0.M2.jar;E:\MavenRepository\org\springframework\security\spring-security-rsa\1.0.7.RELEASE\spring-security-rsa-1.0.7.RELEASE.jar;E:\MavenRepository\org\bouncycastle\bcpkix-jdk15on\1.60\bcpkix-jdk15on-1.60.jar;E:\MavenRepository\org\bouncycastle\bcprov-jdk15on\1.60\bcprov-jdk15on-1.60.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-netflix-hystrix\2.1.0.M3\spring-cloud-netflix-hystrix-2.1.0.M3.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.1.0.M3\spring-cloud-netflix-ribbon-2.1.0.M3.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-netflix-archaius\2.1.0.M3\spring-cloud-netflix-archaius-2.1.0.M3.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.1.0.M3\spring-cloud-starter-netflix-archaius-2.1.0.M3.jar;E:\MavenRepository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\MavenRepository\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;E:\MavenRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\MavenRepository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\MavenRepository\com\netflix\hystrix\hystrix-core\1.5.12\hystrix-core-1.5.12.jar;E:\MavenRepository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;E:\MavenRepository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\MavenRepository\com\netflix\hystrix\hystrix-serialization\1.5.12\hystrix-serialization-1.5.12.jar;E:\MavenRepository\com\fasterxml\jackson\module\jackson-module-afterburner\2.9.8\jackson-module-afterburner-2.9.8.jar;E:\MavenRepository\com\fasterxml\jackson\core\jackson-core\2.9.8\jackson-core-2.9.8.jar;E:\MavenRepository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;E:\MavenRepository\com\netflix\hystrix\hystrix-metrics-event-stream\1.5.12\hystrix-metrics-event-stream-1.5.12.jar;E:\MavenRepository\com\netflix\hystrix\hystrix-javanica\1.5.12\hystrix-javanica-1.5.12.jar;E:\MavenRepository\org\apache\commons\commons-lang3\3.8.1\commons-lang3-3.8.1.jar;E:\MavenRepository\org\ow2\asm\asm\5.0.4\asm-5.0.4.jar;E:\MavenRepository\org\aspectj\aspectjweaver\1.9.2\aspectjweaver-1.9.2.jar;E:\MavenRepository\com\google\guava\guava\15.0\guava-15.0.jar;E:\MavenRepository\io\reactivex\rxjava-reactive-streams\1.2.1\rxjava-reactive-streams-1.2.1.jar;E:\MavenRepository\org\reactivestreams\reactive-streams\1.0.2\reactive-streams-1.0.2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-bus-amqp\2.1.0.M2\spring-cloud-starter-bus-amqp-2.1.0.M2.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-bus\2.1.0.M2\spring-cloud-bus-2.1.0.M2.jar;E:\MavenRepository\com\squareup\okhttp3\okhttp\3.10.0\okhttp-3.10.0.jar;E:\MavenRepository\com\squareup\okio\okio\1.14.0\okio-1.14.0.jar;E:\MavenRepository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;E:\MavenRepository\org\springframework\spring-core\5.1.4.RELEASE\spring-core-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\spring-jcl\5.1.4.RELEASE\spring-jcl-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-web\2.1.2.RELEASE\spring-boot-starter-web-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-json\2.1.2.RELEASE\spring-boot-starter-json-2.1.2.RELEASE.jar;E:\MavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.8\jackson-datatype-jdk8-2.9.8.jar;E:\MavenRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.8\jackson-module-parameter-names-2.9.8.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-tomcat\2.1.2.RELEASE\spring-boot-starter-tomcat-2.1.2.RELEASE.jar;E:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-core\9.0.14\tomcat-embed-core-9.0.14.jar;E:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-el\9.0.14\tomcat-embed-el-9.0.14.jar;E:\MavenRepository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.14\tomcat-embed-websocket-9.0.14.jar;E:\MavenRepository\org\hibernate\validator\hibernate-validator\6.0.14.Final\hibernate-validator-6.0.14.Final.jar;E:\MavenRepository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;E:\MavenRepository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;E:\MavenRepository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;E:\MavenRepository\org\springframework\spring-web\5.1.4.RELEASE\spring-web-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\spring-beans\5.1.4.RELEASE\spring-beans-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\spring-webmvc\5.1.4.RELEASE\spring-webmvc-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\spring-aop\5.1.4.RELEASE\spring-aop-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\spring-expression\5.1.4.RELEASE\spring-expression-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-oauth2\2.1.0.M1\spring-cloud-starter-oauth2-2.1.0.M1.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-security\2.1.0.M1\spring-cloud-starter-security-2.1.0.M1.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-security\2.1.0.M1\spring-cloud-security-2.1.0.M1.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-security\2.1.2.RELEASE\spring-boot-starter-security-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\security\oauth\boot\spring-security-oauth2-autoconfigure\2.1.0.M4\spring-security-oauth2-autoconfigure-2.1.0.M4.jar;E:\MavenRepository\org\springframework\security\oauth\spring-security-oauth2\2.3.3.RELEASE\spring-security-oauth2-2.3.3.RELEASE.jar;E:\MavenRepository\org\springframework\security\spring-security-core\5.1.3.RELEASE\spring-security-core-5.1.3.RELEASE.jar;E:\MavenRepository\org\springframework\security\spring-security-config\5.1.3.RELEASE\spring-security-config-5.1.3.RELEASE.jar;E:\MavenRepository\org\springframework\security\spring-security-web\5.1.3.RELEASE\spring-security-web-5.1.3.RELEASE.jar;E:\MavenRepository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;E:\MavenRepository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;E:\MavenRepository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;E:\MavenRepository\org\springframework\security\spring-security-jwt\1.0.9.RELEASE\spring-security-jwt-1.0.9.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-starter-sleuth\2.1.0.M2\spring-cloud-starter-sleuth-2.1.0.M2.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-aop\2.1.2.RELEASE\spring-boot-starter-aop-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\cloud\spring-cloud-sleuth-core\2.1.0.M2\spring-cloud-sleuth-core-2.1.0.M2.jar;E:\MavenRepository\org\aspectj\aspectjrt\1.9.2\aspectjrt-1.9.2.jar;E:\MavenRepository\io\zipkin\brave\brave\5.4.4\brave-5.4.4.jar;E:\MavenRepository\io\zipkin\zipkin2\zipkin\2.11.7\zipkin-2.11.7.jar;E:\MavenRepository\io\zipkin\reporter2\zipkin-reporter\2.7.10\zipkin-reporter-2.7.10.jar;E:\MavenRepository\io\zipkin\brave\brave-context-log4j2\5.4.4\brave-context-log4j2-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-spring-web\5.4.4\brave-instrumentation-spring-web-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-http\5.4.4\brave-instrumentation-http-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-spring-rabbit\5.4.4\brave-instrumentation-spring-rabbit-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-kafka-clients\5.4.4\brave-instrumentation-kafka-clients-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-httpclient\5.4.4\brave-instrumentation-httpclient-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-httpasyncclient\5.4.4\brave-instrumentation-httpasyncclient-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-spring-webmvc\5.4.4\brave-instrumentation-spring-webmvc-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-servlet\5.4.4\brave-instrumentation-servlet-5.4.4.jar;E:\MavenRepository\io\zipkin\brave\brave-instrumentation-jms\5.4.4\brave-instrumentation-jms-5.4.4.jar;E:\MavenRepository\org\springframework\boot\spring-boot-starter-amqp\2.1.2.RELEASE\spring-boot-starter-amqp-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\spring-messaging\5.1.4.RELEASE\spring-messaging-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\amqp\spring-rabbit\2.1.3.RELEASE\spring-rabbit-2.1.3.RELEASE.jar;E:\MavenRepository\org\springframework\amqp\spring-amqp\2.1.3.RELEASE\spring-amqp-2.1.3.RELEASE.jar;E:\MavenRepository\com\rabbitmq\amqp-client\5.4.3\amqp-client-5.4.3.jar;E:\MavenRepository\org\springframework\spring-tx\5.1.4.RELEASE\spring-tx-5.1.4.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-configuration-processor\2.1.2.RELEASE\spring-boot-configuration-processor-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-devtools\2.1.2.RELEASE\spring-boot-devtools-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot\2.1.2.RELEASE\spring-boot-2.1.2.RELEASE.jar;E:\MavenRepository\org\springframework\boot\spring-boot-autoconfigure\2.1.2.RELEASE\spring-boot-autoconfigure-2.1.2.RELEASE.jar;C:\Program Files\Jetbrains\ideaIU-2018.2\lib\idea_rt.jar" com.sixi.test.rabbitmqservice.TestRabbitMQServiceApplication
Connected to the target VM, address: '127.0.0.1:56830', transport: 'socket'
2019-01-16 09:50:18.441  INFO [-,,,] 2396 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2019-01-16 09:50:18.675  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4ac4d994] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

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

2019-01-16 09:50:19.034  INFO [-,,,] 2396 --- [  restartedMain] c.s.t.r.TestRabbitMQServiceApplication   : No active profile set, falling back to default profiles: default
2019-01-16 09:50:20.284  WARN [-,,,] 2396 --- [  restartedMain] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'bus-env' contains invalid characters, please migrate to a valid format.
2019-01-16 09:50:21.066  INFO [-,,,] 2396 --- [  restartedMain] o.s.cloud.context.scope.GenericScope     : BeanFactory id=5f315592-0b6f-3243-a356-818799343b23
2019-01-16 09:50:21.081  INFO [-,,,] 2396 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
2019-01-16 09:50:21.081  INFO [-,,,] 2396 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2019-01-16 09:50:21.097  INFO [-,,,] 2396 --- [  restartedMain] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
2019-01-16 09:50:21.175  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration' of type [org.springframework.amqp.rabbit.annotation.RabbitBootstrapConfiguration$$EnhancerBySpringCGLIB$$f51694c5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.456  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$2eaad697] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.488  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.534  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$999c91c6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.566  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration' of type [org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration$IntegrationJmxConfiguration$$EnhancerBySpringCGLIB$$752e9ce6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.581  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration$$EnhancerBySpringCGLIB$$ae1645b3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.581  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.628  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$4ac4d994] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:21.644  INFO [-,,,] 2396 --- [  restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$TraceOAuthConfiguration' of type [org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$TraceOAuthConfiguration$$EnhancerBySpringCGLIB$$73a768f6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-01-16 09:50:22.566  INFO [-,,,] 2396 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-01-16 09:50:22.597  INFO [-,,,] 2396 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-01-16 09:50:22.597  INFO [-,,,] 2396 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.14]
2019-01-16 09:50:22.613  INFO [-,,,] 2396 --- [  restartedMain] 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: [C:\Program Files\Java\jdk1.8.0_192\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Boxstarter;D:\Maven\bin;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_181\bin;C:\Program Files (x86)\Yarn\bin\;C:\ProgramData\chocolatey\bin;C:\Users\jiang\go\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\MinGW\bin;E:\Seafile\工作空间\GoWorkSpace\bin;C:\Go\\bin;;C:\Users\jiang\AppData\Local\Microsoft\WindowsApps;C:\Users\jiang\AppData\Local\Yarn\bin;C:\Program Files\Microsoft VS Code\bin;C:\Users\jiang\go\bin;C:\Users\jiang\AppData\Roaming\npm;.]
2019-01-16 09:50:22.753  INFO [-,,,] 2396 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-01-16 09:50:22.753  INFO [-,,,] 2396 --- [  restartedMain] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3703 ms
2019-01-16 09:50:23.019  WARN [-,,,] 2396 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-01-16 09:50:23.019  INFO [-,,,] 2396 --- [  restartedMain] 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.
2019-01-16 09:50:23.034  INFO [-,,,] 2396 --- [  restartedMain] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@40dd435d
2019-01-16 09:50:23.894  WARN [-,,,] 2396 --- [  restartedMain] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'bus-refresh' contains invalid characters, please migrate to a valid format.
2019-01-16 09:50:24.238  INFO [-,,,] 2396 --- [  restartedMain] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2019-01-16 09:50:24.831  WARN [-,,,] 2396 --- [  restartedMain] o.s.c.n.a.ArchaiusAutoConfiguration      : No spring.application.name found, defaulting to 'application'
2019-01-16 09:50:24.847  WARN [-,,,] 2396 --- [  restartedMain] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2019-01-16 09:50:24.847  INFO [-,,,] 2396 --- [  restartedMain] 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.
2019-01-16 09:50:25.238  INFO [-,,,] 2396 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-01-16 09:50:26.284  INFO [-,,,] 2396 --- [  restartedMain] .s.s.UserDetailsServiceAutoConfiguration : 

Using generated security password: f147bc0d-0e3f-46b5-af6e-c0e0c9e21fbc

2019-01-16 09:50:26.456  INFO [-,,,] 2396 --- [  restartedMain] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@12337c3f, org.springframework.security.web.context.SecurityContextPersistenceFilter@7d2ebef6, org.springframework.security.web.header.HeaderWriterFilter@20608b9f, org.springframework.security.web.csrf.CsrfFilter@62323bb0, org.springframework.security.web.authentication.logout.LogoutFilter@172c3e08, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@6d46696e, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@eec2c51, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@513214f8, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@20859f02, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@bbec1e4, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@23e6fe17, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@a0432a0, org.springframework.security.web.session.SessionManagementFilter@589c5a57, org.springframework.security.web.access.ExceptionTranslationFilter@fbe48cb, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@26efb7de]
2019-01-16 09:50:26.566  INFO [-,,,] 2396 --- [  restartedMain] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 24 endpoint(s) beneath base path '/actuator'
2019-01-16 09:50:26.753  INFO [-,,,] 2396 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729
2019-01-16 09:50:27.378  INFO [-,,,] 2396 --- [  restartedMain] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-01-16 09:50:27.378 ERROR [-,,,] 2396 --- [  restartedMain] o.s.boot.SpringApplication               : Application run failed

java.lang.IllegalAccessError: class org.springframework.amqp.rabbit.listener.$Proxy160 cannot access its superinterface org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer$ContainerDelegate
    at java.lang.reflect.Proxy.defineClass0(Native Method) ~[na:1.8.0_192]
    at java.lang.reflect.Proxy.access$300(Proxy.java:228) ~[na:1.8.0_192]
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:642) ~[na:1.8.0_192]
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557) ~[na:1.8.0_192]
    at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230) ~[na:1.8.0_192]
    at java.lang.reflect.WeakCache.get(WeakCache.java:127) ~[na:1.8.0_192]
    at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419) ~[na:1.8.0_192]
    at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719) ~[na:1.8.0_192]
    at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:123) ~[spring-aop-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:110) ~[spring-aop-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initializeProxy(AbstractMessageListenerContainer.java:1135) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.initialize(AbstractMessageListenerContainer.java:1161) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.afterPropertiesSet(AbstractMessageListenerContainer.java:1109) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.createListenerContainer(RabbitListenerEndpointRegistry.java:186) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:154) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistry.registerListenerContainer(RabbitListenerEndpointRegistry.java:128) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.registerAllEndpoints(RabbitListenerEndpointRegistrar.java:140) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar.afterPropertiesSet(RabbitListenerEndpointRegistrar.java:133) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.amqp.rabbit.annotation.RabbitListenerAnnotationBeanPostProcessor.afterSingletonsInstantiated(RabbitListenerAnnotationBeanPostProcessor.java:257) ~[spring-rabbit-2.1.3.RELEASE.jar:2.1.3.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:863) ~[spring-beans-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863) ~[spring-context-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546) ~[spring-context-5.1.4.RELEASE.jar:5.1.4.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) [spring-boot-2.1.2.RELEASE.jar:2.1.2.RELEASE]
    at com.sixi.test.rabbitmqservice.TestRabbitMQServiceApplication.main(TestRabbitMQServiceApplication.java:23) [classes/:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_192]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_192]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_192]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_192]
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-2.1.2.RELEASE.jar:2.1.2.RELEASE]

2019-01-16 09:50:27.394  INFO [-,,,] 2396 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'
2019-01-16 09:50:27.394  INFO [-,,,] 2396 --- [  restartedMain] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
Disconnected from the target VM, address: '127.0.0.1:56830', transport: 'socket'

Process finished with exit code 1
8

@502647092 感谢您提供样本。请考虑将来减少示例的依赖关系,因为这样做会指出此问题的正确问题跟踪器。

如果删除spring-cloud-starter-sleuth此异常就会消失。还有一些机械涉及@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)

我不认为这是 Spring Boot 问题,因此请针对spring-cloud-sleuth 项目报告示例

5

我也只是在看这个,我不确定我是否同意。仅当 Sleuth 和 DevTools 组合使用时才会出现此问题。如果我删除 DevTools,问题就会消失。可能需要在 Sleuth 中进行修复,但我认为我们需要进行更多调查才能确定。

根据记录,重现问题的最小依赖项集如下:

    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-sleuth</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-amqp</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>
1

谢谢你,@baev。这告诉我们这是一个普遍的代理问题,而不是 Sleuth 特有的问题。

7

同样的错误,等待解决

6

从 Spring Boot 2.0.8 + Spring Cloud Finchley 升级到 Spring Boot 2.1.2 + Spring Cloud Greenwich 后出现同样的问题。

spring-boot-devtools从依赖项中排除解决了它。不使用侦探。

7

@SuperSpectre 谢谢。 @baev 已经引起我们的注意,问题的发生并不需要使用 Sleuth。我们认为这是一个普遍的代理问题,任何使用建议链SimpleRabbitListenerContainerFactory都会触发该问题。如果您的应用程序不符合该描述,您能否提供更多详细信息?

9

这似乎是 Spring AMQP 中由此更改引起的回归。无需涉及 Spring Boot 即可重现该问题:

 ClassLoader child = new URLClassLoader(new URL[0], AmqpProxyingBug.class.getClassLoader());
 Thread.currentThread().setContextClassLoader(child);
 SimpleRabbitListenerContainerFactory listenerContainerFactory = new SimpleRabbitListenerContainerFactory();
 listenerContainerFactory.setAdviceChain((MethodInterceptor) MethodInvocation::proceed);
 listenerContainerFactory.setConnectionFactory(new CachingConnectionFactory());
 listenerContainerFactory.createListenerContainer().afterPropertiesSet();

在这种情况下,代理是使用child类加载器创建的,但它尝试AbstractMessageListenerContainer$ContainerDelegate为父类加载器可见但也是私有的接口创建代理。这使得接口无法访问并IllegalAccessError抛出异常。

6

我能够spring-amqp在没有类路径的情况下重现此错误,看来 JPA 是触发器。区别在于仅删除开发工具修复了它,据我测试,没有其他依赖项起作用。我应该打开一个新问题并整理一个示例吗?还是在这里继续?

8

@devinsba 这听起来像是一个不同的根本原因。您能否用一个例子打开一个新问题。