This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209168 - java.net.BindException: Address already in use
Summary: java.net.BindException: Address already in use
Status: RESOLVED WONTFIX
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 12:52 UTC by Petr Jiricka
Modified: 2015-04-02 06:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185547


Attachments
stacktrace (1.69 KB, text/plain)
2012-03-05 12:52 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-03-05 12:52:10 UTC
Build: NetBeans IDE Dev (Build 20120305-f13b02435fb7)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.4-b02-402, Java(TM) SE Runtime Environment, 1.6.0_29-b11-402-11D50b
OS: Mac OS X

User Comments:
pjiricka: Starting a second IDE. I am not sure if we need to do something about this problem and what.




Stacktrace: 
java.net.BindException: Address already in use
   at sun.nio.ch.Net.bind(Net.java:0)
   at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
   at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
   at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
   at org.netbeans.modules.web.common.websocket.SocketServer.<init>(SocketServer.java:73)
   at org.netbeans.modules.web.common.websocket.WebSocketServer.<init>(WebSocketServer.java:82)
Comment 1 Petr Jiricka 2012-03-05 12:52:13 UTC
Created attachment 116348 [details]
stacktrace
Comment 2 Denis Anisimov 2012-05-23 15:22:06 UTC
web-main#373444c18104
I've changed the WARNING level to the FINE.
So the exception will not be visible.
Probably we will need to consider choosing free port and find a way to 
use such dynamically chosen port in the browser plugin.
Currently the port is hardcoded and cannot be changed.
Comment 3 David Konecny 2012-05-25 04:25:21 UTC
Let's keep this open as reminder to do something with this.
Comment 4 Quality Engineering 2012-09-03 12:58:03 UTC
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/373444c18104
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#209168 - java.net.BindException: Address already in use .
Comment 5 Tomas Mysik 2013-12-12 06:16:09 UTC
Taking over.
Comment 6 Tomas Mysik 2015-04-02 06:14:57 UTC
Not common use case IMHO, no duplicate for last 2 years so closing. Feel free to reopen.

Thanks.