Given:
public class Example {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
And using:
$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
$ javac -version
javac 1.8.0_66
Runs just fine:
$ java
-javaagent:jacoco-0.7.8/lib/jacocoagent.jar=destfile=jacoco.exec,output=tcpserver,address=*
Example
Based on your stack trace:
The only known to me example of such failure relates to usage of IBM JRE J9
and WebSphere - https://github.com/jacoco/eclemma/issues/94
If this is your case, then as stated in our FAQ (
http://www.eclemma.org/jacoco/trunk/doc/faq.html ): To make the JaCoCo
agent work please set the VM option -Xshareclasses:none.
If this is not your case and since failure happens not during
instrumentation, but in a sequence of agent startup, then AFAIK there is no
known examples of such failure and hence no known solutions. So without
additional details will be hard to help you. However as a workaround you
can switch on usage of solely offline instrumentation that doesn't require
agent ( http://www.eclemma.org/jacoco/trunk/doc/offline.html ).
And here is my wild guesses to give you an ideas of which details to
provide and in which directions to dig during investigations on your side:
Maybe class java/util/UUID somehow loaded prior to JaCoCo agent gets a
chance to modify it. What could cause this?
Or maybe you have Java Security Manager that forbids JaCoCo agent to modify
class java/util/UUID somehow. Again - how?
As always - good reproducer consists of exact steps that others can do to
reproduce your problem.
Hope this helps,
Evgeny
On Tuesday, January 10, 2017 at 11:10:20 AM UTC+1,
[email protected] wrote:
>
> jacoco version: 0.7.8
> java version:jdk 1.8u66
--
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/30b8da18-f8d3-414e-baa7-aa4bef1cc9c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.