Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Windows 7 Address already in use: JVM_Bind

Posted on 2012-08-23
4
Medium Priority
?
1,630 Views
Last Modified: 2012-09-26
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
Comment
Question by:frederic_meunier
2 Comments
 
LVL 15

Expert Comment

by:DonConsolio
ID: 38327159
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
 

Accepted Solution

by:
frederic_meunier earned 0 total points
ID: 38336415
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question