New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consumer 抛出Dubbo client can not supported string message原因分析 #2006
Comments
@beiwei30 hi,能帮忙看看吗 |
Can you please give a full stack trace. |
@fingthinking this error log comes from https://github.com/apache/incubator-dubbo/blob/master/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/exchange/support/header/HeaderExchangeHandler.java#L204. Would you mind to attach the relevant info from your dubbo log so that we can analyze further based on that? |
线上碰到一样的错误: 消费端错误返回如上:
.... |
@chickenlj @beiwei30 今天又遇到同样的问题了,我怎么也无法分析出来原因,哎~同楼上代码类似,麻烦两位帮忙分析一下。 |
@renlei413326889 问下你用的啥序列化协议呢,换个协议还报错吗 |
@lllichen 默认的dubbo协议 <dubbo:protocol name="dubbo" dubbox最新分支 |
@renlei413326889 看看是不是因为这个原因,我在我们公司这么修复的,没毛病。 |
Are you using telnet in consumer side ? |
Have you tried using dubbo (not dubbox) to reproduce it? |
是的,使用的 dubbox |
@fingthinking 我按照你的这样处理了,没毛病!现在没有这种乱码问题,最新的dubbo的代码也有处理这种异常情况! |
@renlei413326889 @fingthinking, dubbo 现在代码里的: } catch (Throwable t) {
// clear buffer
buffer.writerIndex(savedWriteIndex);
// send error message to Consumer, otherwise, Consumer will wait till timeout.
if (!res.isEvent() && res.getStatus() != Response.BAD_RESPONSE) {
|
看回复已经解决了,我check了代码 |
Environment
Step to reproduce this issue
consumer 在某些情况下会抛出
Dubbo client can not supported string message
异常,并且 message 显示为乱码信息,经查找资料是说消息体 >8M 导致;我本地测试的时候,均无法复现对应的异常信息,>8M 的表现为 consumer 等待超时,且 provider 抛出
Data length too large:
异常。求大神们帮忙分析一下,在什么情况下会出现标题中的那种异常?
The text was updated successfully, but these errors were encountered: