ResultSet.previous() - ArrayIndexOutOfBoundsException

From: Fischer Krisztián <fischer(at)borganization(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: ResultSet.previous() - ArrayIndexOutOfBoundsException
Date: 2004-01-19 14:09:15
Message-ID: 400BE50B.9020303@borganization.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi!

I use PostgreSQL 7.4.1 through the shipped JDBC driver. In some
circumstances the driver throws the following exception:

[...]
java.lang.ArrayIndexOutOfBoundsException: 1 >= 0
at java.util.Vector.elementAt(Vector.java:431)
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.previous(AbstractJdbc2ResultSet.java:495)
at
com.bh.server.implementation.SQLObject.previousRow(SQLObject.java:583)
at com.bh.server.implementation.DSF3.getBlock(DSF3.java:3916)
at
com.bh.server.implementation.DSF3.getPreviousBlock(DSF3.java:2302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
[...]

I wrote a lot's of test, but i cannot reproduce the problem in a simple
form. However my real application (a quite huge one) produces the
exception above constantly. I guessed it's related to some
synchronization issue, but after making my ResultSet-wrapper object
thread safe, the problem still exists. So maybe it's a bug in the driver.

Has anyone such 'experiences'? Or some tips where do i mess it up?

Thanks in advance.

--
Fischer Krisztián <fischer(at)borganization(dot)com>
Tel: (+36)70/3843835, (+36)1/3360547
Borganization Kft.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alessandro Depase 2004-01-19 15:53:27 Re: clarification needed in postgresql... + transactions...
Previous Message dinakar 2004-01-19 12:17:18 clarification needed in postgresql... + transactions...