Name

NotActiveException

Synopsis

This exception is thrown in several circumstances. It indicates that the invoked method was not invoked at the right time or in the correct context. Typically, it means that an ObjectOutputStream or ObjectInputStream is not currently active and therefore the requested operation cannot be performed.

java.io.NotActiveException

Figure 9-33. java.io.NotActiveException

public class NotActiveException extends ObjectStreamException {
// Public Constructors
     public NotActiveException( );  
     public NotActiveException(String reason);  
}

Thrown By

ObjectInputStream.registerValidation( )

Get Java in a Nutshell, 5th 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.