So I am looking for any alternate solution. Any help would be highly appreciated.
Thanks! I tried latest version jacoco-0.7.9 as you said. But it gives same error. As you suggested here is full exception trace. Please let me know your thoughts. Thanks again!!
java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/comp/xt/svc/Basxmcchglp1C00v02.
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.CoverageTransformer.transform(CoverageTransformer.java:93)
INFO | jvm 1 | 2017/02/14 16:30:21 | at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
INFO | jvm 1 | 2017/02/14 16:30:21 | at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424)
INFO | jvm 1 | 2017/02/14 16:30:21 | at java.lang.ClassLoader.defineClass1(Native Method)
INFO | jvm 1 | 2017/02/14 16:30:21 | at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
INFO | jvm 1 | 2017/02/14 16:30:21 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.xt.Rvd0x02.mainSubroutine(Rvd0x02.java:26)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.Process.run(Process.java:13)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.ProcessInfo.run(ProcessInfo.java:20)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.xt.Rcd0xf06.mainSubroutine(Rcd0xf06.java:143)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.Process.run(Process.java:13)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.ProcessInfo.run(ProcessInfo.java:20)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.pt.svc.util.Recv203.mainSubroutine(Pmscar203.java:435)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.Process.run(Process.java:13)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.ProcessInfo.run(ProcessInfo.java:20)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.pt.svc.ctrl.Cycle01.mainSubroutine(Pmscoc01.java:1114)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.Process.run(Process.java:13)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.ProcessInfo.run(ProcessInfo.java:20)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.pt.CycleController.StartDaily(Basstrcycl.java:125)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.pt.custom.CycleController.mainSubroutine(Basstrcycl.java:82)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.Process.run(Process.java:13)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.ProcessInfo.run(ProcessInfo.java:20)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.DynamicCall.legacyInvoke(DynamicCall.java:271)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.DynamicCall.execute(DynamicCall.java:167)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.util.DynamicCall.invoke(DynamicCall.java:577)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.task.LegacyCustomTaskWrapper.invoke(LegacyCustomTaskWrapper.java:17)
INFO | jvm 1 | 2017/02/14 16:30:21 | at hx.mt.task.CustomTaskWrapper.run(CustomTaskWrapper.java:117)
INFO | jvm 1 | 2017/02/14 16:30:21 | at com.comp.pt.svc.custom.jobScheduler.QuartzAsyncJob.execute(QuartzAsyncJob.java:44)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.quartz.core.JobRunShell.run(Unknown Source)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(Unknown Source)
INFO | jvm 1 | 2017/02/14 16:30:21 | Caused by: java.io.IOException: Error while instrumenting class com/comp/xt/svc/Basxmcchglp1C00v02.
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.core.instr.Instrumenter.instrumentError(Instrumenter.java:166)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.core.instr.Instrumenter.instrument(Instrumenter.java:117)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.CoverageTransformer.transform(CoverageTransformer.java:91)
INFO | jvm 1 | 2017/02/14 16:30:21 | ... 33 more
INFO | jvm 1 | 2017/02/14 16:30:21 | Caused by: java.lang.RuntimeException: Method code too large!
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.asm.MethodWriter.getSize(MethodWriter.java:2079)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.asm.ClassWriter.toByteArray(ClassWriter.java:838)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.core.instr.Instrumenter.instrument(Instrumenter.java:91)
INFO | jvm 1 | 2017/02/14 16:30:21 | at org.jacoco.agent.rt.internal_8ff85ea.core.instr.Instrumenter.instrument(Instrumenter.java:114)
INFO | jvm 1 | 2017/02/14 16:30:21 | ... 34 more
Thanks! So cant we increase this limit by any setting provided by Jacoco?
Thank you so much! I have one more question please suggest if I should post this in another thread.
I have used JaCoCo report (jacoco.exec) in SonarQube and Eclipse through EclEmma and noticed that Eclipse shows roughly half coverage of what SonarQube displays. Is there any setting required in Eclipse? As eclipse has .java and .class files both so can that make this difference.