zoukankan      html  css  js  c++  java
  • springboot2.2.1不兼容springcloud-gateway启动报错

    报错信息如下:

     1 D:	opbandSoftjavajdk1.8injava.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=64562 -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:G:softIDEAIntelliJ IDEA 2018.2.5libidea_rt.jar=64563:G:softIDEAIntelliJ IDEA 2018.2.5in" -Dfile.encoding=UTF-8 -classpath D:	opbandSoftjavajdk1.8jrelibcharsets.jar;D:	opbandSoftjavajdk1.8jrelibdeploy.jar;D:	opbandSoftjavajdk1.8jrelibextaccess-bridge-64.jar;D:	opbandSoftjavajdk1.8jrelibextcldrdata.jar;D:	opbandSoftjavajdk1.8jrelibextdnsns.jar;D:	opbandSoftjavajdk1.8jrelibextjaccess.jar;D:	opbandSoftjavajdk1.8jrelibextjfxrt.jar;D:	opbandSoftjavajdk1.8jrelibextlocaledata.jar;D:	opbandSoftjavajdk1.8jrelibext
    ashorn.jar;D:	opbandSoftjavajdk1.8jrelibextsunec.jar;D:	opbandSoftjavajdk1.8jrelibextsunjce_provider.jar;D:	opbandSoftjavajdk1.8jrelibextsunmscapi.jar;D:	opbandSoftjavajdk1.8jrelibextsunpkcs11.jar;D:	opbandSoftjavajdk1.8jrelibextzipfs.jar;D:	opbandSoftjavajdk1.8jrelibjavaws.jar;D:	opbandSoftjavajdk1.8jrelibjce.jar;D:	opbandSoftjavajdk1.8jrelibjfr.jar;D:	opbandSoftjavajdk1.8jrelibjfxswt.jar;D:	opbandSoftjavajdk1.8jrelibjsse.jar;D:	opbandSoftjavajdk1.8jrelibmanagement-agent.jar;D:	opbandSoftjavajdk1.8jrelibplugin.jar;D:	opbandSoftjavajdk1.8jrelib
    esources.jar;D:	opbandSoftjavajdk1.8jrelib
    t.jar;E:springcloud-alibabaapi-gateway	argetclasses;E:localRepositoryorgspringframeworkootspring-boot-starter2.2.1.RELEASEspring-boot-starter-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot2.2.1.RELEASEspring-boot-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-context5.2.1.RELEASEspring-context-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-aop5.2.1.RELEASEspring-aop-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-beans5.2.1.RELEASEspring-beans-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-expression5.2.1.RELEASEspring-expression-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-autoconfigure2.2.1.RELEASEspring-boot-autoconfigure-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-logging2.2.1.RELEASEspring-boot-starter-logging-2.2.1.RELEASE.jar;E:localRepositorychqoslogbacklogback-classic1.2.3logback-classic-1.2.3.jar;E:localRepositorychqoslogbacklogback-core1.2.3logback-core-1.2.3.jar;E:localRepositoryorgapachelogginglog4jlog4j-to-slf4j2.12.1log4j-to-slf4j-2.12.1.jar;E:localRepositoryorgapachelogginglog4jlog4j-api2.12.1log4j-api-2.12.1.jar;E:localRepositoryorgslf4jjul-to-slf4j1.7.29jul-to-slf4j-1.7.29.jar;E:localRepositoryjakartaannotationjakarta.annotation-api1.3.5jakarta.annotation-api-1.3.5.jar;E:localRepositoryorgspringframeworkspring-core5.2.1.RELEASEspring-core-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-jcl5.2.1.RELEASEspring-jcl-5.2.1.RELEASE.jar;E:localRepositoryorgyamlsnakeyaml1.25snakeyaml-1.25.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-gateway2.2.5.RELEASEspring-cloud-starter-gateway-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter2.2.5.RELEASEspring-cloud-starter-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworksecurityspring-security-rsa1.0.9.RELEASEspring-security-rsa-1.0.9.RELEASE.jar;E:localRepositoryorgouncycastlecpkix-jdk15on1.64cpkix-jdk15on-1.64.jar;E:localRepositoryorgouncycastlecprov-jdk15on1.64cprov-jdk15on-1.64.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-gateway-core2.2.5.RELEASEspring-cloud-gateway-core-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-validation2.2.1.RELEASEspring-boot-starter-validation-2.2.1.RELEASE.jar;E:localRepositoryjakartavalidationjakarta.validation-api2.0.1jakarta.validation-api-2.0.1.jar;E:localRepositoryorgapache	omcatembed	omcat-embed-el9.0.27	omcat-embed-el-9.0.27.jar;E:localRepositoryorghibernatevalidatorhibernate-validator6.0.18.Finalhibernate-validator-6.0.18.Final.jar;E:localRepositoryorgjbossloggingjboss-logging3.4.1.Finaljboss-logging-3.4.1.Final.jar;E:localRepositorycomfasterxmlclassmate1.5.1classmate-1.5.1.jar;E:localRepositoryioprojectreactoraddons
    eactor-extra3.3.0.RELEASE
    eactor-extra-3.3.0.RELEASE.jar;E:localRepositoryioprojectreactor
    eactor-core3.3.0.RELEASE
    eactor-core-3.3.0.RELEASE.jar;E:localRepositoryorg
    eactivestreams
    eactive-streams1.0.3
    eactive-streams-1.0.3.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-webflux2.2.1.RELEASEspring-boot-starter-webflux-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-json2.2.1.RELEASEspring-boot-starter-json-2.2.1.RELEASE.jar;E:localRepositorycomfasterxmljacksondatatypejackson-datatype-jdk82.10.0jackson-datatype-jdk8-2.10.0.jar;E:localRepositorycomfasterxmljacksondatatypejackson-datatype-jsr3102.10.0jackson-datatype-jsr310-2.10.0.jar;E:localRepositorycomfasterxmljacksonmodulejackson-module-parameter-names2.10.0jackson-module-parameter-names-2.10.0.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-reactor-netty2.2.1.RELEASEspring-boot-starter-reactor-netty-2.2.1.RELEASE.jar;E:localRepositoryioprojectreactor
    etty
    eactor-netty.9.1.RELEASE
    eactor-netty-0.9.1.RELEASE.jar;E:localRepositoryio
    etty
    etty-codec-http4.1.43.Final
    etty-codec-http-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-common4.1.43.Final
    etty-common-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-buffer4.1.43.Final
    etty-buffer-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-transport4.1.43.Final
    etty-transport-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-resolver4.1.43.Final
    etty-resolver-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec4.1.43.Final
    etty-codec-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec-http24.1.43.Final
    etty-codec-http2-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-handler4.1.43.Final
    etty-handler-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-handler-proxy4.1.43.Final
    etty-handler-proxy-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec-socks4.1.43.Final
    etty-codec-socks-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-transport-native-epoll4.1.43.Final
    etty-transport-native-epoll-4.1.43.Final-linux-x86_64.jar;E:localRepositoryio
    etty
    etty-transport-native-unix-common4.1.43.Final
    etty-transport-native-unix-common-4.1.43.Final.jar;E:localRepositoryorgglassfishjakarta.el3.0.3jakarta.el-3.0.3.jar;E:localRepositoryorgspringframeworkspring-web5.2.1.RELEASEspring-web-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-webflux5.2.1.RELEASEspring-webflux-5.2.1.RELEASE.jar;E:localRepositoryorgsynchronosscloud
    io-multipart-parser1.1.0
    io-multipart-parser-1.1.0.jar;E:localRepositoryorgsynchronosscloud
    io-stream-storage1.1.3
    io-stream-storage-1.1.3.jar;E:localRepositorycomalibabacloudspring-cloud-starter-alibaba-nacos-discovery2.2.1.RELEASEspring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;E:localRepositorycomalibaba
    acos
    acos-client1.2.1
    acos-client-1.2.1.jar;E:localRepositorycomalibaba
    acos
    acos-common1.2.1
    acos-common-1.2.1.jar;E:localRepositorycommons-iocommons-io2.2commons-io-2.2.jar;E:localRepositoryorgapachecommonscommons-lang33.9commons-lang3-3.9.jar;E:localRepositorycomalibaba
    acos
    acos-api1.2.1
    acos-api-1.2.1.jar;E:localRepositorycomalibabafastjson1.2.58fastjson-1.2.58.jar;E:localRepositorycomgoogleguavaguava29.0-jreguava-29.0-jre.jar;E:localRepositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;E:localRepositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;E:localRepositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;E:localRepositoryorgcheckerframeworkchecker-qual2.11.1checker-qual-2.11.1.jar;E:localRepositorycomgoogleerrorproneerror_prone_annotations2.3.4error_prone_annotations-2.3.4.jar;E:localRepositorycomgooglej2objcj2objc-annotations1.3j2objc-annotations-1.3.jar;E:localRepositorycommons-codeccommons-codec1.13commons-codec-1.13.jar;E:localRepositorycomfasterxmljacksoncorejackson-core2.10.0jackson-core-2.10.0.jar;E:localRepositorycomfasterxmljacksoncorejackson-databind2.10.0jackson-databind-2.10.0.jar;E:localRepositorycomfasterxmljacksoncorejackson-annotations2.10.0jackson-annotations-2.10.0.jar;E:localRepositoryioprometheussimpleclient.5.0simpleclient-0.5.0.jar;E:localRepositorycomalibabaspringspring-context-support1.0.6spring-context-support-1.0.6.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-commons2.2.5.RELEASEspring-cloud-commons-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworksecurityspring-security-crypto5.2.1.RELEASEspring-security-crypto-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-context2.2.5.RELEASEspring-cloud-context-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-netflix-ribbon2.2.5.RELEASEspring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-netflix-ribbon2.2.5.RELEASEspring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-netflix-archaius2.2.5.RELEASEspring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-netflix-archaius2.2.5.RELEASEspring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:localRepositorycom
    etflixarchaiusarchaius-core.7.6archaius-core-0.7.6.jar;E:localRepositorycommons-configurationcommons-configuration1.8commons-configuration-1.8.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon2.3.0
    ibbon-2.3.0.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-transport2.3.0
    ibbon-transport-2.3.0.jar;E:localRepositoryio
    eactivex
    xnetty-contexts.4.9
    xnetty-contexts-0.4.9.jar;E:localRepositoryio
    eactivex
    xnetty-servo.4.9
    xnetty-servo-0.4.9.jar;E:localRepositorycom
    etflixhystrixhystrix-core1.5.18hystrix-core-1.5.18.jar;E:localRepositoryorghdrhistogramHdrHistogram2.1.9HdrHistogram-2.1.9.jar;E:localRepositoryjavaxinjectjavax.inject1javax.inject-1.jar;E:localRepositoryio
    eactivex
    xnetty.4.9
    xnetty-0.4.9.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-core2.3.0
    ibbon-core-2.3.0.jar;E:localRepositorycommons-langcommons-lang2.6commons-lang-2.6.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-httpclient2.3.0
    ibbon-httpclient-2.3.0.jar;E:localRepositorycommons-collectionscommons-collections3.2.2commons-collections-3.2.2.jar;E:localRepositoryorgapachehttpcomponentshttpclient4.5.10httpclient-4.5.10.jar;E:localRepositoryorgapachehttpcomponentshttpcore4.4.12httpcore-4.4.12.jar;E:localRepositorycomsunjerseyjersey-client1.19.1jersey-client-1.19.1.jar;E:localRepositorycomsunjerseyjersey-core1.19.1jersey-core-1.19.1.jar;E:localRepositoryjavaxws
    sjsr311-api1.1.1jsr311-api-1.1.1.jar;E:localRepositorycomsunjerseycontribsjersey-apache-client41.19.1jersey-apache-client4-1.19.1.jar;E:localRepositorycom
    etflixservoservo-core.12.21servo-core-0.12.21.jar;E:localRepositorycom
    etflix
    etflix-commons
    etflix-commons-util.3.0
    etflix-commons-util-0.3.0.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-loadbalancer2.3.0
    ibbon-loadbalancer-2.3.0.jar;E:localRepositorycom
    etflix
    etflix-commons
    etflix-statistics.1.1
    etflix-statistics-0.1.1.jar;E:localRepositoryio
    eactivex
    xjava1.3.8
    xjava-1.3.8.jar;E:localRepositoryorgslf4jslf4j-api1.7.29slf4j-api-1.7.29.jar com.drawnblue.apigateway.ApiGatewayApplication
     2 
     3   .   ____          _            __ _ _
     4  /\ / ___'_ __ _ _(_)_ __  __ _    
     5 ( ( )\___ | '_ | '_| | '_ / _` |    
     6  \/  ___)| |_)| | | | | || (_| |  ) ) ) )
     7   '  |____| .__|_| |_|_| |_\__, | / / / /
     8  =========|_|==============|___/=/_/_/_/
     9  :: Spring Boot ::        (v2.2.1.RELEASE)
    10 
    11 2021-02-19 17:30:08.671  INFO 12548 --- [           main] c.d.apigateway.ApiGatewayApplication     : No active profile set, falling back to default profiles: default
    12 2021-02-19 17:30:09.072  INFO 12548 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=9acf6bc0-0b31-33ee-889b-f9ecef33c201
    13 2021-02-19 17:30:09.108  INFO 12548 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    14 2021-02-19 17:30:09.109  INFO 12548 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    15 2021-02-19 17:30:09.113  INFO 12548 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    16 2021-02-19 17:30:09.199  WARN 12548 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    17 2021-02-19 17:30:09.200  INFO 12548 --- [           main] 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.
    18 2021-02-19 17:30:09.202  WARN 12548 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    19 2021-02-19 17:30:09.202  INFO 12548 --- [           main] 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.
    20 2021-02-19 17:30:09.890  WARN 12548 --- [           main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gatewayHttpClient' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [reactor.netty.http.client.HttpClient]: Factory method 'gatewayHttpClient' threw exception; nested exception is java.lang.NoSuchMethodError: reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
    21 2021-02-19 17:30:09.907  INFO 12548 --- [           main] ConditionEvaluationReportLoggingListener : 
    22 
    23 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    24 2021-02-19 17:30:09.912 ERROR 12548 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
    25 
    26 ***************************
    27 APPLICATION FAILED TO START
    28 ***************************
    29 
    30 Description:
    31 
    32 An attempt was made to call a method that does not exist. The attempt was made from the following location:
    33 
    34     org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.gatewayHttpClient(GatewayAutoConfiguration.java:622)
    35 
    36 The following method did not exist:
    37 
    38     reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
    39 
    40 The method's class, reactor.netty.resources.ConnectionProvider, is available from the following locations:
    41 
    42     jar:file:/E:/localRepository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar!/reactor/netty/resources/ConnectionProvider.class
    43 
    44 It was loaded from the following location:
    45 
    46     file:/E:/localRepository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar
    47 
    48 
    49 Action:
    50 
    51 Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider
    52 
    53 
    54 Process finished with exit code 1
    View Code

    添加

    <dependency>
    <groupId>io.projectreactor.netty</groupId>
    <artifactId>reactor-netty</artifactId>
    <version>0.9.8.RELEASE</version>
    </dependency>
    报错如下:
     1 D:	opbandSoftjavajdk1.8injava.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=64813 -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:G:softIDEAIntelliJ IDEA 2018.2.5libidea_rt.jar=64814:G:softIDEAIntelliJ IDEA 2018.2.5in" -Dfile.encoding=UTF-8 -classpath D:	opbandSoftjavajdk1.8jrelibcharsets.jar;D:	opbandSoftjavajdk1.8jrelibdeploy.jar;D:	opbandSoftjavajdk1.8jrelibextaccess-bridge-64.jar;D:	opbandSoftjavajdk1.8jrelibextcldrdata.jar;D:	opbandSoftjavajdk1.8jrelibextdnsns.jar;D:	opbandSoftjavajdk1.8jrelibextjaccess.jar;D:	opbandSoftjavajdk1.8jrelibextjfxrt.jar;D:	opbandSoftjavajdk1.8jrelibextlocaledata.jar;D:	opbandSoftjavajdk1.8jrelibext
    ashorn.jar;D:	opbandSoftjavajdk1.8jrelibextsunec.jar;D:	opbandSoftjavajdk1.8jrelibextsunjce_provider.jar;D:	opbandSoftjavajdk1.8jrelibextsunmscapi.jar;D:	opbandSoftjavajdk1.8jrelibextsunpkcs11.jar;D:	opbandSoftjavajdk1.8jrelibextzipfs.jar;D:	opbandSoftjavajdk1.8jrelibjavaws.jar;D:	opbandSoftjavajdk1.8jrelibjce.jar;D:	opbandSoftjavajdk1.8jrelibjfr.jar;D:	opbandSoftjavajdk1.8jrelibjfxswt.jar;D:	opbandSoftjavajdk1.8jrelibjsse.jar;D:	opbandSoftjavajdk1.8jrelibmanagement-agent.jar;D:	opbandSoftjavajdk1.8jrelibplugin.jar;D:	opbandSoftjavajdk1.8jrelib
    esources.jar;D:	opbandSoftjavajdk1.8jrelib
    t.jar;E:springcloud-alibabaapi-gateway	argetclasses;E:localRepositoryorgspringframeworkootspring-boot-starter2.2.1.RELEASEspring-boot-starter-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot2.2.1.RELEASEspring-boot-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-context5.2.1.RELEASEspring-context-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-aop5.2.1.RELEASEspring-aop-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-beans5.2.1.RELEASEspring-beans-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-expression5.2.1.RELEASEspring-expression-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-autoconfigure2.2.1.RELEASEspring-boot-autoconfigure-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-logging2.2.1.RELEASEspring-boot-starter-logging-2.2.1.RELEASE.jar;E:localRepositorychqoslogbacklogback-classic1.2.3logback-classic-1.2.3.jar;E:localRepositorychqoslogbacklogback-core1.2.3logback-core-1.2.3.jar;E:localRepositoryorgapachelogginglog4jlog4j-to-slf4j2.12.1log4j-to-slf4j-2.12.1.jar;E:localRepositoryorgapachelogginglog4jlog4j-api2.12.1log4j-api-2.12.1.jar;E:localRepositoryorgslf4jjul-to-slf4j1.7.29jul-to-slf4j-1.7.29.jar;E:localRepositoryjakartaannotationjakarta.annotation-api1.3.5jakarta.annotation-api-1.3.5.jar;E:localRepositoryorgspringframeworkspring-core5.2.1.RELEASEspring-core-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-jcl5.2.1.RELEASEspring-jcl-5.2.1.RELEASE.jar;E:localRepositoryorgyamlsnakeyaml1.25snakeyaml-1.25.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-gateway2.2.5.RELEASEspring-cloud-starter-gateway-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter2.2.5.RELEASEspring-cloud-starter-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworksecurityspring-security-rsa1.0.9.RELEASEspring-security-rsa-1.0.9.RELEASE.jar;E:localRepositoryorgouncycastlecpkix-jdk15on1.64cpkix-jdk15on-1.64.jar;E:localRepositoryorgouncycastlecprov-jdk15on1.64cprov-jdk15on-1.64.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-gateway-core2.2.5.RELEASEspring-cloud-gateway-core-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-validation2.2.1.RELEASEspring-boot-starter-validation-2.2.1.RELEASE.jar;E:localRepositoryjakartavalidationjakarta.validation-api2.0.1jakarta.validation-api-2.0.1.jar;E:localRepositoryorgapache	omcatembed	omcat-embed-el9.0.27	omcat-embed-el-9.0.27.jar;E:localRepositoryorghibernatevalidatorhibernate-validator6.0.18.Finalhibernate-validator-6.0.18.Final.jar;E:localRepositoryorgjbossloggingjboss-logging3.4.1.Finaljboss-logging-3.4.1.Final.jar;E:localRepositorycomfasterxmlclassmate1.5.1classmate-1.5.1.jar;E:localRepositoryioprojectreactoraddons
    eactor-extra3.3.0.RELEASE
    eactor-extra-3.3.0.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-webflux2.2.1.RELEASEspring-boot-starter-webflux-2.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-json2.2.1.RELEASEspring-boot-starter-json-2.2.1.RELEASE.jar;E:localRepositorycomfasterxmljacksondatatypejackson-datatype-jdk82.10.0jackson-datatype-jdk8-2.10.0.jar;E:localRepositorycomfasterxmljacksondatatypejackson-datatype-jsr3102.10.0jackson-datatype-jsr310-2.10.0.jar;E:localRepositorycomfasterxmljacksonmodulejackson-module-parameter-names2.10.0jackson-module-parameter-names-2.10.0.jar;E:localRepositoryorgspringframeworkootspring-boot-starter-reactor-netty2.2.1.RELEASEspring-boot-starter-reactor-netty-2.2.1.RELEASE.jar;E:localRepositoryorgglassfishjakarta.el3.0.3jakarta.el-3.0.3.jar;E:localRepositoryorgspringframeworkspring-web5.2.1.RELEASEspring-web-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkspring-webflux5.2.1.RELEASEspring-webflux-5.2.1.RELEASE.jar;E:localRepositoryorgsynchronosscloud
    io-multipart-parser1.1.0
    io-multipart-parser-1.1.0.jar;E:localRepositoryorgsynchronosscloud
    io-stream-storage1.1.3
    io-stream-storage-1.1.3.jar;E:localRepositoryioprojectreactor
    etty
    eactor-netty.9.8.RELEASE
    eactor-netty-0.9.8.RELEASE.jar;E:localRepositoryio
    etty
    etty-codec-http4.1.43.Final
    etty-codec-http-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-common4.1.43.Final
    etty-common-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-buffer4.1.43.Final
    etty-buffer-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-transport4.1.43.Final
    etty-transport-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-resolver4.1.43.Final
    etty-resolver-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec4.1.43.Final
    etty-codec-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec-http24.1.43.Final
    etty-codec-http2-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-handler4.1.43.Final
    etty-handler-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-handler-proxy4.1.43.Final
    etty-handler-proxy-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-codec-socks4.1.43.Final
    etty-codec-socks-4.1.43.Final.jar;E:localRepositoryio
    etty
    etty-transport-native-epoll4.1.43.Final
    etty-transport-native-epoll-4.1.43.Final-linux-x86_64.jar;E:localRepositoryio
    etty
    etty-transport-native-unix-common4.1.43.Final
    etty-transport-native-unix-common-4.1.43.Final.jar;E:localRepositoryioprojectreactor
    eactor-core3.3.0.RELEASE
    eactor-core-3.3.0.RELEASE.jar;E:localRepositoryorg
    eactivestreams
    eactive-streams1.0.3
    eactive-streams-1.0.3.jar;E:localRepositorycomalibabacloudspring-cloud-starter-alibaba-nacos-discovery2.2.1.RELEASEspring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;E:localRepositorycomalibaba
    acos
    acos-client1.2.1
    acos-client-1.2.1.jar;E:localRepositorycomalibaba
    acos
    acos-common1.2.1
    acos-common-1.2.1.jar;E:localRepositorycommons-iocommons-io2.2commons-io-2.2.jar;E:localRepositoryorgapachecommonscommons-lang33.9commons-lang3-3.9.jar;E:localRepositorycomalibaba
    acos
    acos-api1.2.1
    acos-api-1.2.1.jar;E:localRepositorycomalibabafastjson1.2.58fastjson-1.2.58.jar;E:localRepositorycomgoogleguavaguava29.0-jreguava-29.0-jre.jar;E:localRepositorycomgoogleguavafailureaccess1.0.1failureaccess-1.0.1.jar;E:localRepositorycomgoogleguavalistenablefuture9999.0-empty-to-avoid-conflict-with-guavalistenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;E:localRepositorycomgooglecodefindbugsjsr3053.0.2jsr305-3.0.2.jar;E:localRepositoryorgcheckerframeworkchecker-qual2.11.1checker-qual-2.11.1.jar;E:localRepositorycomgoogleerrorproneerror_prone_annotations2.3.4error_prone_annotations-2.3.4.jar;E:localRepositorycomgooglej2objcj2objc-annotations1.3j2objc-annotations-1.3.jar;E:localRepositorycommons-codeccommons-codec1.13commons-codec-1.13.jar;E:localRepositorycomfasterxmljacksoncorejackson-core2.10.0jackson-core-2.10.0.jar;E:localRepositorycomfasterxmljacksoncorejackson-databind2.10.0jackson-databind-2.10.0.jar;E:localRepositorycomfasterxmljacksoncorejackson-annotations2.10.0jackson-annotations-2.10.0.jar;E:localRepositoryioprometheussimpleclient.5.0simpleclient-0.5.0.jar;E:localRepositorycomalibabaspringspring-context-support1.0.6spring-context-support-1.0.6.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-commons2.2.5.RELEASEspring-cloud-commons-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworksecurityspring-security-crypto5.2.1.RELEASEspring-security-crypto-5.2.1.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-context2.2.5.RELEASEspring-cloud-context-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-netflix-ribbon2.2.5.RELEASEspring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-netflix-ribbon2.2.5.RELEASEspring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-netflix-archaius2.2.5.RELEASEspring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:localRepositoryorgspringframeworkcloudspring-cloud-starter-netflix-archaius2.2.5.RELEASEspring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:localRepositorycom
    etflixarchaiusarchaius-core.7.6archaius-core-0.7.6.jar;E:localRepositorycommons-configurationcommons-configuration1.8commons-configuration-1.8.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon2.3.0
    ibbon-2.3.0.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-transport2.3.0
    ibbon-transport-2.3.0.jar;E:localRepositoryio
    eactivex
    xnetty-contexts.4.9
    xnetty-contexts-0.4.9.jar;E:localRepositoryio
    eactivex
    xnetty-servo.4.9
    xnetty-servo-0.4.9.jar;E:localRepositorycom
    etflixhystrixhystrix-core1.5.18hystrix-core-1.5.18.jar;E:localRepositoryorghdrhistogramHdrHistogram2.1.9HdrHistogram-2.1.9.jar;E:localRepositoryjavaxinjectjavax.inject1javax.inject-1.jar;E:localRepositoryio
    eactivex
    xnetty.4.9
    xnetty-0.4.9.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-core2.3.0
    ibbon-core-2.3.0.jar;E:localRepositorycommons-langcommons-lang2.6commons-lang-2.6.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-httpclient2.3.0
    ibbon-httpclient-2.3.0.jar;E:localRepositorycommons-collectionscommons-collections3.2.2commons-collections-3.2.2.jar;E:localRepositoryorgapachehttpcomponentshttpclient4.5.10httpclient-4.5.10.jar;E:localRepositoryorgapachehttpcomponentshttpcore4.4.12httpcore-4.4.12.jar;E:localRepositorycomsunjerseyjersey-client1.19.1jersey-client-1.19.1.jar;E:localRepositorycomsunjerseyjersey-core1.19.1jersey-core-1.19.1.jar;E:localRepositoryjavaxws
    sjsr311-api1.1.1jsr311-api-1.1.1.jar;E:localRepositorycomsunjerseycontribsjersey-apache-client41.19.1jersey-apache-client4-1.19.1.jar;E:localRepositorycom
    etflixservoservo-core.12.21servo-core-0.12.21.jar;E:localRepositorycom
    etflix
    etflix-commons
    etflix-commons-util.3.0
    etflix-commons-util-0.3.0.jar;E:localRepositorycom
    etflix
    ibbon
    ibbon-loadbalancer2.3.0
    ibbon-loadbalancer-2.3.0.jar;E:localRepositorycom
    etflix
    etflix-commons
    etflix-statistics.1.1
    etflix-statistics-0.1.1.jar;E:localRepositoryio
    eactivex
    xjava1.3.8
    xjava-1.3.8.jar;E:localRepositoryorgslf4jslf4j-api1.7.29slf4j-api-1.7.29.jar com.drawnblue.apigateway.ApiGatewayApplication
     2 
     3   .   ____          _            __ _ _
     4  /\ / ___'_ __ _ _(_)_ __  __ _    
     5 ( ( )\___ | '_ | '_| | '_ / _` |    
     6  \/  ___)| |_)| | | | | || (_| |  ) ) ) )
     7   '  |____| .__|_| |_|_| |_\__, | / / / /
     8  =========|_|==============|___/=/_/_/_/
     9  :: Spring Boot ::        (v2.2.1.RELEASE)
    10 
    11 2021-02-19 17:32:11.328  INFO 9048 --- [           main] c.d.apigateway.ApiGatewayApplication     : No active profile set, falling back to default profiles: default
    12 2021-02-19 17:32:11.699  INFO 9048 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=9acf6bc0-0b31-33ee-889b-f9ecef33c201
    13 2021-02-19 17:32:11.733  INFO 9048 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    14 2021-02-19 17:32:11.734  INFO 9048 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    15 2021-02-19 17:32:11.737  INFO 9048 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    16 2021-02-19 17:32:11.816  WARN 9048 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    17 2021-02-19 17:32:11.816  INFO 9048 --- [           main] 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.
    18 2021-02-19 17:32:11.819  WARN 9048 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
    19 2021-02-19 17:32:11.819  INFO 9048 --- [           main] 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.
    20 2021-02-19 17:32:12.696  WARN 9048 --- [           main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reactorNettyWebSocketClient' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient]: Factory method 'reactorNettyWebSocketClient' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
    21 2021-02-19 17:32:12.711  INFO 9048 --- [           main] ConditionEvaluationReportLoggingListener : 
    22 
    23 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    24 2021-02-19 17:32:12.716 ERROR 9048 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 
    25 
    26 ***************************
    27 APPLICATION FAILED TO START
    28 ***************************
    29 
    30 Description:
    31 
    32 An attempt was made to call a method that does not exist. The attempt was made from the following location:
    33 
    34     org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.reactorNettyWebSocketClient(GatewayAutoConfiguration.java:748)
    35 
    36 The following method did not exist:
    37 
    38     org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
    39 
    40 The method's class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient, is available from the following locations:
    41 
    42     jar:file:/E:/localRepository/org/springframework/spring-webflux/5.2.1.RELEASE/spring-webflux-5.2.1.RELEASE.jar!/org/springframework/web/reactive/socket/client/ReactorNettyWebSocketClient.class
    43 
    44 It was loaded from the following location:
    45 
    46     file:/E:/localRepository/org/springframework/spring-webflux/5.2.1.RELEASE/spring-webflux-5.2.1.RELEASE.jar
    47 
    48 
    49 Action:
    50 
    51 Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient
    52 
    53 
    54 Process finished with exit code 1
    View Code

    添加如下依赖:

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webflux</artifactId>
    <version>5.2.7.RELEASE</version>
    </dependency>

    ok
    本博主支持并坚持原创,本博客文章将以原创为主。
  • 相关阅读:
    对于匿名对象,内部类这块的理解
    final等关键字和代码块
    构造方法
    接口与多态的总结
    关于折半法查找的一些总结以及ArrayList类的总结
    关于冒泡法的总结(主要是格式问题了)
    java读取properties文件的几种方式(转载)
    JAVA导出EXCEL表格(转载)
    map遍历的四种方法
    Java集合源码分析(四)HashMap
  • 原文地址:https://www.cnblogs.com/xiaoyao-001/p/14417241.html
Copyright © 2011-2022 走看看