Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A873AB5DC15 for ; Thu, 22 Sep 2011 12:01:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 52210-07 for ; Thu, 22 Sep 2011 15:01:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id 22511B5DBC4 for ; Thu, 22 Sep 2011 12:01:41 -0300 (ADT) Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id 332B05AED for ; Thu, 22 Sep 2011 09:01:41 -0600 (MDT) Message-ID: <4E7B4CE9.3030803@ttc-cmc.net> Date: Thu, 22 Sep 2011 08:57:45 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: PostgreSQL JDBC Subject: Re: JVM & JDBC Upgrade --- Help !! References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> <4E7AB8CC.2000600@ringerc.id.au> In-Reply-To: <4E7AB8CC.2000600@ringerc.id.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/87 X-Sequence-Number: 22205 On 09/22/2011 06:53 AM, Craig Golby wrote: >> >> Code Snippet … >> >> if(conn != null) >> >> { try >> >> { pStmt = conn.prepareStatement(stmtStringSel); >> >> pStmt.clearParameters(); >> >> rsID = pStmt.executeQuery(); >> >> //Set up the Array >> >> ResultSetMetaData rsmd = rsID.getMetaData(); >> >> int columnCount = rsmd.getColumnCount(); >> >> int rowCount = 7; >> >> rsOpened = new String[rowCount][columnCount]; >> >> int r=0; >> >> while(rsID.next()) >> >> { int c=0; >> >> int rsc=1; >> >> while (rsc <= columnCount) >> >> { rsOpened[r][c] = rsID.getString(rsc); >> Craig Ringer wrote: > Is the above line where the exception is thrown from? You didn't provide > full exception context. > > If so, check and make sure the column count reported by `getColumnCount' > matches what you expect and what the old driver provided. Compare it to > the table. Compare the column-list metadata output from the old and new > drivers to see which column(s) have appeared/disappeared. > > -- > Craig Ringer I don't think this coming from the JDBC, your code is throwing the error, java.lang.ArrayIndexOutOfBoundsException. That rowCount assignment looks suspicious. The columnCount is coming directly from getColumnCount() so I don't thinks its the culprit. Put a a system.out in there for r & c to track. danap.