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

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

问题描述



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



不幸的是,默认情况下,堆栈跟踪不提供很多有用的信息。



有一个标志-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屋!

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