views:

324

answers:

3

I have a large bean graph that I'm trying to serialize. Getting serialization exception (a non-specific one). Anyone have a class that will help locate the issue?

A: 

Write one or more unit tests that serialize parts of the graph or the full graph. This will let you brak the problem into smaller pieces.

krosenvold
+4  A: 

From JDK6 you should be able to get extra information by setting the sun.io.serialization.extendedDebugInfo system property:

-Dsun.io.serialization.extendedDebugInfo=true
Tom Hawtin - tackline
A: 

You could use a special output stream that will perform some additional checks. See this page as a reference.

Bogdan