Re: NullPointerException in TypeInfoCache.getSQLType - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject Re: NullPointerException in TypeInfoCache.getSQLType
Date
Msg-id CAB=Je-FxjjzZ5f7rVZOjvmF9JZPf9Ca=NPCpHpfqmnAVv8++9A@mail.gmail.com
Whole thread Raw
In response to NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Responses Re: NullPointerException in TypeInfoCache.getSQLType
Re: NullPointerException in TypeInfoCache.getSQLType
List 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


pgsql-jdbc by date:

Previous
From: Zachary Marshall
Date:
Subject: NullPointerException in TypeInfoCache.getSQLType
Next
From: Vladimir Sitnikov
Date:
Subject: Re: NullPointerException in TypeInfoCache.getSQLType