Skip to content
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

EnableZigZap注解在特定情况下引起decode异常:InvalidProtocolBufferException #186

Open
ChianghoGoNow opened this issue Sep 5, 2022 · 2 comments
Assignees
Labels

Comments

@ChianghoGoNow
Copy link

异常说明:While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length!!!

bean结构:
@ProtobufClass
structA{
Map<int,structB> maps;
}

@EnableZigZap
@ProtobufClass
structB{
List lst={0,100,2,100,3,100,4,100,100,100,9999,100};
}

测试环境:(JDK1.8-271)jProtobuf(2.4.8/2.4.15)

测试结果1:以上结构不变,数据不变,decode出现异常。
测试结果2:以上结构不变,structB数据:{0,100,2,100,3,100,4,100,5,100,6,100}; decode正常;其他随便输入了几个数字也正常
测试结果3:structA的结构改成
structA{
Set maps;
}
decode正常
测试结果4:结构/数据都不变,取消structB的EnableZigZap注解,decode正常

@jhunters
Copy link
Owner

收到,感谢反馈,我们跟进一下

@jhunters jhunters self-assigned this Oct 11, 2022
@jhunters jhunters added the bug label Oct 11, 2022
@jhunters
Copy link
Owner

已发布 2.4.17-SNAPSHOT, 修正了该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants