Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 859389552D4 for ; Tue, 28 Feb 2012 12:20:21 -0400 (AST) Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S2Pmk-00077D-5w for pgsql-jdbc@postgresql.org; Tue, 28 Feb 2012 16:20:20 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2PmW-00051b-Fn for pgsql-jdbc@postgresql.org; Tue, 28 Feb 2012 17:20:04 +0100 Received: from 91-66-196-252-dynip.superkabel.de ([91.66.196.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 17:20:04 +0100 Received: from mail by 91-66-196-252-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 17:20:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Jan Torben Heuer Subject: IndexOutOfBoundsException in org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1720) Date: Tue, 28 Feb 2012 17:14:34 +0100 Lines: 68 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-66-196-252-dynip.superkabel.de User-Agent: KNode/4.7.3 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/83 X-Sequence-Number: 22736 Hi, I noticed a strange Exception on my test server using postgresql-9.0-801.jdbc4 in this code fragment: QueryExecutorImpl.java:1720 (pendingBindQueue#get(int)) ---------- case '2': // Bind Complete (response to Bind) pgStream.ReceiveInteger4(); // len, discarded Portal boundPortal = (Portal)pendingBindQueue.get(bindIndex++); if (logger.logDebug()) logger.debug(" <=BE BindComplete [" + boundPortal + "]"); registerOpenPortal(boundPortal); break; ---------- java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1720) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:374) at org.postgresql.jdbc2.AbstractJdbc2Connection.execSQLQuery(AbstractJdbc2Connection.java:244) at org.postgresql.jdbc2.AbstractJdbc2Connection.execSQLQuery(AbstractJdbc2Connection.java:236) at org.postgresql.jdbc2.AbstractJdbc2Connection.getTransactionIsolation(AbstractJdbc2Connection.java:760) at com.jolbox.bonecp.ConnectionHandle.getTransactionIsolation(ConnectionHandle.java:633) at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:383) at org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getXAResource(ConnectionFactoryImpl.java:313) at org.datanucleus.store.connection.ConnectionManagerImpl.enlistResource(ConnectionManagerImpl.java:389) at org.datanucleus.store.connection.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:252) at org.datanucleus.store.connection.AbstractConnectionFactory.getConnection(AbstractConnectionFactory.java:60) at org.datanucleus.store.AbstractStoreManager.getConnection(AbstractStoreManager.java:441) at org.datanucleus.store.AbstractStoreManager.getConnection(AbstractStoreManager.java:410) at org.datanucleus.store.rdbms.query.JDOQLQuery.performExecute(JDOQLQuery.java:595) at org.datanucleus.store.query.Query.executeQuery(Query.java:1789) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1665) at org.datanucleus.api.jdo.JDOQuery.executeWithArray(JDOQuery.java:312) I haven't manged to reproduce this issue on my dev machine. But can someone give me a hint what happens here? What is a Portal and what does it mean if an IndexOutOfBounds Exception occurs here? Thanks, Jan --