[Chapter 24] 24.36 java.io.NotActiveException (JDK 1.1)
Author: David Flanagan
Date: Thu Jul 31 16:22:26 1997

#

| Chapter 24 The java.io Package |

## 24.36 java.io.NotActiveException (JDK 1.1)

###

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 could not be performed.

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

### Hierarchy:

Object->Throwable(Serializable)->Exception->IOException->ObjectStreamException->NotActiveException

### Thrown By:

ObjectInputStream.defaultReadObject(), ObjectInputStream.registerValidation()

java.io.LineNumberReader (JDK 1.1) |  | java.io.NotSerializableException (JDK 1.1)