Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8EB3A9FB308 for ; Tue, 10 Apr 2007 14:58:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 00777-08 for ; Tue, 10 Apr 2007 14:57:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 538389FA392 for ; Tue, 10 Apr 2007 14:57:36 -0300 (ADT) Received: (qmail 5778 invoked by uid 1112); 10 Apr 2007 17:57:27 -0000 Date: Tue, 10 Apr 2007 13:57:27 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Bellur Ashwin cc: pgsql-jdbc@postgresql.org Subject: Re: Exception in running query In-Reply-To: <758357.44713.qm@web50604.mail.re2.yahoo.com> Message-ID: References: <758357.44713.qm@web50604.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/13 X-Sequence-Number: 16862 On Tue, 10 Apr 2007, Bellur Ashwin wrote: > I issued one query to postgres using JDBC, it returned an exception > saying the specified column does not exist. My java code handles this > exception and subsequently when i try to run some other queries i am > getting the following exception: > > java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 > at java.util.ArrayList.RangeCheck(ArrayList.java:546) > at java.util.ArrayList.get(ArrayList.java:321) > at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1223) > at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175) > at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389) > at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314) > at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:221) > I cannot duplicate this result so I would have to suspect it has something to do with your server modifications. If you reproduce this problem on a stock server and driver please provide the exact versions of both and I will investigate further. Enabling protocol logging using the URL parameter loglevel=2 may help you see where the driver is getting confused. Kris Jurka