pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephanie Smith <Stephanie.Smith@sas.com>
To: Zachary Marshall <Zachary.Marshall@sas.com>
To: sitnikov.vladimir@gmail.com <sitnikov.vladimir@gmail.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: NullPointerException in TypeInfoCache.getSQLType
Date: Mon, 7 Mar 2016 15:20:16 +0000
Message-ID: <9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com> (raw)
In-Reply-To: <94fb481ffcae4421877449dffb702d4b@MERCMBX42D.na.SAS.com>
References: <1455717036452.5353@sas.com>
	<CAB=Je-FxjjzZ5f7rVZOjvmF9JZPf9Ca=NPCpHpfqmnAVv8++9A@mail.gmail.com>
	<4700e94871ad45c58d816158b1c068bb@MERCMBX35R.na.SAS.com>
	<CAB=Je-FhWvv3umEnB+QwZm=OGYiD-srbCBDknxMip-SAx3CwGA@mail.gmail.com>
	<94fb481ffcae4421877449dffb702d4b@MERCMBX42D.na.SAS.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc


view thread (6+ messages)  latest in thread

Message-ID: <9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com>
Permalink:  ../9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com/
Also on:    postgresql.org/message-id/9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Stephanie.Smith@sas.com, Zachary.Marshall@sas.com, sitnikov.vladimir@gmail.com
  Subject: Re: NullPointerException in TypeInfoCache.getSQLType
  In-Reply-To: <9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com>
  References: <1455717036452.5353@sas.com> <CAB=Je-FxjjzZ5f7rVZOjvmF9JZPf9Ca=NPCpHpfqmnAVv8++9A@mail.gmail.com> <4700e94871ad45c58d816158b1c068bb@MERCMBX35R.na.SAS.com> <CAB=Je-FhWvv3umEnB+QwZm=OGYiD-srbCBDknxMip-SAx3CwGA@mail.gmail.com> <94fb481ffcae4421877449dffb702d4b@MERCMBX42D.na.SAS.com> <9436a36d38164b35ba98a6a11c836068@MERCMBX49R.na.SAS.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox