By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,738 Members | 2,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,738 IT Pros & Developers. It's quick & easy.

Urgent Help needed on error

P: n/a
I keep getting this error when running my Java Apps on Resin.

java.net.SocketException: Can't assign requested address

Does anyone know what is the cause? I have tried checking if the IP address
and port has been used...they are all free.

Resin running on HP UX.

TIA
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ronald,

"Ronald Tan" <su*****@pacific.net.sg> wrote in message
news:bn**********@nobel.pacific.net.sg...

I keep getting this error when running my Java Apps on
Resin.

java.net.SocketException: Can't assign requested address

Does anyone know what is the cause? I have tried checking
if the IP address and port has been used...they are all free.

Resin running on HP UX.


Can't advise on Resin or HP UX-related matters.

However, in Java terms, it sounds like a BindErrorException [a subclass of
SocketException which is, in turn, a subclass of IOException] is occuring.
One place this can be seen is where attempts to create sockets in which both
remote and local host details are specified:

... = new Socket(remoteAddr, remotePort, localAddr, localPort);

and the 'localAddr' argument contains an invalid / non-existent local IP
address.

Without looking at code, or the specifics of the problem, there's little
more that can be said.

I hope this helps.

Anthony Borla
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.