Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CC462B5DC09 for ; Thu, 22 Sep 2011 01:26:02 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 68237-04 for ; Thu, 22 Sep 2011 04:25:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-vw0-f48.google.com (mail-vw0-f48.google.com [209.85.212.48]) by mail.postgresql.org (Postfix) with ESMTP id 1AE31B5DBD1 for ; Thu, 22 Sep 2011 01:25:53 -0300 (ADT) Received: by vws7 with SMTP id 7so3209383vws.21 for ; Wed, 21 Sep 2011 21:25:52 -0700 (PDT) Received: by 10.52.73.198 with SMTP id n6mr1376594vdv.139.1316665552825; Wed, 21 Sep 2011 21:25:52 -0700 (PDT) Received: from ayaki.localdomain (124-148-242-247.dyn.iinet.net.au. [124.148.242.247]) by mx.google.com with ESMTPS id fp5sm5595597vdc.24.2011.09.21.21.25.50 (version=SSLv3 cipher=OTHER); Wed, 21 Sep 2011 21:25:52 -0700 (PDT) Message-ID: <4E7AB8CC.2000600@ringerc.id.au> Date: Thu, 22 Sep 2011 12:25:48 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: JVM & JDBC Upgrade --- Help !! References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> In-Reply-To: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> Content-Type: multipart/alternative; boundary="------------050907080900050807080808" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201109/85 X-Sequence-Number: 22203 This is a multi-part message in MIME format. --------------050907080900050807080808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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); > 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 --------------050907080900050807080808 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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);


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
--------------050907080900050807080808--