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

JDI: IllegalArgumentException: unable to parse port number in address

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: tbd_major
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      See http://netbeans.org/bugzilla/show_bug.cgi?id=192925

      User specify ARG_HOST as "http://...." and some ARG_PORT
      We in NetBeans call Argument.isValid() on these two arguments and they return true.
      SocketAttachingConnector.attach() concatenates these two arguments forming
      String address = "http://...:<port number>"
      SocketTransportService.attach() then does:
      int splitIndex = address.indexOf(':');
      where it finds the first ":" which is after "http"
      Therefore portStr = "//...:<port number>"
      Then naturally port = Integer.decode(portStr).intValue() throws NumberFormatException and the execution is broken by
      throw new IllegalArgumentException("unable to parse port number in address");

      Argument.isValid() should be improved.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mentlich Martin Entlicher
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: