private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
  in.defaultReadObject();
  if (policy == null) {
    throw new InvalidObjectException("null policy");
  }
  if (classpath == null) {
    throw new InvalidObjectException("null class path");
  }
  if (log == null) {
    throw new InvalidObjectException("null log");
  }
  if (serverOptions == null) {
    throw new InvalidObjectException("null server options");
  }
  if (serverProperties == null) {
    throw new InvalidObjectException("null server properties");
  }
  if (host == null) {
    throw new InvalidObjectException("null activation host name");
  }
  if (port <= 0) {
    throw new InvalidObjectException("invalid activation port: " + port);
  }
}

private void readObject ( ObjectInputStream in ) throws IOException , ClassNotFoundException { in . defaultReadObject ( ) ; if ( policy == null ) { throw new InvalidObjectException ( "null policy" ) ; } if ( classpath == null ) { throw new InvalidObjectException ( "null class path" ) ; } if ( log == null ) { throw new InvalidObjectException ( "null log" ) ; } if ( serverOptions == null ) { throw new InvalidObjectException ( "null server options" ) ; } if ( serverProperties == null ) { throw new InvalidObjectException ( "null server properties" ) ; } if ( host == null ) { throw new InvalidObjectException ( "null activation host name" ) ; } if ( port <= 0 ) { throw new InvalidObjectException ( "invalid activation port: " + port ) ; } }
reads the default serializable field values for this object . also , verifies that the deserialized values are legal .
