ProtocolExceptionProtocolException
An HTTP or network protocol violation occurred.
BindExceptionA socket cannot be bound to the requested address or port.
The port is already in use by another process, or the address is not available on this machine. This commonly occurs when starting a server on a port that is already occupied.
Use a different port. Stop the process occupying the port. Wait for the previous process to release the port (TIME_WAIT). Use SO_REUSEADDR option.
ProtocolExceptionAn HTTP or network protocol violation occurred.
AccessControlExceptionA security check fails for a specific permission.
ClassCastExceptionAn object is cast to a type that it is not an instance of.
InstantiationExceptionAn attempt to create an instance of an abstract class or interface using reflection.
NoSuchMethodExceptionA method with the specified name and parameter types cannot be found via reflection.
StringIndexOutOfBoundsExceptionA string is accessed with an index that is outside its valid range.