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 deserialized are in the system CLASSPATH. Usually, the problem is not with the high-level classes, but with another class that one of these high-level classes reference through an instance variable.

   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net