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

java/net/httpclient/Http1ChunkedTest.java fails with java.util.MissingFormatArgumentException: Format specifier '%s'

XMLWordPrintable

    • b17
    • x86_64
    • windows

        ----------messages:(7/696)----------
        command: main Http1ChunkedTest
        reason: User specified action: run main/othervm Http1ChunkedTest
        started: Tue Apr 09 15:57:13 UTC 2024
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base,java.net.http,java.logging,jdk.httpserver --add-exports java.base/sun.net.www.http=ALL-UNNAMED --add-exports java.base/sun.net.www=ALL-UNNAMED --add-exports java.base/sun.net=ALL-UNNAMED --add-exports java.net.http/jdk.internal.net.http.common=ALL-UNNAMED --add-exports java.net.http/jdk.internal.net.http.frame=ALL-UNNAMED --add-exports java.net.http/jdk.internal.net.http.hpack=ALL-UNNAMED
        finished: Tue Apr 09 15:57:14 UTC 2024
        elapsed time (seconds): 1.025
        ----------configuration:(9/509)----------
        Boot Layer
          add modules: java.base java.net.http java.logging jdk.httpserver
          add exports: java.base/sun.net ALL-UNNAMED
                       java.base/sun.net.www ALL-UNNAMED
                       java.base/sun.net.www.http ALL-UNNAMED
                       java.net.http/jdk.internal.net.http.common ALL-UNNAMED
                       java.net.http/jdk.internal.net.http.frame ALL-UNNAMED
                       java.net.http/jdk.internal.net.http.hpack ALL-UNNAMED

        ----------System.out:(2/76)----------
        REQ0: http://127.0.0.1:58981/testChunkExt/REQ0
        REQ0: Recieving request...
        ----------System.err:(16/992)----------
        java.util.MissingFormatArgumentException: Format specifier '%s'
        at java.base/java.util.Formatter.format(Formatter.java:2801)
        at java.base/java.io.PrintStream.implFormat(PrintStream.java:1371)
        at java.base/java.io.PrintStream.format(PrintStream.java:1350)
        at java.base/java.io.PrintStream.printf(PrintStream.java:1249)
        at Http1ChunkedTest.test(Http1ChunkedTest.java:100)
        at Http1ChunkedTest.main(Http1ChunkedTest.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:1575)

        JavaTest Message: Test threw exception: java.util.MissingFormatArgumentException: Format specifier '%s'
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.util.MissingFormatArgumentException: Format specifier '%s'

        99: if (!received) {
        100: System.out.printf("%s: Unexpected headers received: dropping request.%n");
        101: continue;
        102: }

        should be
        System.out.printf("%s: Unexpected headers received: dropping request.%n", name);

        BUT could be viewed as javac issue i.e. missing args detected as compile time, same as with C compiler

              ssachkov Serhiy Sachkov
              msheppar Mark Sheppard
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: