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

JShell tests: jdk/jshell/ToolReloadTest.java failed with java.lang.AssertionError: Repl tool died with exception

XMLWordPrintable

    • x86_64
    • windows

      This failure has been observed failing frequently only on Windows X64 platforms.

      Frequency "Failed 6 times in the last 30 runs. Stability: 80 %"
      There was an issue JDK-8149046 for this test. But it is quite different error message. This looks to be a new issue.

      Please refer to the following error:
      java.lang.AssertionError: Repl tool died with exception
      at org.testng.Assert.fail(Assert.java:83)
      at ReplToolTesting.testRaw(ReplToolTesting.java:242)
      at ReplToolTesting.test(ReplToolTesting.java:203)
      at ReplToolTesting.test(ReplToolTesting.java:191)
      at ToolReloadTest.testReloadRepeat(ToolReloadTest.java:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      at org.testng.TestNG.run(TestNG.java:1057)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:163)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
      at java.lang.Thread.run(Thread.java:804)
      Caused by: java.util.NoSuchElementException
      at java.util.LinkedList.removeLast(LinkedList.java:287)
      at jdk.internal.jline.console.history.MemoryHistory.replace(MemoryHistory.java:138)
      at jdk.internal.jshell.tool.EditingHistory.fullHistoryReplace(EditingHistory.java:346)
      at jdk.internal.jshell.tool.ConsoleIOContext.replaceLastHistoryEntry(ConsoleIOContext.java:308)
      at jdk.internal.jshell.tool.JShellTool.rerunSnippet(JShellTool.java:1827)
      at jdk.internal.jshell.tool.JShellTool.cmdUseHistoryEntry(JShellTool.java:1806)
      at jdk.internal.jshell.tool.JShellTool.lambda$new$41(JShellTool.java:1068)
      at jdk.internal.jshell.tool.JShellTool.processCommand(JShellTool.java:689)
      at jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:631)
      at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:428)
      at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:401)
      at ReplToolTesting.testRaw(ReplToolTesting.java:240)
      ... 31 more
      test ToolReloadTest.testReloadResetRestore(): success
      test ToolReloadTest.testReloadSnippets(): success

            jlahoda Jan Lahoda
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: