Serialization ( or RMI ) problems when running under TrueTime

0 Likes

Problem:

When I run my Java application under TrueTime/TrueCoverage, I get serialization errors.  What's going on?

Resolution:

The combination of a TrueTime, a JIT, and serialization seems to change the automatic serialization algorithm somehow.  This means that you may get conflicts if an application being profiled tries to read serialization data from an application that isn't being profiled.  (This can also occur if you use serialization to persist objects to disk).

The simple workaround is to turn off the JIT, with a command line option to java like:

-Djava.compiler=

You can also write:

-Djava.compiler=NONE

[ I haven't seen any clear indications from sun as to the 'correct' way to turn off the JIT, but both seem to work ]

Old KB# 12038
Comment List
Anonymous
Related Discussions
Recommended