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 2755 - Launching multiple NB gives bind exception.
Summary: Launching multiple NB gives bind exception.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Janne Leppanen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-07-26 19:10 UTC by Janne Leppanen
Modified: 2008-12-23 10:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janne Leppanen 1999-07-26 19:10:10 UTC
[IAN] As this is rather a hardcore feature, I would not notify the user with message box. Rather a console message.

[JST] It is openfile problem. It cannot bind on different port, the external application would not find it. So Ian`s suggestion is not usable. What it should do?

[IAN] A dialog should be displayed saying that the port is in use and allow to enter different port number to start the HTTP server on


-- System info ----------------------------------------------------------------
  Product Version    = NetBeans Developer (Gandalf), Build 358
  IDE Versioning     = IDE/1 spec=0.95 impl=Build 358
  Operating System   = Windows NT Version 4.0 Running on x86
  Java Version       = 1.2
  Java VM Version    = Classic VM 1.2
  Java Vendor        = Sun Microsystems Inc.
  Java Vendor URL    = http://java.sun.com/
  Java Home          = S:/Software/jdk12/jre
  Java Class Version = 46.0
  JIT                = NONE
  Home Dir           = C:/WINNT/Profiles/jleppanen
  Current Directory  = C:/Development
  NetBeans Home      = .
  NetBeans User Home = .
  System Directory   = ./system
  CLASSPATH          = ./lib;./lib/developer.jar;./lib/openide.jar;./lib/xml4j.j
ar;S:/Software/jdk12/jre/lib/i18n.jar;S:/Software/jdk12/lib/tools.jar;S:/Softwar
e/jdk12/lib/dt.jar
-------------------------------------------------------------------------------
java.net.BindException: Address in use: Cannot bind
        at java.net.PlainDatagramSocketImpl.bind(Native Method)

        at java.net.DatagramSocket.create(DatagramSocket.java:168)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:144)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:116)
        at com.netbeans.developer.modules.openfile.Server.initSocket(Server.java
:83)
        at com.netbeans.developer.modules.openfile.Server.server(Server.java:89)

        at com.netbeans.developer.modules.openfile.Server.run(Server.java:62)
Comment 1 Marek Grummich 2000-07-25 09:42:59 UTC
Priority is changed to P4 (normal).