apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.48k stars 26.43k forks source link

[level low] dubbo protocol serialization hessian2 throw TimeoutException, without implements java.io.Serializable #3068

Closed gMan1990 closed 5 years ago

gMan1990 commented 5 years ago

我记得以前会提示(网上找的):

cause: java.lang.RuntimeException: Serialized class xxx must implement java.io.Serializable

现在没有了,v2.6.3~。

hadyang commented 5 years ago

@zonghaishang

这个问题我也遇到了,在 NettyChannel 的发送逻辑里发现如下代码:

...
            ChannelFuture future = channel.writeAndFlush(message);
            if (sent) {
                timeout = getUrl().getPositiveParameter(TIMEOUT_KEY, DEFAULT_TIMEOUT);
                success = future.await(timeout);
            }
            Throwable cause = future.cause();
            if (cause != null) {
                throw cause;
            }
...

是不是这里导致序列化异常被吞掉?