Hi, I have this issue with jdk1.8.0_45 and jacoco 0.7.5 and 0.7.6. If I understood well, this was solved from jacoco 0.7.0 (https://github.com/jacoco/jacoco/issues/74).
The stack is the following: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386) at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401) Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented. at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139) at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100) at org.jacoco.agent.rt.internal_b0d6a23.PreMain.createRuntime(PreMain.java:55) at org.jacoco.agent.rt.internal_b0d6a23.PreMain.premain(PreMain.java:47) ... 6 more Caused by: java.lang.NoSuchFieldException: $jacocoAccess at java.lang.Class.getField(Class.java:1703) at org.jacoco.agent.rt.internal_b0d6a23.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137) ... 9 more FATAL ERROR in native method: processing of -javaagent failed I'm configuring JAVA_OPTS in this way: export JAVA_OPTS=" -javaagent:/tmp/jacoco/lib/jacocoagent.jar=output=tcpserver,address=*,port=6300,includes=*" Any idea to solve this? Thanks! El lunes, 10 de marzo de 2014, 9:19:28 (UTC-3), Marc R. Hoffmann escribió: > > Hi, > > we don't have any experience or tests with J9. > > Best regards, > -marc > > On 2014-03-10 13:02, [email protected] <javascript:> wrote: > > I also have this issue on a 64 bit IBM JRE7 > > > > ============== > > > > C:\IBM\WebSphere\AppServer\java_1.7_64\bin>java -version > > java version "1.7.0" > > Java(TM) SE Runtime Environment (build > > pwa6470sr4fp1ifix-20130423_02(SR4 FP1+IV3 > > 8579+IV38399+IV40208)) > > IBM J9 VM (build 2.6, JRE 1.7.0 Windows 7 amd64-64 Compressed > > References 2013042 > > 1_145945 (JIT enabled, AOT enabled) > > J9VM - R26_Java726_SR4_FP1_2_20130421_2353_B145945 > > JIT - r11.b03_20130131_32403ifx4 > > GC - R26_Java726_SR4_FP1_2_20130421_2353_B145945_CMPRSS > > J9CL - 20130422_145945) > > JCL - 20130225_01 based on Oracle 7u13-b08 > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/612582dc-24c7-4ace-9c07-c48e97d35e7f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
