You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I attempt to trace using a BTrace script that is using an instance class, e.g. Profiling.java, then is will fail to load the script. The scripts that only use static methods work. The instance based scripts work okay in JDK8.
btrace DEBUG: client accepted Socket[addr=/127.0.0.1,port=56866,localport=2020]
btrace DEBUG: got instrument command
btrace DEBUG: loading BTrace class
btrace DEBUG: verifying BTrace class ...
btrace DEBUG: BTrace class org.openjdk.btrace.runtime.aux.Profiling$1 verified
btrace DEBUG: preprocessing BTrace class org.openjdk.btrace.runtime.aux.Profiling$1 ...
btrace DEBUG: ... preprocessed
btrace DEBUG: XML bindings are missing. @OnProbe support is disabled.
btrace DEBUG: loaded 'org.openjdk.btrace.runtime.aux.Profiling$1' successfully
btrace DEBUG: class renamed to org.openjdk.btrace.runtime.aux.Profiling$1
btrace DEBUG: client org.openjdk.btrace.runtime.aux.Profiling$1: got org.openjdk.btrace.core.comm.RenameCommand@22670d7d
btrace DEBUG: creating BTraceRuntime instance for org.openjdk.btrace.runtime.aux.Profiling$1
btrace DEBUG: created BTraceRuntime instance for org.openjdk.btrace.runtime.aux.Profiling$1
btrace DEBUG: sending Okay command
btrace DEBUG: client org.openjdk.btrace.runtime.aux.Profiling$1: got org.openjdk.btrace.core.comm.StatusCommand@171fd35b
btrace DEBUG: about to defineClass org/openjdk/btrace/runtime/aux/Profiling$1
btrace DEBUG: skipping transform for BTrace class org/openjdk/btrace/runtime/aux/Profiling$1
btrace DEBUG: defineClass succeeded for org.openjdk.btrace.runtime.aux.Profiling$1
btrace DEBUG: java.lang.RuntimeException: can not load BTrace class
java.lang.RuntimeException: can not load BTrace class
at org.openjdk.btrace.agent.RemoteClient.<init>(RemoteClient.java:151)
at org.openjdk.btrace.agent.RemoteClient.getClient(RemoteClient.java:94)
at org.openjdk.btrace.agent.Main.startServer(Main.java:858)
at org.openjdk.btrace.agent.Main.lambda$main$1(Main.java:161)
at java.base/java.lang.Thread.run(Thread.java:829)
btrace DEBUG: waiting for clients
> java -version
openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.48+21-CA (build 11.0.11+9-LTS, mixed mode)
> uname -a
Linux plinth 5.8.0-55-generic #62~20.04.1-Ubuntu SMP Wed Jun 2 08:55:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
If I attempt to trace using a BTrace script that is using an instance class, e.g. Profiling.java, then is will fail to load the script. The scripts that only use static methods work. The instance based scripts work okay in JDK8.
Running:
Trace from running JVM
The text was updated successfully, but these errors were encountered: