Address already in use ERROR
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Pesola
Posted On:   Thursday, December 5, 2002 10:03 PM

I'm receiving an address in use error while attempting to access a servlet in Tomcat 4.1. Is there a way to determine what address and port are trying to be accessed if the stack trace does not provide that information? Any suggestions for tracking this down? I am running the JDK 1.4 under Windows XP. Here is a partial stack trace: org.apache.commons.dbcp.DbcpException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect Stack Trace: 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.P   More>>

I'm receiving an address in use error while attempting to access a servlet in Tomcat 4.1. Is there a way to determine what address and port are trying to be accessed if the stack trace does not provide that information? Any suggestions for tracking this down?

I am running the JDK 1.4 under Windows XP.

Here is a partial stack trace:


			
org.apache.commons.dbcp.DbcpException: The connection attempt failed because Exception: java.net.BindException: Address already in use: connect
Stack Trace:

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.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.postgresql.PG_Stream.(Unknown Source)
at org.postgresql.Connection.openConnection(Unknown Source)
at org.postgresql.Driver.connect(Unknown Source)
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)
at listMakers.doGet(listMakers.java:68)
.......
.......


Any help is very much appreciated!!!!

Thanks!!!!

michaelp

   <<Less

Re: Address already in use ERROR

Posted By:   AlessandroA_Garbagnati  
Posted On:   Friday, December 6, 2002 05:39 AM

Hi,

Check the answer to the other question: http://www.jguru.com/forums/view.jsp?EID=1034311.
About | Sitemap | Contact