Serialization ( or RMI ) problems when running under TrueTime



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


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:


You can also write:


[ 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
Related Discussions