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 23427

Summary: Encounter BindException when switching between editors.
Product: obsolete Reporter: Sherry Zhou <sherryzhou>
Component: externaleditorAssignee: issues@obsolete <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: -FFJ-   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Sherry Zhou 2002-05-13 21:50:54 UTC
ide version:  orion rc1

 Seems there's a problem in race condition ...

  . start IDE fresh, with default editor being the
choice.
  . in Explorer, open a file => editor is
NB/built-in
  . close NB/built-in editor window
  . in main, Tools->Setup Wizard, select Gvim
  . in Explorer, open a file => editor is Gvim
  . close Gvim editor window
  . in main, Tools->Setup Wizard, select Xemacs
  . in Explorer, open a file => editor is Xemacs
  . close Xemacs editor window
  . in main, Tools->Setup Wizard, select
NB/built-in
  . in Explorer, open a file => editor is
NB/built-in

  Repeat the above sequence in a variety of orders
and soon enough, the 
  following exception occurs:

     java.net.BindException: Address already in
use
        at
java.net.PlainSocketImpl.socketBind(Native Method)
        at
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:321)
        at
java.net.ServerSocket.bind(ServerSocket.java:308)
        at
java.net.ServerSocket.bind(ServerSocket.java:266)
        at
java.net.ServerSocket.<init>(ServerSocket.java:182)
        at
java.net.ServerSocket.<init>(ServerSocket.java:94)
        at 
org.netbeans.modules.externaleditor.ExtEdConnection$2.run(ExtEdConnection.java:1
13)
        at java.lang.Thread.run(Thread.java:536)

  at which point, the whole IDE session also
freeze!
Comment 1 David Weatherford 2002-05-13 21:56:52 UTC
Accepted.

Freeze is related to issue 23049.
Comment 2 Melih Ovadya 2002-05-13 22:00:15 UTC
It is the duplicate of issue 23049. I am closing this one.

*** This issue has been marked as a duplicate of 23049 ***