Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 575349F9C28 for ; Thu, 27 Sep 2007 13:00:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 84806-08 for ; Thu, 27 Sep 2007 13:00:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp008.mail.ukl.yahoo.com (smtp008.mail.ukl.yahoo.com [217.12.11.62]) by postgresql.org (Postfix) with SMTP id E5AF49F9A44 for ; Thu, 27 Sep 2007 13:00:29 -0300 (ADT) Received: (qmail 30386 invoked from network); 27 Sep 2007 15:53:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Received:X-YMail-OSG:Message-ID:From:To:Subject:Date:MIME-Version:Content-Type:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-Antivirus:X-Antivirus-Status; b=BX2/gQRePbXI8HC+XUrC99vPJ4ulijSrnslixpjx58fcjO8AhBnHdjk7HfrzfA/QPh/IuCrrcjRilpmBHqT2+7/JDUws5Jphtzm3k6PktMVelsbloIBy7lu2sLlzVl7phC/uIb27emEYqMOIJsbb1CgSKooTnKvMBo+JSr4OG3Y= ; Received: from unknown (HELO MRHYDE) (metlud@87.9.238.202 with login) by smtp008.mail.ukl.yahoo.com with SMTP; 27 Sep 2007 15:53:49 -0000 X-YMail-OSG: oCTESaIVM1lQPHZS4MhPgFbl9CKebAqrXBw0Qg3ADh.5NWEvUps7TB6khr3HgRgN3g9oHq9smg-- Message-ID: <006a01c8011e$b4f10480$4101a8c0@MRHYDE> From: "Ludovico Bianchini" To: Subject: Re: ResultSet with more than 5 rows causes error Date: Thu, 27 Sep 2007 17:54:35 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0067_01C8012F.77417B90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Antivirus: avast! (VPS 000777-1, 26/09/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.014 tagged_above=0 required=5 tests=BAYES_50=0.001, FAKE_REPLY_C=2.012, HTML_MESSAGE=0.001 X-Spam-Level: ** X-Archive-Number: 200709/121 X-Sequence-Number: 17543 This is a multi-part message in MIME format. ------=_NextPart_000_0067_01C8012F.77417B90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The error happens after the first 5 rows are correctly processed. After .next(), when the cursor is positioned on the sixth row, accessing the first column value with .getObject(1) causes a NullPointerException Stack trace java.lang.NullPointerException at=20 org.postgresql.core.v3.SimpleParameterList.getV3Length(SimpleParameterLis= t.java:228) at=20 org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.java:= 807) at=20 org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.j= ava:1052) at=20 org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.java= :643) at=20 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:1= 89) at=20 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statemen= t.java:452) at=20 org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc= 2Statement.java:351) at=20 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statemen= t.java:344) ------=_NextPart_000_0067_01C8012F.77417B90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
The error=20 happens after the first 5 rows are correctly processed.
After = .next(), when=20 the cursor is positioned on the sixth row, accessing
the first column = value=20 with .getObject(1) causes a NullPointerException

Stack=20 trace

java.lang.NullPointerException
    &n= bsp;  =20 at=20
org.postgresql.core.v3.SimpleParameterList.getV3Length(SimpleParamete= rList.java:228)
       =20 at=20
org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.j= ava:807)
       =20 at=20
org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorIm= pl.java:1052)
       =20 at=20
org.postgresql.core.v3.QueryExecutorImpl.sendQuery(QueryExecutorImpl.= java:643)
       =20 at=20
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.ja= va:189)
       =20 at=20
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat= ement.java:452)
       =20 at=20
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abstract= Jdbc2Statement.java:351)
       =20 at=20
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat= ement.java:344)

------=_NextPart_000_0067_01C8012F.77417B90-- Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com