Re: DiverManager.getConnection hangs

Поиск
Список
Период
Сортировка
От Massimo Ferrari
Тема Re: DiverManager.getConnection hangs
Дата
Msg-id 45F9C2E4.7040800@rcfmedia.net
обсуждение исходный текст
Ответ на DiverManager.getConnection hangs  (Massimo Ferrari <massimo.ferrari@rcfmedia.net>)
Ответы Re: DiverManager.getConnection hangs  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Mhhh it was a firewall issue!

Just a pity that even if I turned the driver's loggin on, there was no
message.

Best,

Massimo


Massimo Ferrari wrote:
> 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);
>   }
> }
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Massimo Ferrari
Дата:
Сообщение: DiverManager.getConnection hangs
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: DiverManager.getConnection hangs