Subject Re: [Firebird-Java] Re: Exception in jgds.GDS_Impl
Author Aljoscha Rittner
Hi!

>> It's hard to reproduce this exception.

> I suspected that. :(

I've the same error.

>> It occurred after the 12-hour testing in multiple users mode.

> Can it be that you access one connection from multiple threads?

>> It may be my mistake. The question is what does this exception mean?

> It means that we try to convert some data from byte array to integer
> and for some reasons there's not enough data there... I'm just not
> sure if we should handle this situation, since checking if there's
> enough data will cure the symptom, not the reason.

> I will try to check what's happening there, but I'm not sure if I find
> anything.

java.lang.ArrayIndexOutOfBoundsException: 2
at org.firebirdsql.jgds.GDS_Impl.isc_vax_integer(GDS_Impl.java:1300)
at org.firebirdsql.jgds.GDS_Impl.parseTruncSqlInfo(GDS_Impl.java:1901)
at org.firebirdsql.jgds.GDS_Impl.parseSqlInfo(GDS_Impl.java:1873)
at org.firebirdsql.jgds.GDS_Impl.isc_dsql_prepare(GDS_Impl.java:1163)
at org.firebirdsql.jca.FBManagedConnection.prepareSQL(FBManagedConnection.java: 767)
at org.firebirdsql.jdbc.FBConnection.prepareSQL(FBConnection.java:1107)
at org.firebirdsql.jdbc.FBStatement.prepareFixedStatement(FBStatement.java:942)
at org.firebirdsql.jdbc.FBPreparedStatement.prepareFixedStatement(FBPreparedStatement.java:699)
at org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.java:78)
at org.firebirdsql.jdbc.FBConnection.prepareStatement(FBConnection.java:243)
[...]

And this error is hard to reproduce. IMHO I've no multi-treading in
this case:

[...]
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Driver-Type:
firebirdsql jca/jdbc resource adapter Ver.: 0.1
Database-Type:
Firebird Ver.: WI-T1.5.0.3481 Firebird 1.5 Release
Candidate 3BWI-T1.5.0.3481 Firebird 1.5 Release Candidate 3/tcp
(******)/P10

regards,
josh.