From: Massimo Ferrari <massimo.ferrari@rcfmedia.net>
To: pgsql-jdbc@postgresql.org
Subject: DiverManager.getConnection hangs
Date: Thu, 15 Mar 2007 22:06:02 +0100
Message-ID: <45F9B53A.3010200@rcfmedia.net> (raw)
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);
}
}
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: massimo.ferrari@rcfmedia.net
Subject: Re: DiverManager.getConnection hangs
In-Reply-To: <45F9B53A.3010200@rcfmedia.net>
References: <45F9B53A.3010200@rcfmedia.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox