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

Can not attach on ibm java8 #25

Open
jwadamson opened this issue May 12, 2016 · 2 comments
Open

Can not attach on ibm java8 #25

jwadamson opened this issue May 12, 2016 · 2 comments

Comments

@jwadamson
Copy link

jwadamson commented May 12, 2016

$ /usr/lib/jvm/java-ibm-x86_64-80/bin/java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build pxa6480sr1fp10-20150711_01(SR1 FP10))
IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20150630_255633 (JIT enabled, AOT enabled)
J9VM - R28_jvm.28_20150630_1742_B255633
JIT - tr.r14.java_20150625_95081.01
GC - R28_jvm.28_20150630_1742_B255633_CMPRSS
J9CL - 20150630_255633)
JCL - 20150711_01 based on Oracle jdk8u51-b15

./myprogram -javaagent:/..../file-leak-detector-1.8-jar-with-dependencies.jar=http=1999

File leak detector installed
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:408)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:423)
Caused by: java.lang.VerifyError
at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:163)
at org.kohsuke.file_leak_detector.AgentMain.premain(AgentMain.java:115)
... 6 more

@Viyond
Copy link

Viyond commented Mar 21, 2018

is it resolved??

@zrlw
Copy link

zrlw commented Oct 1, 2019

the jdk version of project should match the jdk version of running JVM, otherwise the java.lang.VerifyError may occur at sun.instrument.InstrumentationImpl.retransformClasses0.
I translated the project to IBM JDK 1.6 for WebSphere 8.5:
there is a jar built for WebSphere 8.5 under release directory of https://github.com/zrlw/file-leak-detector
maybe it will work for you. or you should generate the jar file based on your JDK version.

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

No branches or pull requests

3 participants