Hi,

I'm guessing that you use JaCoCo version 0.7.2, which is quite old (2 years 
old), so please try latest version, that is 0.7.9 as of today.

If this won't solve problem, then please provide:

   - at least full stack trace, i.e. without truncation after 
   ArrayIndexOutOfBoundsException
   - version of JVM
   - and ideally class file that can't be instrumented

If you are not seeing full stack trace, then most likely this is a result 
of optimization in JVM and in order to get it fully you should use JVM 
option "-XX:-OmitStackTraceInFastThrow".


P.S. it is a good practice to always use latest version and specify version 
when reporting about problems


On Thursday, February 9, 2017 at 5:23:56 AM UTC+1, [email protected] 
wrote:
>
> I am getting the below error when tomcat starts. I have configured the jvm 
> argument as 
>
>
> -javaagent:/xxxx/xxx/xxx/jacocoagent.jar=append=true,output=tcpserver,address=xxxxxx,port=xxxxx,excludes=org.sonar.api.*:org.sonar.core.*:org.sonar.jpa.*:com.xxxx.*:oracle.*:org.spring.*,includes=com.xxxx.*
>
>
> java.lang.instrument.IllegalClassFormatException: Error while 
> instrumenting class com/xxx/xxx/xxx/xxx/xxxxx
>
> Caused by: java.io.IOException: Error while instrumenting class 
> com/xxx/xxx/xxx/xxx/xxxxx.
>         at 
> org.jacoco.agent.rt.internal_e6e56f0.core.instr.Instrumenter.instrumentError(Instrumenter.java:152)
>         at 
> org.jacoco.agent.rt.internal_e6e56f0.core.instr.Instrumenter.instrument(Instrumenter.java:103)
>         at 
> org.jacoco.agent.rt.internal_e6e56f0.CoverageTransformer.transform(CoverageTransformer.java:87)
>  ... 62 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException
>
>

-- 
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/dfec6eda-3d34-46ab-84e6-9e76913c1cf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to