spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

SpringCloud Gateway 2.0.4.RELEASE CglibAopProxy Error #1999

Closed HeXsheng closed 4 years ago

HeXsheng commented 4 years ago

Question

I found an error using Springcloud gateway: o.s.aop.framework.CglibAopProxy: Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient

Bug report

2020-10-26 11:52:28.734 INFO [-,,,] 8675 --- [ 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. 2020-10-26 11:52:29.103 INFO [-,,,] 8675 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler] 2020-10-26 11:52:29.103 INFO [-,,,] 8675 --- [ main] o.s.w.r.handler.SimpleUrlHandlerMapping : Mapped URL path [/] onto handler of type [class org.springframework.web.reactive.resource.ResourceWebHandler] 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.post(java.lang.String,java.util.function.Function)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.patch(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.patch(java.lang.String,java.util.function.Function)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.get(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.get(java.lang.String,java.util.function.Function)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.put(java.lang.String,java.util.function.Function)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.delete(java.lang.String,java.util.function.Function)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.delete(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.ws(java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.ws(java.lang.String,java.util.function.Consumer)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.257 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.ws(java.lang.String,java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.258 INFO [-,,,] 8675 --- [ main] o.s.aop.framework.CglibAopProxy : Final method [public final reactor.core.publisher.Mono reactor.ipc.netty.http.client.HttpClient.ws(java.lang.String,java.util.function.Consumer,java.lang.String)] cannot get proxied via CGLIB: Calls to this method will NOT be routed to the target instance and might lead to NPEs against uninitialized fields in the proxy instance. 2020-10-26 11:52:29.500 INFO [-,,,] 8675 --- [ main] c.a.c.s.g.s.SentinelSCGAutoConfiguration : [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648

spencergibb commented 4 years ago

Version 2.0.x is no longer supported. Please upgrade to Hoxton.SR9 and boot 2.3.x or 2.2.x and try again

HeXsheng commented 4 years ago

Thank you, can I use 2.1.x?