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

From Stephanie Smith
Subject Re: NullPointerException in TypeInfoCache.getSQLType
Date
Msg-id 9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com
Whole thread Raw
In response to NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Responses Re: NullPointerException in TypeInfoCache.getSQLType  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Re: NullPointerException in TypeInfoCache.getSQLType  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
List pgsql-jdbc
Vladimir
I am able to reproduce the NullPointerException with a standalone test.
I have created the following repository with the test case, https://github.com/stephraleigh/postgres-jdbc-npe-rep

Please let me know if you are able to clone and reproduce the NPE.
Thanks
Steph


-----Original Message-----
From: Vladimir Sitnikov [mailto:sitnikov.vladimir@gmail.com] 
Sent: Wednesday, February 17, 2016 9:50 AM
To: Zachary Marshall <Zachary.Marshall@sas.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] NullPointerException in TypeInfoCache.getSQLType

>It will be hard to supply a reproducer since it seems to require lots of concurrent startups

Blind guess would be: a two-threaded test.
Thread 1: create & drop table in a loop
Thread 2: PgDatabaseMetaData.getTypeInfo & clear cache in a loop

>Your explanation seems plausible. I will add the suggested logging

That would be awesome.


Vladimir

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Complicated re-distribution of pgjdbc the "open source way"
Next
From: Vladimir Sitnikov
Date:
Subject: Re: Complicated re-distribution of pgjdbc the "open source way"