From: Clemens Eisserer <linuxhippy@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: NullPointerException when calling ResultSet.absolute(int)
Date: Sun, 28 Aug 2005 19:01:53 +0200
Message-ID: <194f625505082810015456609c@mail.gmail.com> (raw)
Hi there!
I've installed PostgreSQL-7.4 on my system and I am really impressed
about the features and stability PostgreSQL provides. Its an excellent
piece of software!
However I've written a Swing-Table which displays data directly from a
ResultSet, and this works great if I select all rows, but when doing a
more specific search I get a NullPointerException:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.absolute(AbstractJdbc2ResultSet.java:184)
at CATableModel.getValueAt(CATableModel.java:88)
at javax.swing.JTable.getValueAt(JTable.java:1852)
Any ideas what could be the cause?
Thank you in advance, lg Clemens
btw. is there a more intelligent way to find out how many lines have
been selected than starting two queries where the one query just
queries the row-count?
I did not find any better solution, but for complex queries this is
really inefficient :-(
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: linuxhippy@gmail.com
Subject: Re: NullPointerException when calling ResultSet.absolute(int)
In-Reply-To: <194f625505082810015456609c@mail.gmail.com>
References: <194f625505082810015456609c@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox