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

java/util/zip/CloseInflaterDeflaterTest.java failed with "AssertionError: Expected IOException to be thrown, but nothing was thrown"

XMLWordPrintable

    • b18
    • x86_64
    • os_x
    • Verified

        The following test failed in the JDK19 CI:

        java/util/zip/CloseInflaterDeflaterTest.java

        Here's a snippet from the log file:

        #section:testng
        ----------messages:(5/168)----------
        command: testng CloseInflaterDeflaterTest
        reason: User specified action: run testng CloseInflaterDeflaterTest
        Mode: agentvm
        Agent id: 20
        elapsed time (seconds): 0.061
        ----------configuration:(14/1717)----------
        Boot Layer
          class path: /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/javatest.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jtreg.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/junit.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/hamcrest.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/testng.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/jcommander.jar
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/6.1/1/bundles/jtreg-6.1+1.zip/jtreg/lib/guice.jar
          patch: java.base /System/Volumes/Data/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S14356/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/10d2064b-4c41-479d-87f6-0fe873bd625d/runs/4ddd5298-2434-4db2-a21b-e8e66a84b02a/testoutput/test-support/jtreg_open_test_jdk_tier1_part2/patches/java.base

        Test Layer
          class path: /System/Volumes/Data/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S14356/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/10d2064b-4c41-479d-87f6-0fe873bd625d/runs/4ddd5298-2434-4db2-a21b-e8e66a84b02a/testoutput/test-support/jtreg_open_test_jdk_tier1_part2/classes/4/java/util/zip/CloseInflaterDeflaterTest.d
                      /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+18-1200/src.full/open/test/jdk/java/util/zip

        ----------rerun:(29/5386)*----------

        <snip>

        ----------System.out:(80/5371)----------
        config CloseInflaterDeflaterTest.before_test(): success
        test CloseInflaterDeflaterTest.testDeflaterInputStream(): success
        test CloseInflaterDeflaterTest.testDeflaterOutputStream(true): success
        test CloseInflaterDeflaterTest.testDeflaterOutputStream(false): success
        test CloseInflaterDeflaterTest.testGZip(true): success
        test CloseInflaterDeflaterTest.testGZip(false): success
        test CloseInflaterDeflaterTest.testInflaterOutputStream(true): failure
        java.lang.AssertionError: Expected IOException to be thrown, but nothing was thrown
        at org.testng.Assert.expectThrows(Assert.java:1730)
        at org.testng.Assert.assertThrows(Assert.java:1695)
        at CloseInflaterDeflaterTest.testInflaterOutputStream(CloseInflaterDeflaterTest.java:181)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
        at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
        at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
        at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
        at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at org.testng.TestRunner.privateRun(TestRunner.java:764)
        at org.testng.TestRunner.run(TestRunner.java:585)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
        at org.testng.SuiteRunner.run(SuiteRunner.java:286)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.runSuites(TestNG.java:1069)
        at org.testng.TestNG.run(TestNG.java:1037)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:828)
        test CloseInflaterDeflaterTest.testInflaterOutputStream(false): failure
        java.lang.AssertionError: Expected IOException to be thrown, but nothing was thrown
        at org.testng.Assert.expectThrows(Assert.java:1730)
        at org.testng.Assert.assertThrows(Assert.java:1695)
        at CloseInflaterDeflaterTest.testInflaterOutputStream(CloseInflaterDeflaterTest.java:181)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
        at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
        at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
        at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
        at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
        at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at org.testng.TestRunner.privateRun(TestRunner.java:764)
        at org.testng.TestRunner.run(TestRunner.java:585)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
        at org.testng.SuiteRunner.run(SuiteRunner.java:286)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
        at org.testng.TestNG.runSuites(TestNG.java:1069)
        at org.testng.TestNG.run(TestNG.java:1037)
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:828)
        test CloseInflaterDeflaterTest.testZipCloseEntry(java.util.jar.JarOutputStream@54a87a): success
        test CloseInflaterDeflaterTest.testZipCloseEntry(java.util.zip.ZipOutputStream@707b45f0): success

        ===============================================
        java/util/zip/CloseInflaterDeflaterTest.java
        Total tests run: 9, Passes: 7, Failures: 2, Skips: 0
        ===============================================

        ----------System.err:(10/527)----------
        java.lang.Exception: failures: 2
        at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:96)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:828)

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 2

              rreddy Ravi Reddy
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: