Troubleshooting

ClassNotFoundException Thrown During Deserialization

If you are trying to deserialize a file or stream back into an object or set of objects and a ClassNotFoundException is thrown.

The SDK 1.3 has improved Exception reporting for serialization. Instead of a generic Exception being thrown during a deserialization process, a more descriptive exception will be thrown. In most cases, it will be a ClassNotFoundException. This exception is raised when a stream being deserialized contains one or more classes that can't be found in the system CLASSPATH. The Exception will now correctly report the exact class can't find during the deserialization process. You need to make sure that all of the classes contained within the stream being ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.