You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "penghcn (GitHub)" <gi...@apache.org> on 2019/04/01 07:48:32 UTC

[GitHub] [incubator-dubbo] penghcn opened issue #3784: 服务端从2.5.8升级到2.7.1后,Version.getIntVersion报错,响应失败

Fail to encode response: Response [id=399, version=client, status=20, event=false, error=null, result=RpcResult [result=cn.pengh.core.rpc.DubboResponse@4c2638bf, exception=null]], send bad_response info instead, cause: For input string: "", dubbo version: 2.7.1, current host: 192.168.8.29
java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_101]
	at java.lang.Integer.parseInt(Integer.java:592) ~[?:1.8.0_101]
	at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_101]
	at org.apache.dubbo.common.Version.parseInt(Version.java:128) ~[dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.common.Version.getIntVersion(Version.java:113) ~[dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.common.Version.isSupportResponseAttachment(Version.java:102) ~[dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.rpc.protocol.dubbo.DubboCodec.encodeResponseData(DubboCodec.java:194) ~[dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encodeResponse(ExchangeCodec.java:283) [dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.remoting.exchange.codec.ExchangeCodec.encode(ExchangeCodec.java:71) [dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.rpc.protocol.dubbo.DubboCountCodec.encode(DubboCountCodec.java:38) [dubbo-2.7.1.jar:2.7.1]
	at org.apache.dubbo.remoting.transport.netty4.NettyCodecAdapter$InternalEncoder.encode(NettyCodecAdapter.java:70) [dubbo-2.7.1.jar:2.7.1]
	at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:107) [netty-all-4.1.32.Final.jar:4.1.32.Final]

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3784 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] lexburner commented on issue #3784: 服务端从2.5.8升级到2.7.1后,Version.getIntVersion报错,响应失败

Posted by "lexburner (GitHub)" <gi...@apache.org>.
Maybe the value of `version` is null caused this parse exception, can you reproduce the exception? It is better to provide your test GitHub repository.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3784 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org