Re: NullPointerException inside ResultSet.next()

From: Graham Leggett <minfrin(at)sharp(dot)fm>
To: Dave(at)micro-automation(dot)net
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: NullPointerException inside ResultSet.next()
Date: 2002-02-18 03:11:09
Message-ID: 3C7070CD.3A0D11C7@sharp.fm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Dave Cramer wrote:

> It appears you have two result sets open? One for the
> recipes.getInt("recipe_index")
>
> Can we see the rest of the code around this?

There were two result sets open on the same Statement variable, but with
two different statements. When the first resultset was accessed after
the second statement had been fired off, the driver triggered a
NullPointerException.

Creating separate Statement variables fixed the problem - thanks for
pointing me in the right direction...!

Regards,
Graham
--
-----------------------------------------
minfrin(at)sharp(dot)fm "There's a moon
over Bourbon Street
tonight..."

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message victor3.lopes 2002-02-18 09:16:17 Jdbc1 over SSL
Previous Message Dave Cramer 2002-02-18 00:00:40 Re: NullPointerException inside ResultSet.next()