Java标志启用扩展序列化调试信息 [英] Java flag to enable extended Serialization debugging info
问题描述
某些对象实现了可序列化,但持有不可序列化的成员。
不幸的是,默认情况下,堆栈跟踪不提供很多有用的信息。
有一个标志-XX:? ?当发生NotSerializableException时,在stacktrace中启用详细类名称。这个标志将帮助我很多找到错误的根源。但我忘了它的名字
标志的名称是什么?
-Dsun.io.serialization.extendedDebugInfo = true
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?
-Dsun.io.serialization.extendedDebugInfo=true
这篇关于Java标志启用扩展序列化调试信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!