Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1CLh5x69485 for ; Mon, 12 Feb 2001 16:43:05 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f1B70gx41827 for ; Sun, 11 Feb 2001 02:00:42 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f1B6cGU76437 for pgsql-interfaces@postgresql.org; Sun, 11 Feb 2001 01:38:16 -0500 (EST) (envelope-from news) From: Sasha X-Newsgroups: comp.databases.postgresql.interfaces Subject: Problem with JDBC driver: rs.next() is always null Date: Sat, 10 Feb 2001 14:09:44 +0100 Organization: NETTuno Lines: 24 Message-ID: <3A853D98.2070308@iperbole.bologna.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: news@nettuno.it User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18) Gecko/20001107 Netscape6/6.0 X-Accept-Language: en To: pgsql-interfaces@postgresql.org X-Archive-Number: 200102/99 X-Sequence-Number: 1055 Hello there! I'm trying to connect to a postgresql via the JDBC interface as follow: ... Statement st=db.createStatement(); ResultSet rs=st.executeQuery("select datname from pg_database"); while(rs.next()){ out.addItem(rs.getString(1)); } rs.close(); st.close(); .... The JVM throws a nullPointerException. It seems that rs.next() is null even if the result set is not empty. I'm working with Inprise Jbuilder 4 Foundation and Redhat Linux 7.0 (kernel 2.2.16) running on my Athlon 750. If anyone could help me I would appreciate. P.S.:Sorry for my english!