Re: NullPointerException on next()

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: "Thomas O'Dowd" <tom(at)nooper(dot)com>
Cc: Dave Cramer <Dave(at)micro-automation(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: NullPointerException on next()
Date: 2001-08-10 18:06:08
Message-ID: 3B742290.2010302@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I didn't close the statement. I did use the statement again (to do an
update) before I called next(), is that a problem now?

Thomas O'Dowd wrote:
> Check that you didn't close the statement before making this
> call to next() in the ResultSet object.
>
> Tom.
>
> On Thu, Aug 09, 2001 at 09:34:51PM -0400, Dave Cramer wrote:
>
>>Joseph,
>>
>>Can you post some code to reproduce the error please?
>>
>>Dave
>>
>>-----Original Message-----
>>From: pgsql-jdbc-owner(at)postgresql(dot)org
>>[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Joseph Shraibman
>>Sent: August 9, 2001 9:27 PM
>>To: pgsql-jdbc(at)postgresql(dot)org
>>Subject: [JDBC] NullPointerException on next()
>>
>>
>>Using the jdbc 7.1.2 drivers:
>>
>>Exception in thread "main" java.lang.NullPointerException
>> at org.postgresql.jdbc2.ResultSet.next(ResultSet.java:116)
>>
>>that line is:
>> if (++current_row >= rows.size())
>>
>>--
>>Joseph Shraibman
>>jks(at)selectacast(dot)net
>>Increase signal to noise ratio. http://www.targabot.com
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 4: Don't 'kill -9' the postmaster
>>
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>>
>

--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rene Pijlman 2001-08-10 19:18:07 Re: NullPointerException on next()
Previous Message John Anderson 2001-08-10 17:58:54 Re: tough one