Thread: java.lang.ArrayIndexOutOfBoundsException

java.lang.ArrayIndexOutOfBoundsException

From
J M Okomba
Date:
Hi,

I have upgraded to Postgres 7.3 from Postgres 7.2 and keep getting
java.lang.ArrayIndexOutOfBoundsException. I am using pg73jdbc3.jar driver
with JDK 1.4.0.

I have tried changing the database encoding (using -E option) but this
hasn't solved the problem. This is the stack trace:

---------------------------------------
java.lang.ArrayIndexOutOfBoundsException
        at org.postgresql.core.Encoding.decodeUTF8(Encoding.java:259)
        at org.postgresql.core.Encoding.decode(Encoding.java:165)
        at org.postgresql.core.Encoding.decode(Encoding.java:181)
        at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1RsultSet.
java:97)
        at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2RsultSet.
java:120)
        at
org.apache.commons.dbcp.DelegatingResultSet.getObject(DelegatingResutSet.jav
a:177)
---------------------------------------

I will appreciate help to resolve the problem.

Thanks in advance.

Regards,

Mugoma Okomba