I see. Block type 0x20 is BLOCK_CMDOK which is part of the remote
protocol only and must not be written to the exec file.
Looks like you need to dig a little bit deeper into the JaCoCo binary
protocols or maybe use our Java APIs.
Regards,
-marc
On 11.05.16 10:45, [email protected] wrote:
The toString method will be doing string conversion and invalidating the
format... not sure why I felt that necessary. I've updated it to
fs.appendFileSync('executionData/'+ this.logFileId +'.exec', data);
and the and merge now gets through some of the files before complaining.
The stack trace is:
Unable to read
/var/lib/go-agent/pipelines/Acceptance-Tests-With-Coverage/tests/executionData/1462927504650_6901.exec
at org.jacoco.ant.MergeTask.load(MergeTask.java:87)
at org.jacoco.ant.MergeTask.execute(MergeTask.java:67)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: Unknown block type 20.
at
org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:119)
at
org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:90)
at org.jacoco.core.tools.ExecFileLoader.load(ExecFileLoader.java:59)
at org.jacoco.ant.MergeTask.load(MergeTask.java:85)
... 17 more
I see old mentions of concurrency issues on google, but these files are written
synchronously in a single thread, so that should not be the issue here.
--
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/57336FDB.9060308%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.