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

JVMTI hs204t001/hs204t001.java fails with 'Cannot invoke "java.util.concurrent.atomic.AtomicBoolean.get()" because "nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001R.run" is null'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 20
    • hotspot
    • x86_64
    • windows

    Description

      The following test failed in the JDK20 CI:

      vmTestbase/nsk/jvmti/scenarios/hotswap/HS204/hs204t001/hs204t001.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/435)----------
      command: main -agentlib:hs204t001=pathToNewByteCode=./bin,-waittime=5,package=nsk,samples=100,mode=compiled nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001
      reason: User specified action: run main/othervm/native -agentlib:hs204t001=pathToNewByteCode=./bin,-waittime=5,package=nsk,samples=100,mode=compiled nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 0.631
      ----------configuration:(0/0)----------
      ----------System.out:(11/388)----------
      ... timeout.. 10
      .. Path ./bin
       Testing started..
      # info :: File = ./bin/newclass00/nsk/jvmti/scenarios/hotswap/HS204/hs204t001/hs204t001R.class
      # info **Agent:: opening file ./bin/newclass00/nsk/jvmti/scenarios/hotswap/HS204/hs204t001/hs204t001R.class
      # info file size= 1120
       File red completely
      hs204t001R
       started running thread..
      ... Inside doThisThread..
       State..4440
      ----------System.err:(7/738)----------
      java version "20-ea" 2023-03-21
      Java(TM) SE Runtime Environment (fastdebug build 20-ea+4-137)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 20-ea+4-137, mixed mode)
      java.lang.NullPointerException: Cannot invoke "java.util.concurrent.atomic.AtomicBoolean.get()" because "nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001R.run" is null
      at nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001R.doInThisThread(hs204t001R.java:44)
      at nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001R.run(hs204t001R.java:38)
      STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "java.util.concurrent.atomic.AtomicBoolean.get()" because "nsk.jvmti.scenarios.hotswap.HS204.hs204t001.hs204t001R.run" is null
      ----------rerun:(39/6801)*----------

      Attachments

        Issue Links

          Activity

            People

              amenkov Alex Menkov
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: