Re: JDBC connectivity issue

From: JCMS22 <jeanlavoie22(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC connectivity issue
Date: 2018-03-23 14:10:05
Message-ID: 1521814205619-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am surprised this was not answered correct yet.

I am in the same bucket as you and here is the problem. A quick look at the
code and you find the answer.

The BaseDataSource class (from which PGSimpleDataSource inherits) does NOT
support failover addresses. The underlying driver used to parse the URL does
it correctly: it returns url1,url2,url3 for URL and port1,port2,port3 for
ports. However, the datasource interprets this as a single address so it
tries to convert the "port1,port2,port3" string to an Integer....and it
crashes.

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message JCMS22 2018-03-23 14:24:28 Re: JDBC connectivity issue
Previous Message Patricia DECHANDOL 2018-03-23 13:59:59 RE: Use pgloader with FDW