Signals that a serialization-related method has been invoked in the wrong
place. Some methods in {@code ObjectInputStream} and {@code
ObjectOutputStream} can only be called from a nested call to readObject() or
writeObject(). Any attempt to call them from another context will cause a
{@code NotActiveException} to be thrown. The list of methods that are
protected this way is:
- {@link ObjectInputStream#defaultReadObject()}
- {@link ObjectInputStream#registerValidation(ObjectInputValidation, int)}
- {@link ObjectOutputStream#defaultWriteObject()}
|