用于启用扩展序列化调试信息的 Java 标志 [英] Java flag to enable extended Serialization debugging info

查看:22
本文介绍了用于启用扩展序列化调试信息的 Java 标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在努力使用复杂对象在 tomcat 上进行 HTTP 会话复制.

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

某些对象实现了Serializable,但持有不可序列化的成员.

Some objects implement Serializable but hold non-serializable members.

不幸的是,默认情况下,堆栈跟踪在这里没有提供太多有用的信息.

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

有一个标志 -XX:????当 NotSerializableException 发生时,在堆栈跟踪中启用详细的类名.这个标志将帮助我找到错误的根源.但我忘了它的名字

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

国旗的名字是什么?

推荐答案

-Dsun.io.serialization.extendedDebugInfo=true

-Dsun.io.serialization.extendedDebugInfo=true

这篇关于用于启用扩展序列化调试信息的 Java 标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆