Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 9061A9F9F07 for ; Thu, 27 Sep 2007 17:51:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 44938-01-2 for ; Thu, 27 Sep 2007 17:50:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from www.goldencode.com (www.goldencode.com [72.17.138.114]) by postgresql.org (Postfix) with ESMTP id 059D99F9EA1 for ; Thu, 27 Sep 2007 17:51:02 -0300 (ADT) Received: from emlsrv01.internal.goldencode.com (unknown [192.168.1.51]) by www.goldencode.com (Postfix) with SMTP id 2927A1C16F for ; Thu, 27 Sep 2007 15:52:19 -0400 (EDT) Received: from [192.168.1.103] (ecf.internal.goldencode.com [192.168.1.103]) by emlsrv01.internal.goldencode.com (Hethmon Brothers Smtpd) id 20070927164933-59443-7 ; Thu, 27 Sep 2007 16:49:33 -0500 Message-ID: <46FC17AD.50507@goldencode.com> Date: Thu, 27 Sep 2007 16:50:53 -0400 From: Eric Faulhaber Reply-To: ecf@goldencode.com Organization: Golden Code Development User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: Kris Jurka CC: Ludovico Bianchini , pgsql-jdbc@postgresql.org Subject: Re: ResultSet with more than 5 rows causes error References: <008901c8011f$8c815800$4101a8c0@MRHYDE> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/126 X-Sequence-Number: 17548 Kris Jurka wrote: > > > On Thu, 27 Sep 2007, Ludovico Bianchini wrote: > >> Sorry, the error does not seem to be in the ResultSet but instead in >> the Callable Statement, method execute(). >> >> java.lang.NullPointerException >> at >> org.postgresql.core.v3.SimpleParameterList.getV3Length(SimpleParameterList.java:228) >> >> at >> org.postgresql.core.v3.QueryExecutorImpl.sendBind(QueryExecutorImpl.java:807) >> > > It is likely failing at execution number 6 because that's the point > where the driver switches over to using server prepared statements > instead of executing things on the fly. I don't have time to take a > look at this now, but it's likely a driver problem. Hopefully I'll be > able to look at this on Sunday/Monday. If this is the case, couldn't he use "?prepareThreshold=0" at the end of his connect URL as a temporary workaround? It will be slower, but it would unblock him. Regards, Eric Faulhaber