Skip site navigation (1) Skip section navigation (2)

Re: Exception in running query

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bellur Ashwin <bell_ashwin(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Exception in running query
Date: 2007-04-10 17:57:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

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(
>    at java.util.ArrayList.get(
>    at org.postgresql.core.v3.QueryExecutorImpl.processResults(
>    at org.postgresql.core.v3.QueryExecutorImpl.execute(
>    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(
>    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(
>    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(

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

In response to

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2007-04-11 07:53:35
Subject: Re: Small addition to PGInterval
Previous:From: Bellur AshwinDate: 2007-04-10 17:14:11
Subject: Exception in running query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group