NullPointerException

From: Marcos <marcos(at)second(dot)ival(dot)es>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: NullPointerException
Date: 2000-08-02 18:22:05
Message-ID: 398866CD.7E0B5A3@second.ival.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

i have a null exception. if i make the query in the posgresql it
runs correctly and none field is empty.

in my servlet:

after the query.

String page = rs.getString(1);

in the database:

ref varchar(5),
numpag varchar(2), <-----
....

jserv.log:

[02/08/2000 18:03:54:890 GMT-01:00] fmbusqueda: Getting: numpag
[02/08/2000 18:03:54:892 GMT-01:00] java.lang.NullPointerException
at postgresql.ResultSet.getString(Compiled Code)
at fmbusqueda.Producto(fmbusqueda.java:113)
at fmbusqueda.doGet(fmbusqueda.java:46)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled
Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

thanks in advance,

marcos
marcos(at)ival(dot)es

Browse pgsql-general by date

  From Date Subject
Next Message Marcos 2000-08-02 18:36:27 NullPointerException [MORE]
Previous Message Martyn Wilson 2000-08-02 17:07:15 image data-types