Re: resultset.first() untrappable error

From: kevin(at)mtel(dot)co(dot)uk (kevin)
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: resultset.first() untrappable error
Date: 2003-08-19 08:23:55
Message-ID: 6675f17.0308190023.74c8eade@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

nickf(at)ontko(dot)com ("Nick Fankhauser") wrote in message news:<NEBBLAAHGLEEPCGOBHDGEEHLIAAA(dot)nickf(at)ontko(dot)com>...
> Kevin-
>
> Looking at the code fragments, there's nothing obviously wrong, but we're
> just seeing pieces. Given that nothing is obvious, I'd suggest it is time to
> just start adding some debug statements to narrow it down...
>
> > a call has been made to the jsp page defined isErrorPage=true with no
> > valid
> > Exception object.
> > exception==null
>
> So apparently an exception is being thrown, but is invalid by the time it
> gets passed to the error page. Perhaps you can debug by catching the
> exception before it gets to the jsp and dumping the stack to System.out so
> you can see what's up in the tomcat stdout log. (Is this in a servlet or a
> jsp?)

i cant trap the exception. if i place the results.first() call in a
try {
}
catch (SQLExcception) {
}
catch (Exception) {
}
it still jumps straight to the error page
>
>
> > the code will jump straight to the error bypassing any code of the
> > form
> > if(rst.first()) {
> > // do something
> > }
>
> I guess the first thing I'd do is something like:
> if (rst == null) System.out.println("rst is null");
> if(rst.first()) {
> // do something
> }
>
will try this. thanks for helping.

kev.

>
> -Nick
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Hahnen, Holger 2003-08-19 09:02:54 Problem Postgres 6.3 and timestamp/date
Previous Message kevin 2003-08-19 08:19:23 Re: odd behaviour of prepared statement