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/07/22 08:45:50 UTC

[GitHub] [skywalking] aiyanbo opened a new issue #3142: Agent cannot trace gRPC stream service

aiyanbo opened a new issue #3142: Agent cannot trace gRPC stream service
URL: https://github.com/apache/skywalking/issues/3142
 
 
   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?
   SkyWaling: 6.2.0
   OS: Mac OS X 10.14.4
   JRE: 1.8.0_181
   gRPC: 1.22.1
   
   - What happen?
   When application invoke gRPC stream service failed, trace cannot work and log will output this:
   
   - beforeMethod
   ```
   java.lang.ClassCastException: org.apache.skywalking.apm.plugin.grpc.v1.StreamCallClientInterceptor cannot be cast to org.apache.skywalking.apm.plugin.grpc.v1.BlockingCallClientInterceptor
   	at org.apache.skywalking.apm.plugin.grpc.v1.AsyncUnaryRequestCallCallInterceptor.beforeMethod(AsyncUnaryRequestCallCallInterceptor.java:39)
   	at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.StaticMethodsInterWithOverrideArgs.intercept(StaticMethodsInterWithOverrideArgs.java:75)
   	at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java)
   	at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:267)
   	at io.grpc.stub.ClientCalls.asyncServerStreamingCall(ClientCalls.java:75)
   ``` 
   
   - afterMethod
   
   ```
   java.lang.NullPointerException
   	at org.apache.skywalking.apm.agent.core.context.ContextManager.activeSpan(ContextManager.java:161)
   	at org.apache.skywalking.apm.agent.core.context.ContextManager.stopSpan(ContextManager.java:165)
   	at org.apache.skywalking.apm.plugin.grpc.v1.AsyncUnaryRequestCallCallInterceptor.afterMethod(AsyncUnaryRequestCallCallInterceptor.java:50)
   	at org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.StaticMethodsInterWithOverrideArgs.intercept(StaticMethodsInterWithOverrideArgs.java:96)
   	at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java)
   	at io.grpc.stub.ClientCalls.asyncUnaryRequestCall(ClientCalls.java:267)
   	at io.grpc.stub.ClientCalls.asyncServerStreamingCall(ClientCalls.java:75)
   ```

----------------------------------------------------------------
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