Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6898186

Enhance the error handling when the MServer bind failed

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: hs12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      team
    • CPU:
      generic
    • OS:
      generic

      Description

      When trying to start MServer with the default port (1586), since we are using socket to connect between the MServer and all clients, the socket file name is like mserver-1586= and if that file has already been created by some other user, the MServer start will fail with the following exception:

      Exception in thread "main" java.net.BindException: Bind failed
             at sun.isolate.util.UnixMServer.initializeListenFD(Native Method)
             at sun.isolate.util.UnixMServer.initListener(UnixMServer.java:29)
             at sun.isolate.util.MServer.mainLoop(MServer.java:194)
             at sun.isolate.util.UnixMServer.main(UnixMServer.java:15)

      This should be enhanced to prompt the user with correct error message and possible action they should take to solve the problem.

        Attachments

          Activity

            People

            • Assignee:
              xlu Xiaobin Lu (Inactive)
              Reporter:
              xlu Xiaobin Lu (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: