From: | Matt Magoffin <matt(at)msqr(dot)us> |
---|---|
To: | |
Cc: | pgsql-jdbc(at)postgresql(dot)org, pgsql-cygwin(at)postgresql(dot)org |
Subject: | Re: [JDBC] JDBC java.net.BindException connecting to Postgres 7.4 |
Date: | 2003-12-25 01:14:30 |
Message-ID: | 3FEA39F6.8090602@msqr.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin pgsql-jdbc |
One other piece of the puzzle is that when I don't connect via the
Tomcat DataSource, i.e. I use the DriverManager, the connection works!
-- m@
Matt Magoffin wrote:
> java.net.BindException: Address already in use: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:426)
> at java.net.Socket.connect(Socket.java:376)
> at java.net.Socket.<init>(Socket.java:291)
> at java.net.Socket.<init>(Socket.java:119)
> at org.postgresql.core.PGStream.<init>(PGStream.java:47)
> at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:197)
>
> at org.postgresql.Driver.connect(Driver.java:139)
> at
> org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:83)
>
> at
> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
>
> at
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown
> Source)
> at
> org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)
>
> at
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)
>
> at
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
>
> [snip]
From | Date | Subject | |
---|---|---|---|
Next Message | Muhyiddin A.M Hayat | 2003-12-25 07:23:50 | Windows XP Pro Run As Service |
Previous Message | Matt Magoffin | 2003-12-24 23:32:29 | JDBC java.net.BindException connecting to Postgres 7.4 running on Cygwin Win2K |
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Thomas | 2003-12-25 10:37:24 | Re: JDBC java.net.BindException connecting to Postgres 7.4 running on Cygwin Win2K |
Previous Message | Matt Magoffin | 2003-12-24 23:32:29 | JDBC java.net.BindException connecting to Postgres 7.4 running on Cygwin Win2K |