Re: connectivity problem - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: connectivity problem
Date
Msg-id Pine.LNX.4.33.0401300049420.10418-100000@leary.csoft.net
Whole thread Raw
In response to connectivity problem  (adp adp <adp_group2004@yahoo.co.in>)
List pgsql-jdbc

> and here is the error I receive :
>
> Exception
> The connection attempt failed because Exception:
> java.net.UnknownHostException: localhost
> Stack Trace:
>

Java cannot resolve the IP address for localhost.  This is a general
network configuration problem unrelated to postresql.  Please check your
/etc/hosts file, you should have a line like

127.0.0.1    localhost

in it.  You can test that this is working by trying to ping localhost and
verifying that it correctly resolves.  Another option would be to
explicitly specify the IP address in the connection url.

Kris Jurka



pgsql-jdbc by date:

Previous
From: adp adp
Date:
Subject: connectivity problem
Next
From: "Email User"
Date:
Subject: org.postgresql.core.QueryExecutor.execute not responding (Deadlock ?)