NullPointerException in AbstractJdbc2DatabaseMetaData.getUDTs

From: Elizabeth Chatman <elizabeth(dot)a(dot)chatman(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: NullPointerException in AbstractJdbc2DatabaseMetaData.getUDTs
Date: 2014-07-02 20:09:40
Message-ID: 53B46704.7060805@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I am encountering an intermittent NullPointerException when I call
connection.getMetaData().getUDTs(). I traced it to a null key in
TypeInfoCache._pgNameToSQLType, inserted by a previous call to
connection.getMetaData().getTypeInfo(), as a result of a lingering
temporary table.

I attached a basic reproducer. For me it usually fails on the second or
third time through the loop.

I am using the latest driver (9.3-1101-jdbc41), and I get the same
results running against 9.2 and 9.3 servers.

- Elizabeth Chatman

Attachment Content-Type Size
TestGetUDTs.java text/x-java 1.1 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Elizabeth Chatman 2014-07-02 21:03:51 Re: NullPointerException in AbstractJdbc2DatabaseMetaData.getUDTs
Previous Message keshava 2014-07-01 07:43:38 Postgres 9.3 JDBC issue with reading bytes