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

Fw: java.lang.IndexOutOfBoundsException when commit long transaction

From: Luc1fer Hell <luc1fer(at)inbox(dot)ru>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Fw: java.lang.IndexOutOfBoundsException when commit long transaction
Date: 2007-11-22 15:19:44
Message-ID: E1IvDqC-0001Bg-00.luc1fer-inbox-ru@f109.mail.ru (view raw or flat)
Thread:
Lists: pgsql-jdbc
 Hello.
 
 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)
         at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191)
         at org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:653)
         at org.postgresql.jdbc2.AbstractJdbc2Connection.commit(AbstractJdbc2Connection.java:673)
         at org.postgresql.jdbc2.AbstractJdbc2Connection.setAutoCommit(AbstractJdbc2Connection.java:636)
         at org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnection.java:331)
         at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit(PoolingDataSource.java:317
 )
         at org.apache.openjpa.lib.jdbc.DelegatingConnection.setAutoCommit(DelegatingConnection.java:196)
         at org.apache.openjpa.lib.jdbc.DelegatingConnection.setAutoCommit(DelegatingConnection.java:196)
         at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator$ConfiguringConnection.setAutoCommit(ConfiguringCon
 nectionDecorator.java:117)
         at org.apache.openjpa.lib.jdbc.ConfiguringConnectionDecorator$ConfiguringConnection.rollback(ConfiguringConnecti
 onDecorator.java:135)
         at org.apache.openjpa.lib.jdbc.DelegatingConnection.rollback(DelegatingConnection.java:208)
         at org.apache.openjpa.lib.jdbc.DelegatingConnection.rollback(DelegatingConnection.java:208)
         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.rollback(JDBCStoreManager.java:188)
         at org.apache.openjpa.kernel.DelegatingStoreManager.rollback(DelegatingStoreManager.java:98)
         at org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1248)
         at org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2121)
         at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:1790)
         ... 30 more
 
 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
 

Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2007-11-24 06:07:14
Subject: Re: AbstractJdbc2Array - another patch
Previous:From: Marek LewczukDate: 2007-11-22 14:55:41
Subject: Re: ResultSetMetaData getColumnTypeName()

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