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

NullPointerException: Cannot read the array length because "<local9>" is null

    XMLWordPrintable

Details

    • x86_64
    • windows

    Description

      The following test failed to execute in the JDK22 CI:

      jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java

      Here's the .jtr file for the test:

      #Test Results (version 2)
      #Sat Aug 26 16:24:39 UTC 2023
      #-----testdescription-----
      $file=C\:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+13-905\\src.full\\open\\test\\jdk\\jdk\\jfr\\api\\consumer\\streaming\\TestBaseRepositoryAfterStart.java
      $root=C\:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-22+13-905\\src.full\\open\\test\\jdk
      keywords=jfr othervm
      library=/test/lib
      modules=jdk.jfr java.management
      requires=vm.hasJFR
      run=USER_SPECIFIED build jdk.jfr.api.consumer.streaming.Application\r\nUSER_SPECIFIED main/othervm jdk.jfr.api.consumer.streaming.TestBaseRepositoryAfterStart\r\n
      source=TestBaseRepositoryAfterStart.java
      title=Test that it is possible to start a stream against a directory, specified on command, line before the application starts

      #-----environment-----

      #-----testresult-----
      end=Sat Aug 26 16\:24\:39 UTC 2023
      execStatus=Error. Unexpected exception caught from test jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java\: java.lang.NullPointerException\: Cannot read the array length because "<local9>" is null
      sections=script_messages Details

      #section:script_messages
      ----------messages:(0/0)----------

      #section:Details
      ----------messages:(0/0)----------
      ----------Stack trace:(12/1061)----------
      java.lang.NullPointerException: Cannot read the array length because "<local9>" is null
              at com.sun.javatest.regtest.exec.ScratchDirectory.deleteFiles(ScratchDirectory.java:215)
              at com.sun.javatest.regtest.exec.ScratchDirectory.deleteFiles(ScratchDirectory.java:217)
              at com.sun.javatest.regtest.exec.ScratchDirectory.deleteFiles(ScratchDirectory.java:217)
              at com.sun.javatest.regtest.exec.ScratchDirectory.deleteFilesWithRetry(ScratchDirectory.java:173)
              at com.sun.javatest.regtest.exec.ScratchDirectory.deleteFiles(ScratchDirectory.java:153)
              at com.sun.javatest.regtest.exec.ScratchDirectory$SimpleScratchDirectory.retainFiles(ScratchDirectory.java:389)
              at com.sun.javatest.regtest.exec.ScratchDirectory$ThreadSafeScratchDir.retainFiles(ScratchDirectory.java:451)
              at com.sun.javatest.regtest.exec.RegressionScript.run(RegressionScript.java:314)
              at com.sun.javatest.Script.run(Script.java:431)
              at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:183)
              at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:76)
      result: Not run. Test running...


      test result: Error. Unexpected exception caught from test jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java: java.lang.NullPointerException: Cannot read the array length because "<local9>" is null


      The NPE in this test's execution attempt resulted in the following
      confusing log entries:

      [2023-08-26T16:24:32,679Z] --------------------------------------------------
      [2023-08-26T16:24:34,562Z] TEST: jdk/jfr/api/consumer/security/TestStreamingRemote.java
      [2023-08-26T16:24:34,562Z] build: 0.274 seconds
      [2023-08-26T16:24:34,562Z] compile: 0.272 seconds
      [2023-08-26T16:24:34,562Z] main: 6.281 seconds
      [2023-08-26T16:24:34,562Z] TEST RESULT: Passed. Execution successful
      [2023-08-26T16:24:34,562Z] --------------------------------------------------
      [2023-08-26T16:24:39,113Z] TEST: jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java
      [2023-08-26T16:24:42,067Z] TEST: jdk/jfr/api/consumer/streaming/TestChunkGap.java
      [2023-08-26T16:24:42,067Z] build: 0.166 seconds
      [2023-08-26T16:24:42,067Z] compile: 0.162 seconds
      [2023-08-26T16:24:42,067Z] main: 6.964 seconds
      [2023-08-26T16:24:42,067Z] TEST RESULT: Passed. Execution successful
      [2023-08-26T16:24:42,067Z] --------------------------------------------------
      [2023-08-26T16:24:42,068Z] TEST: jdk/jfr/api/consumer/streaming/TestBaseRepositoryBeforeStart.java
      [2023-08-26T16:24:42,068Z] build: 0.478 seconds
      [2023-08-26T16:24:42,068Z] compile: 0.473 seconds
      [2023-08-26T16:24:42,068Z] build: 0.136 seconds
      [2023-08-26T16:24:42,068Z] compile: 0.135 seconds
      [2023-08-26T16:24:42,068Z] main: 9.056 seconds
      [2023-08-26T16:24:42,068Z] TEST RESULT: Passed. Execution successful
      [2023-08-26T16:24:42,068Z] --------------------------------------------------

      Please note the beginning of an entry for:

      TEST: jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java

      and the missing "TEST RESULT:" line for that test.

      It looks like jdk/jfr/api/consumer/streaming/TestBaseRepositoryAfterStart.java
      should have started, but there's no build, compile, or main lines...

      The test summary part of the log file looks like this:

      [2023-08-26T16:40:50,008Z] ==============================
      [2023-08-26T16:40:50,008Z] Test summary
      [2023-08-26T16:40:50,008Z] ==============================
      [2023-08-26T16:40:50,008Z] TEST TOTAL PASS FAIL ERROR
      [2023-08-26T16:40:50,008Z] >> jtreg:open/test/jdk:jdk_svc 1298 1297 0 1 <<
      [2023-08-26T16:40:50,008Z] ==============================
      [2023-08-26T16:40:50,008Z] TEST FAILURE

      Attachments

        Issue Links

          Activity

            People

              jpai Jaikiran Pai
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: