Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BTRACE-90] BTrace does not work for JDK7u25 #10

Closed
jbachorik opened this issue Aug 28, 2014 · 1 comment
Closed

[BTRACE-90] BTrace does not work for JDK7u25 #10

jbachorik opened this issue Aug 28, 2014 · 1 comment

Comments

@jbachorik
Copy link
Collaborator

[reporter="j.bachorik", created="Tue, 2 Jul 2013 12:57:38 +0200", resolved="Tue, 2 Jul 2013 16:25:41 +0200"]

The latest JDK7 update broke BTrace.

An attempt to attach to an application results in

Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
    at com.sun.btrace.agent.Main.startServer(Main.java:379)
    at com.sun.btrace.agent.Main.access$000(Main.java:65)
    at com.sun.btrace.agent.Main$3.run(Main.java:166)
    at java.lang.Thread.run(Thread.java:724)
 Caused by: java.lang.SecurityException: unsafe init
    at com.sun.btrace.BTraceRuntime.init(BTraceRuntime.java:382)
    at com.sun.btrace.agent.Client.(Client.java:94)
    ... 4 more

This is caused by sun.reflect.Reflection.getCallerClass(int) requiring one additional frame to skip when trying to get the immediate caller.

@jbachorik jbachorik added this to the release-1.2.3 milestone Aug 28, 2014
@jbachorik
Copy link
Collaborator Author

[author="j.bachorik", created="Tue, 2 Jul 2013 16:25:41 +0200"]

https://kenai.com/projects/btrace/sources/hg/revision/444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant