Moca-git commented on issue #2187: URL: https://github.com/apache/servicecomb-java-chassis/issues/2187#issuecomment-757663286
> > > 这个异常结合代码不应该抛出,你可以看下 ResponseMapperFactorys 代码: > > ``` > public MAPPER createResponseMapper(Type providerType) { > for (ResponseMapperFactory<MAPPER> factory : factorys) { > if (!factory.isMatch(providerType)) { > continue; > } > > return factory.createResponseMapper(this, providerType); > } > > throw new IllegalStateException( > String.format("can not find response mapper for %s, this should never happened.", > providerType.getTypeName())); > } > ``` > > `DefaultProducerResponseMapperFactory` 可以保证永远不会走到异常分支。 你可以调试下代码,看看实际情况。 现在抛出这个异常是不是说明provider没有提供服务啊? ---------------------------------------------------------------- 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: us...@infra.apache.org