Help with NPE

From: "M(dot) A(dot) Sridhar" <m_a_sridhar(at)yahoo(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Help with NPE
Date: 2002-11-11 02:55:30
Message-ID: 20021111025530.6379.qmail@web40407.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello folks,

I'm getting this NullPointerException from within the PostgreSQL JDBC driver,
and I'm not sure what to make of it:

java.lang.NullPointerException
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:62)
at
org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:497)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:320)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:48)
at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:153)
at
zerocode.udm.PreparedStmtWithSql.executeQuery(PreparedStmtWithSql.java:175)
at zerocode.udm.DbObjectStore._retrieveWithOptSql(DbObjectStore.java:1562)
....

This seems to happen not immediately at application startup, but some time
thereafter. When I first connect to the database, everything is fine, but
after I leave the app idle for a while and use it again, it crashes. This
could well be because there is something in my code base that keeps an open
connection around for a while, but I was hoping for a more informative
message if that were the case (such as "connection expired") instead of an
NPE.

I would greatly appreciate any help on this one.

Thanks.

=====
------
M. A. Sridhar
m_a_sridhar(at)yahoo(dot)com

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Hooker 2002-11-11 15:40:05 Re: Help with NPE
Previous Message Tom Lane 2002-11-10 17:44:45 Re: SQL syntax (column alias)