DiverManager.getConnection hangs

From: Massimo Ferrari <massimo(dot)ferrari(at)rcfmedia(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: DiverManager.getConnection hangs
Date: 2007-03-15 21:06:02
Message-ID: 45F9B53A.3010200@rcfmedia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hello,

I have a problem on my Debian 31 box with PostgreSQL 8.1.
This code hangs on DriverManager.getConnection
No log message, nothing.

Any help appreciated!

Thank you

public class Test {
public static void main(String[] args)
throws Exception
{
Properties p = new Properties();
p.setProperty("user", "1234");
p.setProperty("password", "5678");
p.setProperty("loglevel", "org.postgresql.Driver.DEBUG");
Class.forName("org.postgresql.Driver").newInstance();
Connection conn =
DriverManager.getConnection("jdbc:postgresql://localhost:5432/dev", p);
}
}

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Massimo Ferrari 2007-03-15 22:04:20 Re: DiverManager.getConnection hangs
Previous Message Dave Cramer 2007-03-15 00:52:46 Re: Starting 8.2.3 at boot under OpenSUSE 10.1