Re: JDBC Connection Errors

From: Ian Pilcher <arequipeno(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: JDBC Connection Errors
Date: 2011-08-28 16:23:56
Message-ID: j3dq2t$gf2$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com
"If you're going to shift my paradigm ... at least buy me dinner first."
========================================================================

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2011-08-28 17:09:41 Re: Using Postgresql as application server
Previous Message Merlin Moncure 2011-08-28 15:13:52 Re: Using Postgresql as application server