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

ToolBasicTest fails to access HTTP server it starts

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • CPU:
      aarch64
    • OS:
      os_x

      Backports

        Description

        Testing https://github.com/openjdk/jdk/pull/2200 reveals this failure in jdk/jshell/ToolBasicTest.java:

        ----------System.err:(213/15736)----------
        /System/Volumes/Data/mesos/work_dir/slaves/28992c6d-c35d-42fa-8099-898223bf183b-S10499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8f4099ce-c667-4314-acdc-992ea5b3e30e/runs/605b7012-61dc-4fc5-bc67-c87d0e9c541a/testoutput/test-support/jtreg_open_test_langtools_tier2/classes/3/jdk/jshell/ToolBasicTest.d/testClasspathJar/test.jar(/pkg/A.java):1: error: unmappable character (0xC2) for encoding US-ASCII
        package pkg; /** ?? */public class A { public String toString() { return "A"; } }
                         ^
        /System/Volumes/Data/mesos/work_dir/slaves/28992c6d-c35d-42fa-8099-898223bf183b-S10499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8f4099ce-c667-4314-acdc-992ea5b3e30e/runs/605b7012-61dc-4fc5-bc67-c87d0e9c541a/testoutput/test-support/jtreg_open_test_langtools_tier2/classes/3/jdk/jshell/ToolBasicTest.d/testClasspathJar/test.jar(/pkg/A.java):1: error: unmappable character (0x86) for encoding US-ASCII
        package pkg; /** ?? */public class A { public String toString() { return "A"; } }
                          ^
        /System/Volumes/Data/mesos/work_dir/slaves/28992c6d-c35d-42fa-8099-898223bf183b-S10499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8f4099ce-c667-4314-acdc-992ea5b3e30e/runs/605b7012-61dc-4fc5-bc67-c87d0e9c541a/testoutput/test-support/jtreg_open_test_langtools_tier2/classes/3/jdk/jshell/ToolBasicTest.d/testClasspathJar/test.jar(/pkg/A.java):1: error: unmappable character (0xC2) for encoding US-ASCII
        package pkg; /** ?? */public class A { public String toString() { return "A"; } }
                         ^
        /System/Volumes/Data/mesos/work_dir/slaves/28992c6d-c35d-42fa-8099-898223bf183b-S10499/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8f4099ce-c667-4314-acdc-992ea5b3e30e/runs/605b7012-61dc-4fc5-bc67-c87d0e9c541a/testoutput/test-support/jtreg_open_test_langtools_tier2/classes/3/jdk/jshell/ToolBasicTest.d/testClasspathJar/test.jar(/pkg/A.java):1: error: unmappable character (0x86) for encoding US-ASCII
        package pkg; /** ?? */public class A { public String toString() { return "A"; } }
                          ^
        java.io.EOFException
        at java.base/java.io.DataInputStream.readInt(DataInputStream.java:398)
        at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3398)
        at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1114)
        at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.readAndReportExecutionResult(StreamingExecutionControl.java:277)
        at jdk.jshell/jdk.jshell.execution.StreamingExecutionControl.invoke(StreamingExecutionControl.java:99)
        at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.invoke(JdiDefaultExecutionControl.java:160)
        at jdk.jshell/jdk.jshell.Eval.declare(Eval.java:943)
        at jdk.jshell/jdk.jshell.Eval.eval(Eval.java:139)
        at jdk.jshell/jdk.jshell.JShell.eval(JShell.java:493)
        at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3609)
        at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1330)
        at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1228)
        at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1201)
        at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:991)
        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.testRemoteExit(ToolBasicTest.java:680)
        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:566)
        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:566)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:831)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                gziemski Gerard Ziemski
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: