简体   繁体   中英

Java flag to enable extended Serialization debugging info

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 =真

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM