Subject Java Thread Freezes
Author st.toennies
Hello,

we have a problem that is periodically happening on customers side every 1 or 2 weeks. We are using Jaybird 2.1.3 with Firebird 2.1.3 Classic (64 bit) on a Windows Server 2008 R2 machine.

As described in subject, java threads are frozen in our application with the following stacktrace :

java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
org.firebirdsql.gds.impl.wire.XdrInputStream.read(XdrInputStream.java:242)
org.firebirdsql.gds.impl.wire.XdrInputStream.readInt(XdrInputStream.java:187)
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.nextOperation(AbstractJavaGDSImpl.java:2099)
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.receiveResponse(AbstractJavaGDSImpl.java:2053)
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscDsqlPrepare(AbstractJavaGDSImpl.java:1498)
org.firebirdsql.gds.impl.GDSHelper.prepareStatement(GDSHelper.java:189)
org.firebirdsql.jdbc.AbstractStatement.prepareFixedStatement(AbstractStatement.java:1119)
org.firebirdsql.jdbc.AbstractPreparedStatement.prepareFixedStatement(AbstractPreparedStatement.java:1176)
org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPreparedStatement.java:124)
<init>(FBPreparedStatement.java:41)
sun.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
org.firebirdsql.jdbc.FBStatementFactory.createPreparedStatement(FBStatementFactory.java:90)
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:869)
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:824)
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:817)
org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConnection.java:293)

Any idea to avoid this situation would be welcome.

Thanks