Some InterClient connection errors

By: Ben Matterson

Abstract: If you try to use InterClient to connect to InterBase, you will get errors if InterBase and InterServer are not both running.

What exceptions are thrown if I try to connect to InterBase using InterClient but either InterBase or InterServer is not running.

If InterServer is not running, you will get the following exception.

In a Java application:
interbase.interclient.CommunicationException: [interclient] Communication error:
A socket exception occurred while trying to establish a socket connection to server localhost.
The message of the SocketException is "Connection refused: connect".
See API reference for exception interbase.interclient.CommunicationException

From the InterClient Communication Diagnostic Tool:
SQL State: ICJE2
Error Code: 1
Message: [interclient] Communication error: A socket exception occurred while trying to establish a socket connection to server localhost. The message of the SocketException is "Connection refused: connect". See API reference for exception interbase.interclient.CommunicationException

If InterServer is running, but the InterBase Server is not running, you will get the following exception:

In a Java application:
interbase.interclient.UnavailableInterBaseServerException: [interclient][interbase] unavailable database
See API reference for exception interbase.interclient.UnavailableInterBaseServer

From the InterClient Communication Diagnostic Tool:
SQL State: ICI00
Error Code: 335544375
Message: [interclient][interbase] unavailable database
See API reference for exception interbase.interclient.UnavailableInterBaseServerException

Server Response from: ETNASC04