开发者

How to determine which class causes the "java.io.InvalidClassException" - "local class incompatible"?

开发者 https://www.devze.com 2023-04-04 11:20 出处:网络
How to determine whic开发者_开发问答h serializable class causes above exception. I tried to read the stack trace, but it is not clear for me...

How to determine whic开发者_开发问答h serializable class causes above exception. I tried to read the stack trace, but it is not clear for me... I'm not familiar with the project very well. Thank you!


From java.io.InvalidClassException javaDoc:

 String     getMessage()
      Produce the message and include the classname, if present.

getMessage() should tell you the name of the offending class.

0

精彩评论

暂无评论...
验证码 换一张
取 消