I have a problem 'Error reading data from the connection" when read, update and delete query in firebird database. This problem is not always come. some point of time it has happened.

Firebird version: FirebirdS - 2.1.3 (Super server)
OS : Windows Server 2008 and 2003 server
Jaybird jar version : jaybird-full-2.1.6.jar

I have copied here the stack trace. Please help me .


Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544726. Error reading data from the connection.
Reason: Error reading data from the connection.^M
at org.firebirdsql.jdbc.InternalTransactionCoordinato r$AutoCommitCoordinator.statementCompleted(Interna lTransactionCoordinator.java:261)^M
at org.firebirdsql.jdbc.InternalTransactionCoordinato r.statementCompleted(InternalTransactionCoordinato r.java:55)^M
at org.firebirdsql.jdbc.AbstractStatement.notifyState mentCompleted(AbstractStatement.java:246)^M
at org.firebirdsql.jdbc.AbstractStatement.notifyState mentCompleted(AbstractStatement.java:241)^M
at org.firebirdsql.jdbc.AbstractStatement.completeSta tement(AbstractStatement.java:191)^M
at org.firebirdsql.jdbc.InternalTransactionCoordinato r$AutoCommitCoordinator.executionStarted(InternalT ransactionCoordinator.java:202)^M
at org.firebirdsql.jdbc.InternalTransactionCoordinato r.executionStarted(InternalTransactionCoordinator. java:38)^M
at org.firebirdsql.jdbc.AbstractStatement.notifyState mentStarted(AbstractStatement.java:235)^M
at org.firebirdsql.jdbc.AbstractStatement.notifyState mentStarted(AbstractStatement.java:226)^M
at org.firebirdsql.jdbc.AbstractPreparedStatement.<in it>(AbstractPreparedStatement.java:121)^M
at org.firebirdsql.jdbc.FBPreparedStatement.<init>(FB PreparedStatement.java:41)^M
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)^M
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(Unknown Source)^M
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(Unknown Source)^M
at java.lang.reflect.Constructor.newInstance(Unknown Source)^M
at org.firebirdsql.jdbc.FBStatementFactory.createPrep aredStatement(FBStatementFactory.java:90)^M
at org.firebirdsql.jdbc.AbstractConnection.prepareSta tement(AbstractConnection.java:869)^M
at org.firebirdsql.jdbc.AbstractConnection.prepareSta tement(AbstractConnection.java:824)^M
at org.firebirdsql.jdbc.AbstractConnection.prepareSta tement(AbstractConnection.java:817)^M
at org.firebirdsql.jdbc.AbstractConnection.prepareSta tement(AbstractConnection.java:293)^M
at org.jboss.resource.adapter.jdbc.BaseWrapperManaged Connection.prepareStatement(BaseWrapperManagedConn ection.java:381)^M
at org.jboss.resource.adapter.jdbc.WrappedConnection. prepareStatement(WrappedConnection.java:217)^M


Thanks
Ram