Subject FB/IB and Interclient Communication Errors
Author Robert DiFalco
There are some exceptions that I get erratically. First, I have a connection
pool that recycles connections every five minutes or after so many uses.
Occasionally, when I close a stale connection I get the following exception:

interbase.interclient.CommunicationException: [interclient] Communication
error: An IO exception occurred while trying to receive data from server
localhost.
The message of the IOException is "Connection reset by peer: JVM_recv in
socket input stream read".
See API reference for exception interbase.interclient.CommunicationException
at interbase.interclient.JDBCNet.receiveMessage(JDBCNet.java:226)
at
interbase.interclient.JDBCNet.sendAndReceiveMessage(JDBCNet.java:333)
at
interbase.interclient.Connection.remote_DETACH_DATABASE(Connection.java:829)
at interbase.interclient.Connection.close(Connection.java:802)
at
com.tripwire.space.services.database.ConnectionPool.close(ConnectionPool.jav
a:414)
at
com.tripwire.space.services.database.ConnectionPool.reapExpired(ConnectionPo
ol.java:440)

Also, unrelated, sometimes I get java.io.EOFExceptions trying to unmarshal
return headers. I have interclient encapsulated in an RMI Server (a Jini
service, actually), and I'm not quite sure if this is a communication error
returning data from the service to the client or the interaction between the
database query and the database. Weird.

TIA,

Robert