Обсуждение: null pointer
I am getting a null pointer exception when I issue this command. rs.absolute(1); rs is not null in the debugger and there is a record in the result set. Any ideas? __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
David, I just tried to use absolute(1) and it worked fine? What version of the driver are you using? Can you send a standalone test case that demonstrates the problem Dave -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of David Siebert Sent: Monday, February 11, 2002 1:02 PM To: pgsql-jdbc@postgresql.org Subject: [JDBC] null pointer I am getting a null pointer exception when I issue this command. rs.absolute(1); rs is not null in the debugger and there is a record in the result set. Any ideas? __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
Did try 0 and this is what I get.
Error: java.sql.SQLException: Cannot move to
index of 0
that is why I tried 1.
I will see if I can break out the code to duplicate
the issue.
I think I am using jdbc7.2
--- Dave Cramer <Dave@micro-automation.net> wrote:
> David,
>
> I just tried to use absolute(1) and it worked fine?
>
> What version of the driver are you using?
>
> Can you send a standalone test case that
> demonstrates the problem
>
>
> Dave
>
>
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf
> Of David Siebert
> Sent: Monday, February 11, 2002 1:02 PM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] null pointer
>
>
> I am getting a null pointer exception when I issue
> this command.
> rs.absolute(1);
> rs is not null in the debugger and there is a record
> in the result set.
> Any ideas?
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
> majordomo@postgresql.org
>
>
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com