Re: NullPointerException in TypeInfoCache.getSQLType

From: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
To: Zachary Marshall <Zachary(dot)Marshall(at)sas(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: NullPointerException in TypeInfoCache.getSQLType
Date: 2016-02-17 14:20:06
Message-ID: CAB=Je-FxjjzZ5f7rVZOjvmF9JZPf9Ca=NPCpHpfqmnAVv8++9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Do you have a reproducer?

Can you check if you have types with typname of null?
select * from pg_catalog.pg_type t where t.typname is null

> all are typically creating new schemas

Can it be like:
1) org.postgresql.jdbc.PgDatabaseMetaData#getTypeInfo loads all the type ids
2) as it reaches org.postgresql.jdbc.TypeInfoCache#getPGType(int), the
type is no longer in the DB (e.g. dropped)
?

Can you add logging to TypeInfoCache#getPGType & rebuild & test to log
the actual oid in question?

Vladimir

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Zachary Marshall 2016-02-17 14:24:19 Re: NullPointerException in TypeInfoCache.getSQLType
Previous Message Zachary Marshall 2016-02-17 13:50:35 NullPointerException in TypeInfoCache.getSQLType