I am using offline instrumentation feature of jacoco[Some of the tests involve jmockit, I could not make the on-the-fly-instrumentation work]. I am using latest jacoco to instrument a war. This gets ClassNotFoundException from some class (pre-compiled from jsp)
<jacoco:instrument destdir="instrumentedwar">
<fileset dir="wartemp" includes="**/*.war" />
</jacoco:instrument>
Exception:
Caused by: java.io.IOException: Error while instrumenting class reporter.war@WEB-INF/classes/com/reports/
report_jsp.class.
at org.jacoco.core.instr.Instrumenter.instrumentError(Instrumenter.java:147)
at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:141)
at org.jacoco.core.instr.Instrumenter.instrumentAll(Instrumenter.java:174)
at org.jacoco.core.instr.Instrumenter.instrumentZip(Instrumenter.java:196)
at org.jacoco.core.instr.Instrumenter.instrumentAll(Instrumenter.java:177)
at org.jacoco.ant.InstrumentTask.instrument(InstrumentTask.java:91)
... 17 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyContent
at org.jacoco.asm.ClassWriter.getCommonSuperClass(Unknown Source)
at org.jacoco.asm.ClassWriter.a(Unknown Source)
at org.jacoco.asm.Frame.a(Unknown Source)
at org.jacoco.asm.Frame.a(Unknown Source)
at org.jacoco.asm.MethodWriter.visitMaxs(Unknown Source)
at org.jacoco.asm.ClassReader.a(Unknown Source)
at org.jacoco.asm.ClassReader.b(Unknown Source)
at org.jacoco.asm.ClassReader.accept(Unknown Source)
at org.jacoco.asm.ClassReader.accept(Unknown Source)
at org.jacoco.asm.ClassWriter.toByteArray(Unknown Source)
at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:79)
at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:139)
The missing class is exist in javax.servlet.jsp-2.2.0.v201112011158.jar (jetty8). It looks like instrumentation looks for parent class;how do I pass it to jacoco:instrument?
(Jacoco Version 0.6.3)
Thanks,
Jayan
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/b84B-SkfVIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/b84B-SkfVIs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.