Re: NullPointerException inside ResultSet.next() - Mailing list pgsql-jdbc

From Graham Leggett
Subject Re: NullPointerException inside ResultSet.next()
Date
Msg-id 3C7070CD.3A0D11C7@sharp.fm
Whole thread Raw
In response to Re: NullPointerException inside ResultSet.next()  ("Dave Cramer" <Dave@micro-automation.net>)
List 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@sharp.fm        "There's a moon
                    over Bourbon Street
                        tonight..."

Attachment

pgsql-jdbc by date:

Previous
From: "Dave Cramer"
Date:
Subject: Re: NullPointerException inside ResultSet.next()
Next
From: "victor3.lopes@voila.fr"
Date:
Subject: Jdbc1 over SSL