Hi,

the stack trace points out the problem:

    "Class HelloWorld is already instrumented."

Report generation cannot work on instrumented classes. You need to supply the original classes.

Regards,
-marc

On 04.05.17 20:16, 'Stanley Chong' via JaCoCo and EclEmma Users wrote:
Sorry about the time in between.  here is part of the stack trace:

BUILD FAILED

/home/s_mrscha/bld24/build.xml:25:Error while creating report

at org.jacoco.ant.ReportTask.execute(ReportTask.java:501)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

….

….

Caused by: java.io.IOException: Error while analyzing HelloWorld.class.

at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:153)

at org.jacoco.core.analysis.Analyzer.analyzeClass(Analyzer.java:147)

at org.jacoco.core.analysis.Analyzer.analyzeAll(Analyzer.java:178)

…

…

…

Caused by: java.lang.IllegalStateException: Class HelloWorld is already instrumented.

At org.jacoco.core.internal.instr.InstrSupport.assertNotInstrumented(InstrSupport.java:94)

…

…

… 21 more


On Tuesday, April 18, 2017 at 1:45:26 PM UTC-4, Stanley Chong wrote:

    Hi,
    We are trying to use JaCoCo on a Java program that is compiled to
    machine code.  We can get the jacoco.exec to be created, but when
    we try to generate the report, we get the following error:

    Buildfile: build.xml

    Report:

    [jacoco:report] Loading execution data file
    /home/s_mrscha/bld24/jacoco.exec

    BUILD FAILED

    /home/s_mrscha/bld24/build.xml:23: Error while creating report

    Total time: 6 seconds


    And line 23 is just the first line of the ant <jacoco:report>
    task… so that doesn’t seem to be useful.


    Is there something else that would enable us to see a more
    descriptive error so we can fix this problem?


    Thanks,

    Stan


--
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/33a62cc0-e4a4-56a6-ab31-3f09dde76bbe%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to