我正在尝试使用maven项目从weblogic服务器检索覆盖转储。
运行mvn之后我得到了:
Failed to execute goal org.jacoco:jacoco-maven-plugin:0.7.7.201606060606:report (jacoco-report) on project jacocotest: An error has occurred in JaCoCo report generation. Error while creating report: Cannot read execution data version 0x1006. This version of JaCoCo uses execution data version 0x1007. -> [Help 1]
并在weblogic日志中:
org.jacoco.agent.rt.internal_6da5971.core.data.IncompatibleExecDataVersionException: Cannot read execution data version 0x1006. This version of JaCoCo uses execution data version 0x1007.
at org.jacoco.agent.rt.internal_6da5971.core.data.ExecutionDataReader.readHeader(ExecutionDataReader.java:129)
at org.jacoco.agent.rt.internal_6da5971.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:109)
at org.jacoco.agent.rt.internal_6da5971.core.runtime.RemoteControlReader.readBlock(RemoteControlReader.java:47)
at org.jacoco.agent.rt.internal_6da5971.core.data.ExecutionDataReader.read(ExecutionDataReader.java:92)
at org.jacoco.agent.rt.internal_6da5971.output.TcpConnection.run(TcpConnection.java:59)
at org.jacoco.agent.rt.internal_6da5971.output.TcpServerOutput$1.run(TcpServerOutput.java:63)
at java.lang.Thread.run(Thread.java:724)
在pom中我有:
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.7.201606060606</version>
和代理jar,
META-INF\Manifest.mf
Implementation-Version: 0.7.7.201606060606
答案 0 :(得分:1)
&#34; 0x1006&#34;是由JaCoCo版本0.5.0 - 0.7.4生成的数据版本。因此,请仔细检查您是否使用旧版本的JaCoCo执行WebLogic Server,即-javaagent
java
参数中用于启动WebLogic Server的内容。