Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900959

NPE when use jtreg with test root as "."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • jtreg4.1
    • tools
    • None
    • jtreg, version 4.1 dev b09
      jdk 1.8.0-b132

    • b09
    • generic
    • linux

      I tried run test in jdk9-dev/jdk/test with command
      jtreg -v -a . :embedded_compact1
      output :
      /home/cementovoz/work/jdk9/jdk/test/closed/TEST.groups: group jdk_imageio: file not found: closed/com/sun/image
      Error: Unexpected exception occurred! java.lang.NullPointerException
      java.lang.NullPointerException
              at com.sun.javatest.TestResultTable$SortingComparator.compare(TestResultTable.java:1484)
              at com.sun.javatest.TestResultTable$SortingComparator.compare(TestResultTable.java:1474)
              at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
              at java.util.TimSort.sort(TimSort.java:230)
              at java.util.Arrays.sort(Arrays.java:1438)
              at com.sun.javatest.TestResultTable.sortByName(TestResultTable.java:1524)
              at com.sun.javatest.TestResultTable.getIterator(TestResultTable.java:936)
              at com.sun.javatest.TestResultTable.getIterator(TestResultTable.java:899)
              at com.sun.javatest.Harness.createTreeIterator(Harness.java:813)
              at com.sun.javatest.Harness.runTests(Harness.java:662)
              at com.sun.javatest.Harness.batch(Harness.java:395)
              at com.sun.javatest.regtest.Main.batchHarness(Main.java:2040)
              at com.sun.javatest.regtest.Main.run(Main.java:1239)
              at com.sun.javatest.regtest.Main.run(Main.java:1009)
              at com.sun.javatest.regtest.Main.main(Main.java:923)

      but i ran test with command
      jtreg -v -a `pwd` :embedded_compact1
      tests running successfully

      jdk9-dev/ is a clone http://hg.openjdk.java.net/jdk9/dev
      and after run script ./get_source.sh http://closedjdk.us.oracle.com/

            jjg Jonathan Gibbons
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: