You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/08/15 11:27:50 UTC

[GitHub] [dubbo] ximingren opened a new issue #8507: Dubbo2.6.10在对Java原生类型用kryo序列化时报错

ximingren opened a new issue #8507:
URL: https://github.com/apache/dubbo/issues/8507


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.6.10
   * Operating System version: windows 10
   * Java version: 1.6
   * kryo-shaded version:4.0.0
   * kryo-serializers version:0.45
   
   ### Steps to reproduce this issue
   
   1. provider端使用kryo序列化,provider端返回Exception对象,且该对象调用了getStackTrace方法,使得Exception的stackTrace变量值不为空
   2. consumer消费,在进行序列化Exception对象时报错,报错信息:java.io.IOException: com.esotericsoftware.kryo.KryoException: Class cannot be created missing no-arg constructor): java.lang.StackTraceElement  Serialization trace:stackTrace 
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   consumer能正常接收到返回结果
   ### Actual Result
   
   What actually happens?
   在consumer端发生序列化报错
   If there is an exception, please attach the exception trace:
   java.io.IOException: com.esotericsoftware.kryo.KryoException: Class cannot be created missing no-arg constructor): java.lang.StackTraceElement  Serialization trace:stackTrace 
   ```
   Just put your stack trace here!
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ximingren removed a comment on issue #8507: Dubbo2.6.10在对Java原生类型用kryo序列化时报错

Posted by GitBox <gi...@apache.org>.
ximingren removed a comment on issue #8507:
URL: https://github.com/apache/dubbo/issues/8507#issuecomment-899036488


   补充说明:
   #2220的改动是导致本issue出现的原因。改动点在CompatibleKryo 类,去掉了以下功能:当为java基础类且有无参构造函数时,使用JavaSerializer进行序列化。改动之后直接使用调用getDefaultSerializer获取默认的serializer进行序列化。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #8507: Dubbo2.6.10在对无参构造函数的Java基础类进行kryo序列化时报错

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #8507:
URL: https://github.com/apache/dubbo/issues/8507


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ximingren commented on issue #8507: Dubbo2.6.10在对Java原生类型用kryo序列化时报错

Posted by GitBox <gi...@apache.org>.
ximingren commented on issue #8507:
URL: https://github.com/apache/dubbo/issues/8507#issuecomment-899036859


   补充说明:
   #2220的改动是导致本issue出现的原因。改动点在CompatibleKryo 类,
   
   此改动导致Java基础类中带有无参构造函数的类在序列化时使用默认serializer进行,而不是使用JavaSerializer进行。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] ximingren commented on issue #8507: Dubbo2.6.10在对Java原生类型用kryo序列化时报错

Posted by GitBox <gi...@apache.org>.
ximingren commented on issue #8507:
URL: https://github.com/apache/dubbo/issues/8507#issuecomment-899036488


   补充说明:
   #2220的改动是导致本issue出现的原因。改动点在CompatibleKryo 类,去掉了以下功能:当为java基础类且有无参构造函数时,使用JavaSerializer进行序列化。改动之后直接使用调用getDefaultSerializer获取默认的serializer进行序列化。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #8507: Dubbo2.6.10在对无参构造函数的Java基础类进行kryo序列化时报错

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #8507:
URL: https://github.com/apache/dubbo/issues/8507#issuecomment-1000660706


   2.6.x is no longer maintained, it is recommended to upgrade to the latest version.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org