Subject Re: [Firebird-Java] Invalid Request Handle?
Author Roman Rokytskyy
> Sometimes I get this exception (Firebird 1.5 with the proper Jaybird version), what is the cause of this?

What is the proper Jaybird version? Something 2.0.x or still 1.5.x?

> at org.firebirdsql.gds.GDSException: invalid request handle
> at org.firebirdsql.jgds.GDS_Impl.readStatusVector(
> at org.firebirdsql.jgds.GDS_Impl.receiveResponse(
> at org.firebirdsql.jgds.GDS_Impl.isc_dsql_execute2(
> at org.firebirdsql.jca.FBManagedConnection.executeStatement(
> at org.firebirdsql.jdbc.AbstractConnection.executeStatement(
> at org.firebirdsql.jdbc.AbstractPreparedStatement.internalExecute(
> at org.firebirdsql.jdbc.AbstractPreparedStatement.executeQuery(
> at com.sikgraf.dao.OrcamentoDAO.getOcamentoBean(

I would suspect here some race condition in terms that two different
threads use the same connection (or statement) and then one thread
closes the connection (or statement) and another one tries to fetch data
from it.

In general this case should never happen, the checks in the driver
should prevent this.

If you have a reproducible test case, please send me or post it
somewhere for download.