Re: JDBC Connection Errors - Mailing list pgsql-general

From Ian Pilcher
Subject Re: JDBC Connection Errors
Date
Msg-id j3dq2t$gf2$1@dough.gmane.org
Whole thread Raw
In response to Re: JDBC Connection Errors  (Craig Ringer <ringerc@ringerc.id.au>)
List pgsql-general
On 08/28/2011 08:33 AM, Craig Ringer wrote:
>> A client is hitting an issue with JDBC:
>> org.postgresql.util.PSQLException: Connection refused. Check that the
>> hostname and port are correct and that the postmaster is accepting
>> TCP/IP connections.
>>
>> -pg_hba.conf is set to trust 0.0.0.0/0 (IPv4 only)

Does it work with -Djava.net.preferIPv4Stack=true is specified on the
client command line (or if the property is otherwise set)?  If so, the
problem is that many JVMs default to using IPv6 if available.

--
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."
========================================================================

pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: JDBC Connection Errors
Next
From: Adrian Klaver
Date:
Subject: Re: Problem importing a csv file