Java flag to enable extended Serialization debugging info

拈花ヽ惹草 提交于 2019-11-27 01:17:52

问题


I am currently struggling with HTTP Session replication on tomcat with complex objects.

Some objects implement Serializable but hold non-serializable members.

Unfortunately, the stacktraces do not provide much useful info here by default.

there is a flag -XX:???? to enable verbose class names in the stacktrace when a NotSerializableException occurrs. this flag would help me a lot finding the source of the error. but i forgot its name

What is the name of the flag?


回答1:


-Dsun.io.serialization.extendedDebugInfo=true



来源:https://stackoverflow.com/questions/1660441/java-flag-to-enable-extended-serialization-debugging-info

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!