Re: NullPointerException in TypeInfoCache.getSQLType

Поиск
Список
Период
Сортировка
От Stephanie Smith
Тема Re: NullPointerException in TypeInfoCache.getSQLType
Дата
Msg-id 9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com
обсуждение исходный текст
Ответ на NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Ответы Re: NullPointerException in TypeInfoCache.getSQLType  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Re: NullPointerException in TypeInfoCache.getSQLType  (Vladimir Sitnikov <sitnikov.vladimir@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Complicated re-distribution of pgjdbc the "open source way"
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: Complicated re-distribution of pgjdbc the "open source way"