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

BaiduRpcProtocol第102行,会产生ClassCastException #325

Open
imqing opened this issue Mar 10, 2023 · 2 comments
Open

BaiduRpcProtocol第102行,会产生ClassCastException #325

imqing opened this issue Mar 10, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@imqing
Copy link

imqing commented Mar 10, 2023

具体代码如下,其中的强转String会产生该问题:
requestMeta.addExtFieldsBuilder().setKey(kv.getKey()).setValue((String) kv.getValue());

@Reason94
Copy link
Collaborator

目前brpc协议的extField默认只支持String类型,请问你是使用了别的类型吗?
或者能提供个复现的代码吗?

@Reason94 Reason94 self-assigned this Sep 28, 2023
@Reason94 Reason94 added the question Further information is requested label Sep 28, 2023
@imqing
Copy link
Author

imqing commented Feb 22, 2024

目前brpc协议的extField默认只支持String类型,请问你是使用了别的类型吗? 或者能提供个复现的代码吗?

是的,我当时用了非string 类型

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

No branches or pull requests

2 participants