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

com/sun/net/httpserver/MaxConnections.java fails with java.net.MalformedURLException: Error at index 1 in: "0:0:0:0:0:0:1:41861

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • 22
    • core-libs

    Description

      JDK22 b21 testing IPv6 only configuration

      command: main -Djdk.httpserver.maxConnections=2 MaxConnections
      reason: User specified action: run main/othervm -Djdk.httpserver.maxConnections=2 MaxConnections
      started: Thu Nov 09 09:45:21 ICT 2023
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.httpserver
      finished: Thu Nov 09 09:45:21 ICT 2023
      elapsed time (seconds): 0.565
      ----------configuration:(3/42)----------
      Boot Layer
        add modules: jdk.httpserver

      ----------System.out:(2/75)----------
      Server started at address /[0:0:0:0:0:0:0:1]:41861
      Server manually stopped
      ----------System.err:(20/1213)----------
      java.net.MalformedURLException: Error at index 1 in: "0:0:0:0:0:0:1:41861"
      at java.base/java.net.URL.<init>(URL.java:806)
      at java.base/java.net.URL.<init>(URL.java:654)
      at java.base/java.net.URL.<init>(URL.java:590)
      at MaxConnections.main(MaxConnections.java:61)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)
      Caused by: java.lang.NumberFormatException: Error at index 1 in: "0:0:0:0:0:0:1:41861"
      at java.base/java.lang.NumberFormatException.forCharSequence(NumberFormatException.java:83)
      at java.base/java.lang.Integer.parseInt(Integer.java:663)
      at java.base/java.net.URLStreamHandler.parseURL(URLStreamHandler.java:236)
      at java.base/java.net.URL.<init>(URL.java:801)
      ... 7 more

      JavaTest Message: Test threw exception: java.net.MalformedURLException: Error at index 1 in: "0:0:0:0:0:0:1:41861"
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.net.MalformedURLException: Error at index 1 in: "0:0:0:0:0:0:1:41861"

      Attachments

        Activity

          People

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: