• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1829
  • Last Modified:

Windows 7 Address already in use: JVM_Bind

On a windows 7 platform with cygwin, I try to launch activemq which, in my case, use port 61619.
From time to time, an exception is thrown :
Caused by: java.io.IOException: Failed to bind to server socket: tcp://127.0.0.1:61619 due to: java.net.BindException: Address already in use: JVM_Bind
When this exception is thrown, I use netstat -ao: there is no process listening to port 61619.

If I change my activemq conf in order to use another port (for instance 64000), it works fine.

Is it possible to have this exception even if netstat -ao doesn't list any process listening to this port?

Is it possible that a process reserves a range of ports, and if true, how to know which process and what range?
0
frederic_meunier
Asked:
frederic_meunier
1 Solution
 
DonConsolioCommented:
A server can only register a single TCP port.

Use Sysinternals TCPView (http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx) for more infos.
0
 
frederic_meunierAuthor Commented:
Thank you.

With TCPView my problem remains: there is no process listening to port 61619, and I still have
"Failed to bind to server socket: tcp://127.0.0.1:61619 due to: java.net.BindException: Address already in use: JVM_Bind."

So I changed the port from 61619 to 64000, and will keep this "solution" until next JVM_Bind exception...

Thank you again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now