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

TestZipFile failed with java.lang.AssertionError exception

    XMLWordPrintable

    Details

      Description

      1Testsuite name:Regression
      Test name(s):java/util/zip/ZipFile/TestZipFile.java
      Product(s) tested:jdk9b101(64bit)
      OS/architecture:oel7.1-uek-x64


      Reproducible: Always
      Reproducible on machine:Evergreen-machine
      [If Sometimes] Also reproducible on machine:

      Is it a Regression:
      [If Regression] Regression introduced in release/build:
      Test result on the last GAed release for this train:
      [if Fail] Test result on FCS:

      Is it a platform specific issue:
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:
      [If new configuration testing] Issue specific to execution mode or OS/browser version:

      Steps to reproduce:
      1.Download regression workspace from 9-101-regression.tar.gz /root/regression
      2. Install test bundle jdk-9_linux-x64_bin.tar.gz locate at /root/regression/jdk-9
      3.Install stable jdk-7u45-linux-x64.tar.gz locate at /root/regression/jdk1.7.0_45
      4.Unzip Jtreg jtreg_bin-4.1-fcs-bin-b12.zip to /root/regression
      5. Create the script regression.sh as follows and run it
      export JT_JAVA=/root/regression/jdk1.7.0_45
      /root/regression/jtreg/bin/jtreg -v -m -ignore:quiet -jdk:/root/regression/jdk-9 -r:/root/regression/results/reportDir -w:/root/regression/results/workDir /root/regression/ws/jdk/test/java/util/zip/ZipFile/TestZipFile.java

      Actual behavior:

      1.This case failed automatically and thrown the following exception:Execution failed: `main' threw exception: java.lang.AssertionError

      2.We try run this case as following, the case failed the same issue:
       /root/regression/jdk-9/bin/javac TestZipFile.java
       /root/regression/jdk-9/bin/java TestZipFile


      By the way, For the first time we ran the test case on oel7.1 x64, there is system error in the log:
      ----------System.err:(25/1397)----------
      java.lang.OutOfMemoryError: Java heap space
      at TestZipFile$Zip.writeEntry(TestZipFile.java:335)
      at TestZipFile$Zip.<init>(TestZipFile.java:311)
      at TestZipFile.test(TestZipFile.java:80)
      at TestZipFile.realMain(TestZipFile.java:59)
      at TestZipFile.main(TestZipFile.java:365)
      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.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)
      java.lang.AssertionError: Some tests failed
      at TestZipFile.main(TestZipFile.java:367)
      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.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)

      JavaTest Message: Test threw exception: java.lang.AssertionError: Some tests failed
      JavaTest Message: shutting down test

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sherman Xueming Shen
              Reporter:
              michaelw Michael Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: