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/06/09 04:19:31 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1291: 那位大佬赶紧给看看啊,在线等,挺急的!!!

liubao68 edited a comment on issue #1291:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1291#issuecomment-671898086


   ```
   java.lang.Error: no schema defined for xxx.xxx
   	at org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.createRequestMeta(CseClientHttpRequest.java:164) ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
   	at org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.execute(CseClientHttpRequest.java:144) ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
   	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:735) ~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
   	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:710) ~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
   	at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:598) ~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
   	at org.apache.servicecomb.provider.springmvc.reference.RestTemplateWrapper.exchange(RestTemplateWrapper.java:214) ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
   ```
   
   如果发生这个错误, 很有可能是在 java-chassis 启动没有就绪的情况下,调用远程接口。 比如在 bean 的初始化过程中调用其他远程接口。 
   
   发起对远程接口的调用, 需要在java-chassis启动就绪, 即 AFTER_REGISTRY 事件之后。 参考[服务启动事件](http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/build-provider/event-listener.html)


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