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

jdk/jfr/event/runtime/TestAgentEvent.java fails due to "missing" dynamic JavaAgent

    XMLWordPrintable

Details

    • jfr
    • b03
    • x86_64
    • windows

    Backports

      Description


        ----------messages:(7/450)----------
        command: main -Djdk.attach.allowAttachSelf=true jdk.jfr.event.runtime.TestAgentEvent testJavaDynamic
        reason: User specified action: run main/othervm -Djdk.attach.allowAttachSelf=true jdk.jfr.event.runtime.TestAgentEvent testJavaDynamic
        started: Fri May 19 03:44:38 UTC 2023
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.instrument
        finished: Fri May 19 03:44:41 UTC 2023
        elapsed time (seconds): 3.009
        ----------configuration:(3/46)----------
        Boot Layer
          add modules: java.instrument

        ----------System.out:(44/917)----------
        agentmain: bar=baz
        agentmain: null
        agentmain:
        agentmain: =
        jdk.JavaAgent {
          startTime = 03:44:40.574 (2023-05-19)
          name = "JavaAgent.jar"
          options = "bar=baz"
          dynamic = true
          initializationTime = 03:44:40.498 (2023-05-19)
          initializationDuration = 26.9 ms
        }


        jdk.JavaAgent {
          startTime = 03:44:40.574 (2023-05-19)
          name = "JavaAgent.jar"
          options = N/A
          dynamic = true
          initializationTime = 03:44:40.542 (2023-05-19)
          initializationDuration = 7.09 ms
        }


        jdk.JavaAgent {
          startTime = 03:44:40.574 (2023-05-19)
          name = "JavaAgent.jar"
          options = ""
          dynamic = true
          initializationTime = 03:44:40.562 (2023-05-19)
          initializationDuration = 4.40 ms
        }


        jdk.JavaAgent {
          startTime = 03:44:40.574 (2023-05-19)
          name = "JavaAgent.jar"
          options = "="
          dynamic = true
          initializationTime = 03:44:40.568 (2023-05-19)
          initializationDuration = 2.77 ms
        }


        ----------System.err:(17/1110)----------
        java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at jdk.jfr.event.runtime.TestAgentEvent.main(TestAgentEvent.java:79)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        Caused by: java.lang.Exception: Expected a dynamic JavaAgent to be initialized before recording stop
        at jdk.jfr.event.runtime.TestAgentEvent.testJavaDynamic(TestAgentEvent.java:144)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        ... 6 more

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

        STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException

        Attachments

          Issue Links

            Activity

              People

                egahlin Erik Gahlin
                msheppar Mark Sheppard
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: