Re: NullPointer error returned from ResultSet.java

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Jeffrey Duffy <jeff(at)alanne(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>, Barry Lind <barry(at)xythos(dot)com>
Subject: Re: NullPointer error returned from ResultSet.java
Date: 2002-10-11 13:21:21
Message-ID: 1034342482.2777.70.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Jeff,

Can you supply me with a test case, and I can debug the driver and see
what is going on?

Dave
On Fri, 2002-10-11 at 08:35, Jeffrey Duffy wrote:
>
> On Friday, October 11, 2002, at 06:14 AM, Dave Cramer wrote:
>
> > Jeff,
> >
> > Can you show me how the statements are being created? I was partially
> > correct, you can't have multiple result sets open on the same
> > statement.
> >
> Dave,
>
> Before I enter the first block, I predeclare all Statements and
> ResultSets that will be used like so:
>
> Statement stmt = conn.createStatement();
> Statement stmt2 = conn.createStatement();
> Statement stmt3 = conn.createStatement();
> ResultSet rs, rs2, rs3;
>
> I know you can't have many RS's per statement, but I'm very sure that
> I am not attempting to do that. As I said before, this only seems to
> happen when I have an executeUpdate call from within a nested rs.next()
> loop, but it's definitely not the same statement object, which is why
> it's puzzling.
>
> Jeff
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rod Taylor 2002-10-11 13:36:52 Re: MySQL vs PostgreSQL.
Previous Message Antti Haapala 2002-10-11 13:20:22 MySQL vs PostgreSQL.