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

[macos-aarch64] jdk/jshell/ToolBasicTest.java fails with "test ToolBasicTest.testOpenFileOverHttp(): failure"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      The following test failed in the JDK17 CI on macOS-aarch64:

      jdk/jshell/ToolBasicTest.java

      The test failed a total of 60 times in Tier2 with messages that
      look like this:

      test ToolBasicTest.testOpenFileOverHttp(): failure
      java.lang.AssertionError: command output: /o http://<ip_addr>:61380/script.
       expected [] but found [| File 'http://<ip_addr>:61380/script' for '/open' threw exception: java.io.IOException: Server returned HTTP response code: 502 for URL: http://<ip_addr>:61380/script]
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.failNotEquals(Assert.java:496)
      at org.testng.Assert.assertEquals(Assert.java:125)
      at org.testng.Assert.assertEquals(Assert.java:178)
      at ReplToolTesting.assertOutput(ReplToolTesting.java:529)
      at ReplToolTesting.assertCommand(ReplToolTesting.java:511)
      at ReplToolTesting.assertCommand(ReplToolTesting.java:472)
      at ToolBasicTest.lambda$testOpenFileOverHttp$112(ToolBasicTest.java:544)
      at ReplToolTesting$PromptedCommandOutputStream.write(ReplToolTesting.java:824)
      at java.base/java.io.PrintStream.write(PrintStream.java:535)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal.processOutputByte(LineDisciplineTerminal.java:253)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.LineDisciplineTerminal$FilteringOutputStream.write(LineDisciplineTerminal.java:294)
      at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:234)
      at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:313)
      at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:318)
      at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:160)
      at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:248)
      at java.base/java.io.PrintWriter.flush(PrintWriter.java:396)
      at jdk.internal.le/jdk.internal.org.jline.terminal.impl.AbstractTerminal.flush(AbstractTerminal.java:174)
      at jdk.internal.le/jdk.internal.org.jline.utils.Display.update(Display.java:336)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3943)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.redisplay(LineReaderImpl.java:3803)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:626)
      at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:454)
      at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:233)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1270)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1204)
      at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:990)
      at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.run(JShellToolBuilder.java:240)
      at ReplToolTesting.testRawRun(ReplToolTesting.java:313)
      at ReplToolTesting.testRaw(ReplToolTesting.java:296)
      at ReplToolTesting.test(ReplToolTesting.java:249)
      at ReplToolTesting.test(ReplToolTesting.java:233)
      at ReplToolTesting.test(ReplToolTesting.java:229)
      at ReplToolTesting.test(ReplToolTesting.java:225)
      at ToolBasicTest.testOpenFileOverHttp(ToolBasicTest.java:543)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
      at java.base/java.lang.Thread.run(Thread.java:831)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: