pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Luc1fer Hell <luc1fer@inbox.ru>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Fw: java.lang.IndexOutOfBoundsException when commit long transaction
Date: Sat, 24 Nov 2007 01:36:55 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0711240115220.505@leary.csoft.net> (raw)
In-Reply-To: <E1IvDqC-0001Bg-00.luc1fer-inbox-ru@f109.mail.ru>
References: <E1IvDqC-0001Bg-00.luc1fer-inbox-ru@f109.mail.ru>



On Thu, 22 Nov 2007, Luc1fer Hell wrote:

> I'm trying to implement data replication mechanism base on OpenJPA and 
> WebServices. When I tried to persist about 200000 objects that 
> references each other i have got an error on commit:
>
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         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:1175)
>
> I use PostgreSQL 8.2 as database and openJPA 1.0.1 as ORM. Can anybody 
> help me? As i see problem lies in Postgre Driver. My current is 
> postgresql-8.2-505.jdbc3.jar
>

That's an unusual error and does look like it is the driver's problem. 
Are there any errors prior to this one?  Can you reproduce it with a 
smaller test case or only with 200000 records?  If you can put together 
something self contained, I'd love to look at it.  Another good diagnostic 
tool is adding ?loglevel=2 to your connection URL to enable verbose 
logging.  With 200k records that's going to be a lot of info, but if 
you're willing to share it, I'd be willing to take a look at that too.

Kris Jurka



view thread (2+ messages)

Message-ID: <Pine.BSO.4.64.0711240115220.505@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0711240115220.505@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0711240115220.505@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, luc1fer@inbox.ru
  Subject: Re: Fw: java.lang.IndexOutOfBoundsException when commit long transaction
  In-Reply-To: <Pine.BSO.4.64.0711240115220.505@leary.csoft.net>
  References: <E1IvDqC-0001Bg-00.luc1fer-inbox-ru@f109.mail.ru> <Pine.BSO.4.64.0711240115220.505@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox