You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/02/24 10:33:50 UTC

[GitHub] [servicecomb-java-chassis] xiali-cbc opened a new issue #2250: 服务内部通过cse调用接口报空指针

xiali-cbc opened a new issue #2250:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2250


   通过cse调用接口报空指针异常  原因是这边启动的时候 没有加载到 TraceIdGenerator这个类 ,导致初始化调用链的时候报错
   
   
   
   


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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2250: 服务内部通过cse调用接口报空指针

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2250:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2250#issuecomment-844642034


   记得以前碰到这个问题是因为有业务在servicecomb没初始化完成之前,就调用接口去访问其他服务。 可以按照这个思路排查下。 注意,第一次发起对其他服务的调用,需要在Invocatioin上下文里面(比如从REST接口进来的请求,这个请求的执行逻辑需要访问其他接口)。 或者在 [AFTER_REGISTRY](http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/build-provider/event-listener/) 以后发起调用


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