Subject Jaybird Error (JBird 2.01, Firebird 2RC1
Author Ian A. Newby
Hi Folks,
I'm using the above combination and am gettting the folowing error:

java.lang.ArrayIndexOutOfBoundsException: 1034
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.getSqlCounts(AbstractJavaGDSImpl.java:1568)
org.firebirdsql.gds.impl.GDSHelper.getSqlCounts(GDSHelper.java:475)
org.firebirdsql.jdbc.AbstractStatement.getUpdateCount(AbstractStatement.java:637)
org.firebirdsql.jdbc.AbstractPreparedStatement.executeUpdate(AbstractPreparedStatement.java:174)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.firebirdsql.pool.PooledPreparedStatementHandler.invoke(PooledPreparedStatementHandler.java:172)
org.firebirdsql.pool.$Proxy6.executeUpdate(Unknown Source)
uk.co.tpmi.engine.AbstractStoreData.execSQL(AbstractStoreData.java:180)

The statement that is being executed is as follows:

UPDATE content SET PGE_DETAIL = ?, PGE_TITLE = ? WHERE PGE_ID = ?

The parameters are set as follows:

statement.setNull(1, -1);
statement.setString(2,'Stored Procedures'); (Param type = 12)
statement.setString(3,'CFDR00001'); (Param type = 1)

If the setNull is replaced with a setString it all works as expected.

Any clues?

Ian Newby