ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: core-svc
    • Environment:
    • 11
    • windows_10

      When calling

      java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=$address

      there seems to be a regression regarding the value of address. Most succeed with Java 8, but fail for the same address value for Java 11 and 16.

      There are basically two issues:
      - parsing is bad and inconsistent across versions
      - Output does not correspond to the input.

      Root cause seems to be in https://github.com/AdoptOpenJDK/openjdk-jdk11u/blob/fa3ecefdd6eb14a910ae75b7c0aefb1cf8eedcce/src/jdk.jdi/share/classes/com/sun/tools/jdi/SocketTransportService.java#L218-L239

      HttpComponents Core had the same issue and solved it in https://github.com/apache/httpcomponents-core/pull/279

            Assignee:
            Alex Menkov
            Reporter:
            Robert Scholte
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: