Re: ResultSet got NullPointerException on getMetaData calls

From: "Gaetano Sferra" <gaesferr(at)libero(dot)it>
To: "pgsql-jdbc" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: ResultSet got NullPointerException on getMetaData calls
Date: 2004-12-06 08:47:40
Message-ID: I8ALRG$FF038CFA7C0E2642CC650BD83351E4E4@libero.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,
I'm sorry for my previous post, the NullPointerException is on
getColumnCount() call!

> conn.setAutoCommit(false);
> CallableStatement proc = conn.prepareCall("{ ? = call myfunction() }");
> proc.registerOutParameter(1, Types.OTHER);
> proc.execute();
> ResultSet rs = (ResultSet) proc.getObject(1);
> ResultSetMetaData rsmd = rs.getMetaData(); // <- NullPointerException **WRONG**
int cols = rsdm.getColumnCount(); // <- NullPointerException **THE TRUE ONE**

I'm sorry for mistakes and thank you for support again,
Gaetano Sferra

____________________________________________________________
Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega, senza costi di attivazione.
Abbonati subito su http://www.libero.it

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nicolas Modrzyk 2004-12-06 09:02:52 Question reminder
Previous Message Gaetano Sferra 2004-12-06 08:40:41 ResultSet got NullPointerException on getMetaData calls