Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 404
Andreas Petersson Avatar asked Nov 02 '09 10:11

Andreas Petersson


1 Answers

-Dsun.io.serialization.extendedDebugInfo=true

like image 71
Andreas Petersson Avatar answered Nov 17 '22 17:11

Andreas Petersson