You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/12/23 13:04:22 UTC

[GitHub] [skywalking] Owenxh opened a new issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error

Owenxh opened a new issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error
URL: https://github.com/apache/skywalking/issues/4110
 
 
   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ √] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   Skywalking 6.5 
   - Which company or project?
   Spring Cloud Gateway 2.1.10.RELEASE
   - What happen?
   When I use apm-spring-cloud-gateway-2.x-plugin cause an error:
   org.apache.skywalking.apm.plugin.spring.cloud.gateway.v21x.context.SWTransmitter cannot be cast to org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan
   
    Here is the part of the log:
   
   ERROR 2019-12-23 20:57:29:967 reactor-http-nio-3 InstMethodsInter : class[class org.springframework.web.reactive.function.server.DefaultServerResponseBuilder$BodyInserterResponse] before method[writeToInternal] intercept failure
   java.lang.ClassCastException: org.apache.skywalking.apm.plugin.spring.cloud.gateway.v21x.context.SWTransmitter cannot be cast to org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan
   	at org.apache.skywalking.apm.plugin.spring.webflux.v5.AbstractServerResponseMethodInterceptor.beforeMethod(AbstractServerResponseMethodInterceptor.java:48)
   	at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:82)
   	at org.springframework.web.reactive.function.server.DefaultServerResponseBuilder$BodyInserterResponse.writeToInternal(DefaultServerResponseBuilder.java)
   	at org.springframework.web.reactive.function.server.DefaultServerResponseBuilder$AbstractServerResponse.writeTo(DefaultServerResponseBuilder.java:351)
   	at org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler.write(AbstractErrorWebExceptionHandler.java:298)
   	at org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler.lambda$handle$2(AbstractErrorWebExceptionHandler.java:261)
   	at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:118)
   	at reactor.core.publisher.FluxPeekFuseable$PeekFuseableSubscriber.onNext(FluxPeekFuseable.java:204)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng commented on issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error
URL: https://github.com/apache/skywalking/issues/4110#issuecomment-568473160
 
 
   Please try the master branch or use next 6.6.0 release(will be soon). There are several fixes happened there.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [skywalking] wu-sheng closed issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4110: Skywalking 6.5 version apm-spring-cloud-gateway-2.x-plugin cause error
URL: https://github.com/apache/skywalking/issues/4110
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services