Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why am I having an InvalidClassException thrown during the serialization of my object which implements the Externalizable interface?

0
Posted

Why am I having an InvalidClassException thrown during the serialization of my object which implements the Externalizable interface?

0

Location: http://www.jguru.com/faq/view.jsp?EID=2598 Created: Dec 14, 1999 Modified: 1999-12-22 23:59:24.821 Author: Govind Seshadri (http://www.jguru.com/guru/viewbio.jsp?EID=14) Unlike objects which implement the Serializable interface, it is mandatory for objects implementing the Externalizable interface to also implement a public no-arg constructor. This constructor is the very first thing that is invoked by readExternal() when reconstructing the object from the bytestream. If a public no-arg constructor is absent, then an InvalidClassException is immediately thrown.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123