Already instrumented error with JMockit tests

Developers
Raghu
2013-03-18
2013-05-09
  • Raghu

    Raghu - 2013-03-18

    Hello,
    I am getting the following error while running JUnit testcase using JMockit framework.

    java.lang.instrument.IllegalClassFormatException: Error while instrumenting class A/B/C
    at org.jacoco.agent.rt_kqcpih.CoverageTransformer.transform(CoverageTransformer.java:91)
    Caused by: java.lang.IllegalStateException: Class A/B/C is already instrumented.
    at org.jacoco.agent.rt_kqcpih.core.internal.instr.ClassInstrumenter.assertNotInstrumented(ClassInstrumenter.java:133)
    at org.jacoco.agent.rt_kqcpih.core.internal.instr.ClassInstrumenter.visitField(ClassInstrumenter.java:81)
    at org.jacoco.agent.rt_kqcpih.asm.ClassVisitor.visitField(Unknown Source)
    at org.jacoco.agent.rt_kqcpih.asm.ClassReader.accept(Unknown Source)
    at org.jacoco.agent.rt_kqcpih.asm.ClassReader.accept(Unknown Source)
    at org.jacoco.agent.rt_kqcpih.core.instr.Instrumenter.instrument(Instrumenter.java:69)
    at org.jacoco.agent.rt_kqcpih.core.instr.Instrumenter.instrument(Instrumenter.java:82)
    at org.jacoco.agent.rt_kqcpih.CoverageTransformer.transform(CoverageTransformer.java:89)

     
  • Viktor Sadovnikov

    Hi,

    I've run into the same problem.
    Have you managed to resolve it?

    Thanks,
    Viktor

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks