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 10943 - "address already in use" exception during socketBind on multiuser system
Summary: "address already in use" exception during socketBind on multiuser system
Status: VERIFIED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 3.x
Hardware: Other OpenVMS
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
: 8640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-02 14:15 UTC by mgarrison
Modified: 2009-11-07 13:34 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
patch for the unnecessary socket bind exception warning to the user (2.11 KB, patch)
2001-07-20 20:37 UTC, Isao Yanagimachi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mgarrison 2001-04-02 14:15:40 UTC
On OpenVMS, we often have at least 2 people running NetBeans on the same
machine at the same time.  The users  who are not the first to start
NetBeans always get at least one exception while binding a socket for the
HTTP server.  I assume the same thing would happen on any system where more 
than one copy of NetBeans was running concurrently.

It seems to loop, looking for a socket port that is free, starting at
8082...can the "address already in use exception" be silently ignored?

I have reproduced this on other platforms (well, W2K) by just starting multiple 
copies of NetBeans.

Meg

Here's the exception:

java.net.BindException: address already in use
        at java.net.PlainSocketImpl.socketBind
        at java.net.PlainSocketImpl.bind (PlainSocketImpl.java:397) (pc 3)
        at java.net.ServerSocket.<init>(int,int,java.net.InetAddress)
(ServerSocket.java:170) (pc 79)
        at java.net.ServerSocket.<init>(int,int) (ServerSocket.java:121) (pc 4)
        at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(int,int
) (DefaultServerSocketFactory.java:97) (pc 6)
        at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint
(PoolTcpEndpoint.java:239) (pc 41)
        at org.apache.tomcat.service.PoolTcpConnector.start
(PoolTcpConnector.java:188) (pc 281)
        at org.apache.tomcat.core.ContextManager.start
(ContextManager.java:527) (pc 17)
        at org.netbeans.modules.httpserver.HttpServerModule$1.run
(HttpServerModule.java:106) (pc 10)
Comment 1 Isao Yanagimachi 2001-04-09 20:55:01 UTC
I am attaching the patch. With the patch, NetBeans will not display the socket 
bind exception to the user, but will log it into the ide.log file.

Isao Yanagimachi
Compaq Computer Corporation
Comment 2 Isao Yanagimachi 2001-04-09 20:57:46 UTC
Created attachment 1055 [details]
patch for the unnecessary socket bind exception warning to the user
Comment 3 _ rkubacki 2001-04-19 13:11:06 UTC
applied to main trunk and nb3.2
Comment 4 Jan Chalupa 2001-05-05 22:35:57 UTC
Target milestone -> 3.2
Comment 5 _ rkubacki 2001-05-16 07:49:41 UTC
*** Issue 8640 has been marked as a duplicate of this issue. ***