-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
dubbo GenericInvoke throws exception local class incompatible #4675
Comments
Why java ? ? ? |
We should know this make java serialization incompatible
|
So we must make the old GenericException back…… |
would you mind to provide a pull request for this issue? @qixiaobo |
We need this fixed, it effects our generic invoke while throwing exception |
For me, I think RpcException also has this problem. |
throw new RpcException(
new StringBuilder(32).append("Generic serialization [")
.append(Constants.GENERIC_SERIALIZATION_NATIVE_JAVA)
.append("] only support message type ")
.append(byte[].class)
.append(" and your message type is ")
.append(args[i].getClass()).toString());
} |
@chickenlj 你好, #5800 GenericFilter为了兼容2.6.x及以下版本,GenericException换成了alibaba包的类,但这样2.7.x以上的版本处理GenericFilter的GenericException,都要更换为alibaba包的类吗,而这个类是@deprecated |
Environment
java serialization
Steps to reproduce this issue
Too simple , we can make any exception
In this code
We wrap all exceptions to GenericException.
But dubbo 2.7.x rename package to apache, so to make a new class like
No serialVersionUID is provided!
Pls. provide [GitHub address] to reproduce this issue.
Expected Result
GenericException can be handled by consumer!
Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
The text was updated successfully, but these errors were encountered: