| From: | Stephanie Smith <Stephanie(dot)Smith(at)sas(dot)com> |
|---|---|
| To: | Zachary Marshall <Zachary(dot)Marshall(at)sas(dot)com>, "sitnikov(dot)vladimir(at)gmail(dot)com" <sitnikov(dot)vladimir(at)gmail(dot)com> |
| Cc: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
| Subject: | Re: NullPointerException in TypeInfoCache.getSQLType |
| Date: | 2016-03-07 15:20:16 |
| Message-ID: | 9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(dot)vladimir(at)gmail(dot)com]
Sent: Wednesday, February 17, 2016 9:50 AM
To: Zachary Marshall <Zachary(dot)Marshall(at)sas(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Vladimir Sitnikov | 2016-03-07 15:31:41 | Re: Complicated re-distribution of pgjdbc the "open source way" |
| Previous Message | Dave Cramer | 2016-03-07 15:18:40 | Re: Complicated re-distribution of pgjdbc the "open source way" |