You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "ZangjunS (via GitHub)" <gi...@apache.org> on 2023/04/21 03:50:05 UTC

[GitHub] [servicecomb-java-chassis] ZangjunS opened a new issue, #3752: 某个服务无法调用其他服务

ZangjunS opened a new issue, #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752

   使用  cse-solution-service-engine  2.3.63 的版本
   某个服务调用其他服务时会出现这样的报错,但是其他服务正常调用时都不会走到这个断点里面
   
   [E]-[]-[Service Center Task [java.util.concurrent.ThreadPoolExecutor$Worker@5280cc80[State = -1, empty queue][283]]][org.apache.servicecomb.core.definition.SchemaMeta]Unhandled exception to service agency-web schema ces  
   [E]-[]-[Service Center Task [java.util.concurrent.ThreadPoolExecutor$Worker@5280cc80[State = -1, empty queue][283]]][org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions]Failed to setInstances, appId=nontax, microserviceName=agency-web. java.lang.NullPointerException
   	at org.apache.servicecomb.common.javassist.CtType.<init>(CtType.java:52)
   	at org.apache.servicecomb.common.javassist.MethodConfig.setResult(MethodConfig.java:64)
   	at org.apache.servicecomb.swagger.converter.SwaggerToClassGenerator.convertToInterface(SwaggerToClassGenerator.java:222)
   	at org.apache.servicecomb.swagger.converter.SwaggerToClassGenerator.convert(SwaggerToClassGenerator.java:144)
   	at org.apache.servicecomb.core.definition.SchemaMeta.<init>(SchemaMeta.java:70)
   	at org.apache.servicecomb.core.definition.loader.SchemaLoader.registerSchema(SchemaLoader.java:85)
   	at org.apache.servicecomb.core.definition.schema.ConsumerSchemaFactory.createSchema(ConsumerSchemaFactory.java:61)
   	at org.apache.servicecomb.core.definition.schema.ConsumerSchemaFactory.createSchema(ConsumerSchemaFactory.java:33)
   	at org.apache.servicecomb.core.definition.schema.AbstractSchemaFactory.getOrCreateSchema(AbstractSchemaFactory.java:58)
   	at org.apache.servicecomb.core.definition.schema.ConsumerSchemaFactory.createConsumerSchema(ConsumerSchemaFactory.java:48)
   	at org.apache.servicecomb.core.definition.MicroserviceVersionMeta.<init>(MicroserviceVersionMeta.java:45)
   	at org.apache.servicecomb.core.definition.MicroserviceVersionMetaFactory.create(MicroserviceVersionMetaFactory.java:38)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.lambda$setInstances$0(MicroserviceVersions.java:184)
   	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
   	at org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx.computeIfAbsent(ConcurrentHashMapEx.java:56)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.setInstances(MicroserviceVersions.java:183)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.safeSetInstances(MicroserviceVersions.java:163)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.pullInstances(MicroserviceVersions.java:158)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersions.submitPull(MicroserviceVersions.java:130)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.refreshInstances(MicroserviceManager.java:96)
   	at org.apache.servicecomb.serviceregistry.consumer.MicroserviceManager.periodicPull(MicroserviceManager.java:86)
   	at org.apache.servicecomb.foundation.common.event.SimpleSubscriber.syncDispatch(SimpleSubscriber.java:85)
   	at org.apache.servicecomb.foundation.common.event.SimpleSubscriber.dispatchEvent(SimpleSubscriber.java:77)
   	at org.apache.servicecomb.foundation.common.event.SimpleEventBus.post(SimpleEventBus.java:72)
   	at org.apache.servicecomb.serviceregistry.registry.RemoteServiceRegistry.lambda$run$2(RemoteServiceRegistry.java:94)
   	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   	at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308)
   	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
   	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:750)
   	at org.apache.servicecomb.serviceregistry.registry.RemoteServiceRegistry$1.run(RemoteServiceRegistry.java:62)


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] lbc97 commented on issue #3752: 某个服务无法调用其他服务

Posted by "lbc97 (via GitHub)" <gi...@apache.org>.
lbc97 commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1517518883

   框架版本和调用场景的实例代码能给一下吗


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] lbc97 commented on issue #3752: 某个服务无法调用其他服务

Posted by "lbc97 (via GitHub)" <gi...@apache.org>.
lbc97 commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1517520675

   另外一个我们好像没有2.3.63这个版本啊


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] ZangjunS commented on issue #3752: 某个服务无法调用其他服务

Posted by "ZangjunS (via GitHub)" <gi...@apache.org>.
ZangjunS commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1518926579

   > cse-solution-service-engine
   
   CSE SDK是华为交付的商业SDK,核心组件全部来源于ServiceComb。和ServiceComb没啥太大区别


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] chengyouling commented on issue #3752: 某个服务无法调用其他服务

Posted by "chengyouling (via GitHub)" <gi...@apache.org>.
chengyouling commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1522661417

   可以跟下SwaggerToClassGenerator.convertResponses方法,看看是不是有新增的接口没有注册契约


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] ZangjunS commented on issue #3752: 某个服务无法调用其他服务

Posted by "ZangjunS (via GitHub)" <gi...@apache.org>.
ZangjunS commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1518920328

   > 另外一个我们好像没有2.3.63这个版本啊
   
   2.3.63是 cse-solution-service-engine的版本
   
   调用方式就是很简单的
   RestTemplate restTemplate = RestTemplateBuilder.create();
   restTemplate.getForObject(url, String.class);
   其他服务都能正常访问其他服务,但是有一个服务就会出现上述报错,他确实是报了个空指针
   代码如下:
   Response result = (Response)operation.getResponses().get(SwaggerConst.SUCCESS_KEY);
   JavaType resultJavaType = (JavaType)this.swaggerObjectMap.get(result.getSchema());
   
   resultJavaType 确实是null,但是swaggerObjectMap里为什么没有的呢,而且别的程序都不会进入这个断点,是哪里出问题了吗


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] lbc97 commented on issue #3752: 某个服务无法调用其他服务

Posted by "lbc97 (via GitHub)" <gi...@apache.org>.
lbc97 commented on issue #3752:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3752#issuecomment-1518924833

   cse-solution-service-engine 这个模块是从哪儿来的 我们框架我没找到这个模块 能发个github源码链接吗


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

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org