mchr3k/org.intrace — Issue #15: IBM JDK Support
Author: eostermueller
Created: 2012-01-03 17:01:19+00:00
State: open

The InTrace javaagent throws an exception and fails to start with an IBM JDK.
Some of this is documented here:

https://github.com/mchr3k/org.intrace/issues/12#issuecomment-3341518

Here is the JVM that was used:

> java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxa6460sr7ifix-20100220_02(SR7+IZ69890+IZ70326))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr7-20100219_54097 (JIT enabled, AOT enabled)
J9VM - 20100219_054097
JIT - r9_20091123_13891
GC - 20100216_AA)
JCL - 20091202_01

Here is the full exception, which is also at the above link:

Buildfile: build.xml

init:

run:
[java] ## Loaded InTrace Agent.
[java] Exception in thread "main" java.lang.UnsupportedOperationException: cannot get the capability, performing dispose of the retransforming environment
[java] at sun.instrument.InstrumentationImpl.isRetransformClassesSupported0(Native Method)
[java] at sun.instrument.InstrumentationImpl.isRetransformClassesSupported(InstrumentationImpl.java:124)
[java] at sun.instrument.InstrumentationImpl.addTransformer(InstrumentationImpl.java:79)
[java] at org.intrace.agent.AgentInit.initialize(AgentInit.java:41)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:600)
[java] at org.intrace.agent.Agent.initialize(Agent.java:66)
[java] at org.intrace.agent.Agent.premain(Agent.java:26)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:600)
[java] at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:335)
[java] at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:350)
[java] Exception in thread "main" java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:600)
[java] at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:335)
[java] at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:350)
[java] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
[java] at org.intrace.agent.Agent.initialize(Agent.java:70)
[java] at org.intrace.agent.Agent.premain(Agent.java:26)
[java] ... 6 more
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[java] at java.lang.reflect.Method.invoke(Method.java:600)
[java] at org.intrace.agent.Agent.initialize(Agent.java:66)
[java] ... 7 more
[java] Caused by: java.lang.UnsupportedOperationException: adding retransformable transformers is not supported in this environment
[java] at sun.instrument.InstrumentationImpl.addTransformer(InstrumentationImpl.java:80)
[java] at org.intrace.agent.AgentInit.initialize(AgentInit.java:41)
[java] ... 12 more

[java] Fatal error: processing of -javaagent failed

BUILD SUCCESSFUL
Total time: 0 seconds