用于启用扩展序列化调试信息的 Java 标志
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1660441/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java flag to enable extended Serialization debugging info
提问by Andreas Petersson
I am currently struggling with HTTP Session replication on tomcat with complex objects.
我目前正在努力使用复杂对象在 tomcat 上进行 HTTP 会话复制。
Some objects implement Serializablebut hold non-serializable members.
一些对象实现Serializable但持有不可序列化的成员。
Unfortunately, the stacktraces do not provide much useful info here by default.
不幸的是,默认情况下,堆栈跟踪在这里没有提供太多有用的信息。
there is a flag -XX:???? to enable verbose class namesin the stacktrace when a NotSerializableException occurrs. this flag would help me a lot finding the source of the error. but i forgot its name
有一个标志 -XX:???? 当 NotSerializableException 发生时,在堆栈跟踪中启用详细的类名。这个标志将帮助我找到错误的根源。但我忘记了它的名字
What is the name of the flag?
国旗的名字是什么?
回答by Andreas Petersson
-Dsun.io.serialization.extendedDebugInfo=true
-Dsun.io.serialization.extendedDebugInfo=true

