I’m using Java 14.
Exception in thread "main" java.lang.AbstractMethodError: Receiver class 
org.jacoco.core.runtime.LoggerRuntime does not define or inherit an 
implementation of the resolved method 'abstract int generateDataAccessor(long, 
java.lang.String, int, org.jacoco.asm.MethodVisitor)' of interface 
org.jacoco.core.runtime.IExecutionDataAccessorGenerator.
        at 
org.jacoco.core.internal.instr.ClassFieldProbeArrayStrategy.genInitializeDataField(ClassFieldProbeArrayStrategy.java:120)
        at 
org.jacoco.core.internal.instr.ClassFieldProbeArrayStrategy.createInitMethod(ClassFieldProbeArrayStrategy.java:93)
        at 
org.jacoco.core.internal.instr.ClassFieldProbeArrayStrategy.addMembers(ClassFieldProbeArrayStrategy.java:64)
        at 
org.jacoco.core.internal.instr.ClassInstrumenter.visitTotalProbeCount(ClassInstrumenter.java:82)
        at 
org.jacoco.core.internal.flow.ClassProbesAdapter.visitEnd(ClassProbesAdapter.java:99)
        at org.jacoco.asm.ClassReader.accept(ClassReader.java:692)
        at org.jacoco.asm.ClassReader.accept(ClassReader.java:400)
        at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:89)
        at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:107)
        at org.jacoco.core.instr.Instrumenter.instrument(Instrumenter.java:134)
        at demo.CoreTutorial.execute(CoreTutorial.java:123)
        at demo.CoreTutorial.main(CoreTutorial.java:210)


> On Jul 24, 2020, at 00:07, Marc Hoffmann <[email protected]> wrote:
> 
> Please provide the full stack trace as TEXT.
> 
> The image clips the important information.
> 
> Also: What Java version are you using?
> 
>> On 24. Jul 2020, at 03:43, Veronica Sheng <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Good evening Marc,
>> I’m trying to run CoreTutorial.java locally, I mean I I copied 
>> CoreTutorial.java to my workspace in Eclipse, installed Jacoco library, and 
>> asm 8.0.1, however I got this error out
>> <Screen Shot 2020-07-23 at 21.33.23.png>
>> 
>> The ClassReader.java is not reachable, and said no source attachment, (other 
>> functions are reachable) referenced libraries are as followed
>> <Screen Shot 2020-07-23 at 21.33.48.png>
>> 
>> Would you please tell me how to fix this?
>> 
>>> On Jul 20, 2020, at 13:19, Marc Hoffmann <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Ok, good hear!
>>> 
>>> good luck for your project,
>>> -marc
>>> 
>>>> On 20. Jul 2020, at 18:57, [email protected] 
>>>> <mailto:[email protected]> wrote:
>>>> 
>>>> Hi Marc,
>>>> It's working, thanks for your help! I'm a newbie to Eclipse, I even didn't 
>>>> realize to change the IDE's perspective.
>>>> 
>>>> 在 2020年7月18日星期六 UTC-4下午3:58:01,[email protected] <http://gmail.com/>写道:
>>>> Good Day,
>>>> I am a college student and have some eclipse environment set up issues, 
>>>> wish you could help.
>>>> Eclipse : 2020-06 (4.16.0)
>>>> Java: 9.0.4
>>>> JDK: 9.0.4
>>>> Maven: 3.6.3
>>>> m2e : 1.16.0
>>>> 
>>>> Here is the process I import jacoco into Eclipse:
>>>> Part one:
>>>> 1. I import projects from Git (with smart import).
>>>> 2. copy jacoco github uri.
>>>> 3. select only master branch to work with.
>>>> 4.Select the 1st jacoco folder and import it as maven project.
>>>> 5.The jacoco maven structure is as fig 5.
>>>> 6. Run "mvn clean verify" under org.jacoco.build folder, and it builds 
>>>> successful.
>>>> 7. I didn't seen any jar file after update the maven project, the 
>>>> structure is like fig 7.
>>>> 8. I was not able to edit the java file, the error said: This compilation 
>>>> unit is not on the build path of a java project. like fig8 (I checked the 
>>>> project nature is Maven nature), also I was not able to use command + 
>>>> click to navigate to a method definition, key words, methods, variables 
>>>> etc are not highlighted by different color like normal java file.
>>>> 
>>>> Part two:
>>>> This time I deleted the whole maven project in eclipse and cleaned up the 
>>>> work space, then repeated part one's step 1 to 3,  
>>>> 4, I imported all the eclipse projects except the first maven project 
>>>> instead, as fig 9.
>>>> 5. The structure is as fig 10, there is an error signal in each project.
>>>> 6. Run "mvn clean verify" under org.jacoco.build folder, this time I 
>>>> encountered build failures on org.jacoco.core.test.validation.kotlin, and 
>>>> org.jacoco.core.test.validation.scala as fig 11. I fixed this by change 
>>>> the bytecode.version from 6 to 7.
>>>> 7. Even though there were errors everywhere in the projects, but it still 
>>>> can build successful, and this time I see target file and jar file like 
>>>> fig 12. Also this time all the java files appeared to be normal, I can 
>>>> edit, use short cut.
>>>> 
>>>> Would you please tell me why in part one, I was not able to edit java 
>>>> file, and why in part two, there were errors everywhere. 
>>>> Wish you a good weekend.
>>>> 
>>>>  <>
>>>> fig1 <> <> <>
>>>> fig2 <> <> <>fig3 <>
>>>>  <>
>>>> fig4 <> <> <>
>>>> fig 5 <>
>>>> 
>>>> 
>>>>  <> <>
>>>> fig6 <>
>>>> 
>>>>  <>
>>>> 
>>>> fig 7 <> <>fig 8  <> <>fig 9 <> <>fig 10 <>
>>>> fig 11 <>
>>>>  <> <>fig 12 <>
>>>> 
>>>> 
>>>> 
>>>>  <>
>>>>  <>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> -- 
>>>> 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] 
>>>> <mailto:[email protected]>.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/jacoco/95c0ae92-bd6a-4e77-b65c-43648c8bbbd6o%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/jacoco/95c0ae92-bd6a-4e77-b65c-43648c8bbbd6o%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> 
>>> 
>>> -- 
>>> 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/wWQBwA4p_Cw/unsubscribe 
>>> <https://groups.google.com/d/topic/jacoco/wWQBwA4p_Cw/unsubscribe>.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] 
>>> <mailto:[email protected]>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jacoco/44884EE7-5C7F-4ED3-9D32-F9C7C64F993E%40mountainminds.com
>>>  
>>> <https://groups.google.com/d/msgid/jacoco/44884EE7-5C7F-4ED3-9D32-F9C7C64F993E%40mountainminds.com?utm_medium=email&utm_source=footer>.
>> 
>> 
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jacoco/7ABE230D-C58B-486E-B9B5-48BAD39E4100%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/jacoco/7ABE230D-C58B-486E-B9B5-48BAD39E4100%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> 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/wWQBwA4p_Cw/unsubscribe 
> <https://groups.google.com/d/topic/jacoco/wWQBwA4p_Cw/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/B21FC289-2D88-4747-8BF9-5552E6F3DC57%40mountainminds.com
>  
> <https://groups.google.com/d/msgid/jacoco/B21FC289-2D88-4747-8BF9-5552E6F3DC57%40mountainminds.com?utm_medium=email&utm_source=footer>.

-- 
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/A25A80DA-633B-43C7-B515-174FB2CFA3C5%40gmail.com.

Reply via email to