Re: Strange exception opening JDBC connection - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: Strange exception opening JDBC connection
Date
Msg-id 3F0AF8FA.2090207@xythos.com
Whole thread Raw
In response to Strange exception opening JDBC connection  (Kevin Schmidt <kevin.schmidt@enterworks.com>)
List 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
>



pgsql-jdbc by date:

Previous
From: "Kevin Schroeder"
Date:
Subject: Inserting large queries
Next
From: Kim Ho
Date:
Subject: Re: Add casts & related fixes