From: | Nahum Castro <nahumcastro(at)gmail(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: next() error |
Date: | 2005-02-04 00:35:35 |
Message-ID: | 714bb51a0502031635613f6fdb@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On Fri, 04 Feb 2005 12:05:12 +1300, Oliver Jowett <oliver(at)opencloud(dot)com> wrote:
> Nahum Castro wrote:
>
> > javax.servlet.ServletException: ResultSet not positioned properly,
> > perhaps you need to call next.
>
> > Has changed something on the server or on the driver?
>
> Newer drivers follow the JDBC specification more strictly.
>
> > ResultSet RecordsetPubs1 = StatementRecordsetPubs1.executeQuery();
> > boolean RecordsetPubs1_isEmpty = ! RecordsetPubs1.next();
> > boolean RecordsetPubs1_hasData = ! RecordsetPubs1_isEmpty;
>
> [...]
>
> > <td align="left" width="50%"><%=(((RecordsetPubs1_data =
> > RecordsetPubs1.getObject("au_id"))==null ||
> > RecordsetPubs1.wasNull())?"":RecordsetPubs1_data)%></td>
>
> You appear to be calling ResultSet.getObject() even if ResultSet.next()
> returned false. You're not allowed to do this -- see the JDBC javadoc.
>
> -O
>
Thank you.
I solved the problem now.
--
Nahum Castro González
León, Guanajuato, México
From | Date | Subject | |
---|---|---|---|
Next Message | Stéphane RIFF | 2005-02-04 08:06:04 | Re: [SPAM] - Re: [SPAM] - Re: JDBC HighLoad - Found word(s) |
Previous Message | Oliver Jowett | 2005-02-03 23:05:12 | Re: next() error |