Re: Strange exception opening JDBC connection

From: Barry Lind <blind(at)xythos(dot)com>
To: Kevin Schmidt <kevin(dot)schmidt(at)enterworks(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Strange exception opening JDBC connection
Date: 2003-07-08 17:01:46
Message-ID: 3F0AF8FA.2090207@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kevin,

I can't explain what you are seeing. The driver does not listen on any
port.

--Barry

Kevin Schmidt wrote:
> Hi,
>
> I am getting a strange exception when opening a JDBC connection.
> Specifically it is:
>
> java.net.BindException: Address already in use: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
> at java.net.Socket.connect(Socket.java:425)
> at java.net.Socket.connect(Socket.java:375)
> at java.net.Socket.<init>(Socket.java:290)
> at java.net.Socket.<init>(Socket.java:118)
> at org.postgresql.PG_Stream.<init>(PG_Stream.java:38)
> at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:154)
>
> at org.postgresql.Driver.connect(Driver.java:120)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
>
> Connections prior to this one have worked fine so the server is up and
> running, and it seems strange that an address already in use would
> happen when a client connection is made. Any ideas what is going on?
> Does the JDBC driver try to listen on a port?
>
> Thanks,
>
> Kevin
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kim Ho 2003-07-08 17:06:49 Re: Add casts & related fixes
Previous Message Kevin Schroeder 2003-07-08 17:00:37 Inserting large queries