OS- LINUX(UBUNTU)
JACOCO Version -0.8.0

On Monday, September 28, 2020 at 6:35:13 PM UTC+5:30 Vansh Kumar Madan 
wrote:

> Hi,
>
> I am using jacoco javagent  method to record execution coverage.
>
> *Command-*
> java 
> -javaagent:jacocoagent.jar=address=*,port=57026,output=tcpserver,destfile=jacoco-it.exec
>
> After executing above command.
>
> *ERROR:*
>
> Exception in thread "main" java.lang.reflect.InvocationTargetException
>     at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)
>     at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>     at 
> java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
>     at 
> java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
> Caused by: java.lang.RuntimeException: Class java/lang/UnknownError could 
> not be instrumented.
>     at 
> org.jacoco.agent.rt.internal_290345e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
>     at 
> org.jacoco.agent.rt.internal_290345e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
>     at 
> org.jacoco.agent.rt.internal_290345e.PreMain.createRuntime(PreMain.java:55)
>     at 
> org.jacoco.agent.rt.internal_290345e.PreMain.premain(PreMain.java:47)
>     ... 6 more
> Caused by: java.lang.NoSuchFieldException: $jacocoAccess
>     at java.base/java.lang.Class.getField(Class.java:1999)
>     at 
> org.jacoco.agent.rt.internal_290345e.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
>     ... 9 more
> *** java.lang.instrument ASSERTION FAILED ***: "result" with message agent 
> load/premain call failed at 
> ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
> FATAL ERROR in native method: processing of -javaagent failed, 
> processJavaStart failed
> Aborted (core dumped)
>
>
-- 








This
          electronic message transmission contains information 
from the
          Company that may be proprietary, confidential and/or
    
      privileged. The information is intended only for the use of
          
the individual(s) or entity named above. If you are not the
          
intended recipient, be aware that any disclosure, copying or
          
distribution or use of the contents of this information is
          
prohibited. If you have received this electronic transmission
          in 
error, please notify the sender immediately by replying to
          the 
address listed in the "From:" field.

-- 
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/5e7bdae6-cde1-4dd5-b6a5-e0e21777d6ffn%40googlegroups.com.

Reply via email to