If the poster gets a prize, who gets it, the person presenting it or the first author? Of course my report displayed 0% of code coverage as i didn't run any tests. -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3333.html Sent from the cobertura-devel mailing list archive at Nabble.com. Invoked with: mvn clean verify site Output (sanitized): [INFO] >>> cobertura-maven-plugin:2.6:cobertura (default) @ myProject >>> [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ myProject --- [debug] execute contextualize [INFO] Using 'UTF-8' encoding to Another common problem is that the cobertura.ser file is deleted, but the previously instrumented classes are not also deleted. Source
Iâm using Sonar v1.11.1 and the build is executed by Hudson (1.328). Â [ERROR] Cobertura: Error reading file /opt/Java/hudson/jobs/Sonar/workspace/
The command i run is : *mvn clean test site* -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3353.html Sent from the cobertura-devel mailing list archive at Nabble.com. Is there any fix that could help us to speed up a little bit? Re: [Cobertura-devel] Unable to read cobertura.ser From: Harry Callahan
See below for how to work around this. Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. It looks like Emma has some nice usability features, such as the ability to instrument all classes in a jar file with one command. ckarawani commented May 20, 2015 @dennisl I gave it a try just now.
UPDATE (11th May 2010): Good news! I wonder if the problem is in the instrumentation or in the running ofthe tests. Please don't fill out this field. Or the coverage data file is 0 bytes.
current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Why do compact cameras keep using 4:3 and not 3:2 like DSLRs? Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 26 Star 12 Fork 9 mojohaus/cobertura-maven-plugin Code Issues 25 Pull requests 0 Projects Setup: Maven 3.0.4, Java 1.7, Cobertura Maven plugin 2.6, cobertura 2.0.3.
Also, the version of BCEL distributed with jcoverage 1.0.5 causes problems when used with Java classes compiled with a 1.5 JDK. It can be found in your repository under the following directory: org/codehaus/mojo/cobertura-maven-plugin/2.3/ Find the dependencies section of the pom file and change the versions of Cobertura from 1.9.2 to 1.9.3. cobertura-2.1.1 (cobertura-maven-plugin 2.7) surefire 2.12.4 jdk 1.8.0_92 No workaround found... (more memory allowed, cleaned workspace...) MEZk commented Dec 16, 2016 @NoxFr Try to set surefire version to 2.12 (not 2.12.4) NoxFr My instrumentation task is launch by ant through Maven (Maven Ant Tasks).
Full stackTrace: [ERROR] Cobertura: Error reading file /media/andreiselkin/TOURO/IDEA_Projects/checkstyle/target/cobertura/cobertura.ser: null java.io.EOFException: null at java.io.ObjectInputStream$BlockDataInputStream.readFully(ObjectInputStream.java:2754) ~[na:1.8.0_73] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989) ~[na:1.8.0_73] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:501) ~[na:1.8.0_73] at net.sourceforge.cobertura.coveragedata.JumpData.readObject(JumpData.java:191) ~[cobertura-2.1.1.jar:2.1.1] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_73] at this contact form Re: [Cobertura-devel] Unable to read cobertura.ser From: Harry Callahan
When I stop the server, the coverage data file is not written. execution per Maven moduie), but it didn't help. Then run cobertura-report. http://webjak.net/unable-to/unable-to-read-local-eventlog-reason-the-event-log-file-has-changed-between-read-operations.html Subject: Re: [Cobertura-devel] Unable to read cobertura.ser I cleaned my workspace then i did a build with classes instrumenting without do any test: [echo] Executing cobertura instrument Classes [mkdir] Created dir:
Why is this 'Proof' by induction not valid? I set maxmemory=1024M and injected -XX:MaxPermsize=2048M through jvmargs tag. I tried your fix, but whole process slowed down (we doubled build time).
Recent CommentsKrishna on Maven site generation error: DTDDVFactoryImpl does not extend from DTDDVFactoryYuriy Sechko on Cobertura code coverage with Maven and PowerMockYuriy Sechko on Cobertura code coverage with Maven and PowerMockHarry Re: [Cobertura-devel] Unable to read cobertura.ser From: Harry Callahan
How to change the shadow color in Blender Cycles? This is reproducible each and every time. It's not too hard to associate the word "cobertura" with the word "coverage," and it even has a bit of a zesty kick to it! http://webjak.net/unable-to/unable-to-read-data.html Or cobertura-report and cobertura-merge complain that the coverage data file is invalid (possibly throwing an EOFException).
If you specify the --includeClasses argument in your instrument part, then it will only instrument the packages you mention. Try running the report right after the instrumentation without running thetests. Cobertura uses ASM to modify your bytecode. Lewis