| 
      
      
      From: Harry C. <har...@bb...> - 2013-06-28 10:03:07
       | 
| Hi
I am using cobertura 1.9.4.1 with Apache Ant 1.8.2 (through Maven AntRun
2.5.2 plugins).
I got the following error when i launch it for report generation:
     [echo] Executing cobertura report
[cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT file
[cobertura-report] Cobertura: Error reading file
C:\User\harry\workspace\app\target\cobertura\cobertura.ser: null
[cobertura-report] Error: Unable to read from data file
C:\User\harry\workspace\app\target\cobertura\cobertura.ser
Here is my build.xml configuration:
build.xml <http://cobertura.996293.n3.nabble.com/file/n3330/build.xml>  
--
View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330.html
Sent from the cobertura-devel mailing list archive at Nabble.com.
 | 
| 
      
      
      From: John W. L. <Joh...@sa...> - 2013-06-28 10:50:22
       | 
| 
It is not clear to me what is wrong.   The "null" in the output makes me think something in the datafile is null that should not be.
Try running the report right after the instrumentation without running the tests.   I wonder if the problem is in the instrumentation or in the running of the tests.
John
-----Original Message-----
From: Harry Callahan [mailto:har...@bb...] 
Sent: Friday, June 28, 2013 6:03 AM
To: cob...@li...
Subject: [Cobertura-devel] Unable to read cobertura.ser
Hi
I am using cobertura 1.9.4.1 with Apache Ant 1.8.2 (through Maven AntRun
2.5.2 plugins).
I got the following error when i launch it for report generation:
     [echo] Executing cobertura report
[cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Error reading file
C:\User\harry\workspace\app\target\cobertura\cobertura.ser: null [cobertura-report] Error: Unable to read from data file C:\User\harry\workspace\app\target\cobertura\cobertura.ser
Here is my build.xml configuration:
build.xml <http://cobertura.996293.n3.nabble.com/file/n3330/build.xml>  
--
View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330.html
Sent from the cobertura-devel mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Cobertura-devel mailing list
Cob...@li...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
 | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-06-28 13:52:56
       | 
| I cleaned my workspace then i did a build with classes instrumenting without
do any test:
     [echo] Executing cobertura instrument Classes
    [mkdir] Created dir: C:\User\harry\workspace\myApp\target\cobertura
    [mkdir] Created dir:
C:\User\harry\workspace\myApp\target\generated-classes\cobertura
[cobertura-instrument] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) -
See COPYRIGHT file
[cobertura-instrument] Instrumenting 488 files to
C:\User\harry\workspace\myApp\target\generated-classes\cobertura
[cobertura-instrument] Cobertura: Saved information on 488 classes.
[cobertura-instrument] Instrument time: 1232ms
.....
Then i launched the report generation:
     [echo] Executing cobertura report
[cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See
COPYRIGHT file
[cobertura-report] Cobertura: Loaded information on 782 classes.
[cobertura-report] Report time: 3760ms
It passed successfully.
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.
 | 
| 
      
      
      From: John W. L. <Joh...@sa...> - 2013-06-28 14:01:32
       | 
| 
That tells me the data file may be getting corrupted during the testing.   I wonder if the test process is getting enough time to shut down gracefully after the data dump finishes.
You did not show how the tests are being kicked off.
John
-----Original Message-----
From: Harry Callahan [mailto:har...@bb...] 
Sent: Friday, June 28, 2013 9:45 AM
To: cob...@li...
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: C:\User\harry\workspace\myApp\target\cobertura
    [mkdir] Created dir:
C:\User\harry\workspace\myApp\target\generated-classes\cobertura
[cobertura-instrument] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-instrument] Instrumenting 488 files to C:\User\harry\workspace\myApp\target\generated-classes\cobertura
[cobertura-instrument] Cobertura: Saved information on 488 classes.
[cobertura-instrument] Instrument time: 1232ms
.....
Then i launched the report generation:
     [echo] Executing cobertura report
[cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [cobertura-report] Cobertura: Loaded information on 782 classes.
[cobertura-report] Report time: 3760ms
It passed successfully.
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.
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Cobertura-devel mailing list
Cob...@li...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
 | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-06-28 14:25:33
       | 
| [INFO] [INFO] [surefire:test {execution: default-test}]
[INFO] [INFO] Surefire report directory:
C:\User\harry\workspace\myApp\target\surefire-reports
The first test...
.....
......
The tests duration is about 13 minutes.
....
The come the last test....
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.29
sec
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results...
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Flushing results done
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] Cobertura: Saved information on 782 classes.
[INFO] Cobertura: Loaded information on 782 classes.
[INFO] 
[INFO] Results :
[INFO] 
[INFO] Tests run: 845, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] [INFO] [war:war {execution: default-war}]
[INFO] [INFO] Packaging webapp
....
....
[INFO] [INFO] [site:site {execution: default-site}]
[INFO] [INFO] [antrun:run {execution: CoverageTest}]
[INFO] [INFO] Executing tasks
[INFO] ReportCobertura:
[INFO]      [echo] Executing cobertura report
[INFO] [cobertura-report] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY)
- See COPYRIGHT file
[INFO] [cobertura-report] Cobertura: Error reading file
/users2/jip01/luntbuild-work/ulyX86/efriu/target/cobertura/cobertura.ser:
null
[INFO] [cobertura-report] Error: Unable to read from data file
/users2/jip01/luntbuild-work/ulyX86/efriu/target/cobertura/cobertura.ser
How can i give you more precision?
Regards
--
View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3335.html
Sent from the cobertura-devel mailing list archive at Nabble.com.
 | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-02 10:18:06
       | 
| Hi back I have a lot of test classes which use PowerMock framework. I remove half of them and the coverage report generation was successful. I believed such issue with PowerMock were fixed. Is there a mean to avoid such problem? Thanks for your reply Harry. -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3342.html Sent from the cobertura-devel mailing list archive at Nabble.com. | 
| 
      
      
      From: Steven C. <sch...@gm...> - 2013-07-03 05:11:37
       | 
| I'm not sure I understand the issue. Cobertura only instruments whatever you specify you want instrumented. If you include the PowerMock jar in instrumentation then the jar will also appear in your .ser file. If you specify the --includeClasses argument in your instrument part, then it will only instrument the packages you mention. Also what version of cobertura are you using? Thanks, Steve. On 07/02/2013 05:17 AM, Harry Callahan wrote: > Hi back > > I have a lot of test classes which use PowerMock framework. > > I remove half of them and the coverage report generation was successful. > > I believed such issue with PowerMock were fixed. > > Is there a mean to avoid such problem? > > Thanks for your reply > > Harry. > > > > > > > -- > View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3342.html > Sent from the cobertura-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-05 14:36:19
       | 
| Hello Steve What i mean is my test classes call PowerMock methods. My PowerMock jar *is not included* in instrumentation. (Why should i instrument PowerMock jar?) I instrument all my test classes. I use 1.9.4.1 cobertura version with ant tasks. Sincerly Harry -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3346.html Sent from the cobertura-devel mailing list archive at Nabble.com. | 
| 
      
      
      From: Steven C. <sch...@gm...> - 2013-07-05 14:44:14
       | 
| On 07/05/2013 09:36 AM, Harry Callahan wrote: > Hello Steve > > What i mean is my test classes call PowerMock methods. > > My PowerMock jar *is not included* in instrumentation. (Why should i > instrument PowerMock jar?) > I instrument all my test classes. > > I use 1.9.4.1 cobertura version with ant tasks. > > Sincerly > > Harry > > > > > -- > View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3346.html > Sent from the cobertura-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel How does your instrumentation task look like? Are you using ant or command line? | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-10 13:45:59
       | 
| Hello Steve. Sorry for the delay. My instrumentation task is launch by ant through Maven (Maven Ant Tasks). Here is my build.xml file: build.xml <http://cobertura.996293.n3.nabble.com/file/n3353/build.xml> Here is the Ant plugin config in my pom.xml: pom_extract.xml <http://cobertura.996293.n3.nabble.com/file/n3353/pom_extract.xml> Instrumenting task is binded to process-classes phase. Report generation is binded to site phase. 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. | 
| 
      
      
      From: Steven C. <sch...@gm...> - 2013-07-10 14:42:52
       | 
| I get an error when viewing the pom_extract.xml file
      This page contains the following errors:
error on line 62 at column 1: Extra content at the end of the document
      Below is a rendering of the page up to the first error.
org.apache.maven.pluginsmaven-antrun-plugincobertura-instrumentprocess-classesrungenererRapportCouvertureTestsiterunant-contribant-contrib1.0b3antantnet.sourceforge.coberturacobertura1.9.4.1trueorg.apache.antant-jdepend1.8.2xalanxalan2.7.1
On 07/10/2013 08:45 AM, Harry Callahan wrote:
> Hello Steve.
>
> Sorry for the delay.
>
> My instrumentation task is launch by ant through Maven (Maven Ant Tasks).
>
> Here is my build.xml file:
> build.xml <http://cobertura.996293.n3.nabble.com/file/n3353/build.xml>
>
> Here is the Ant plugin config in my pom.xml:
> pom_extract.xml
> <http://cobertura.996293.n3.nabble.com/file/n3353/pom_extract.xml>
>
> Instrumenting task is binded to process-classes phase.
> Report generation is binded to site phase.
>
> 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.
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Cobertura-devel mailing list
> Cob...@li...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
 | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-10 16:07:11
       | 
| Here is the full pom.xml: pom.xml <http://cobertura.996293.n3.nabble.com/file/n3355/pom.xml> I also noticed an interesting thing: After running maven test phase (mvn test), the cobertura.ser.lock file is still present in cobertura .ser file directory. -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3355.html Sent from the cobertura-devel mailing list archive at Nabble.com. | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-11 06:51:08
       | 
| I've upgraded from cobertura version 1.9.4.1 to the last version (2.0.2). The problem is still the same although the ant task is more verbose: [cobertura-report] java.io.EOFException [cobertura-report] at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2553) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) [cobertura-report] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [cobertura-report] at java.util.HashMap.readObject(HashMap.java:1030) [cobertura-report] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) [cobertura-report] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479) [cobertura-report] at net.sourceforge.cobertura.coveragedata.CoverageDataContainer.readObject(CoverageDataContainer.java:321) [cobertura-report] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [cobertura-report] at java.util.HashMap.readObject(HashMap.java:1030) [cobertura-report] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) [cobertura-report] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479) [cobertura-report] at net.sourceforge.cobertura.coveragedata.CoverageDataContainer.readObject(CoverageDataContainer.java:321) [cobertura-report] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [cobertura-report] at java.util.HashMap.readObject(HashMap.java:1030) [cobertura-report] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [cobertura-report] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946) [cobertura-report] at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479) [cobertura-report] at net.sourceforge.cobertura.coveragedata.CoverageDataContainer.readObject(CoverageDataContainer.java:321) [cobertura-report] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [cobertura-report] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [cobertura-report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [cobertura-report] at java.lang.reflect.Method.invoke(Method.java:597) [cobertura-report] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:969) [cobertura-report] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848) [cobertura-report] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752) [cobertura-report] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328) [cobertura-report] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) [cobertura-report] at net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.loadCoverageData(CoverageDataFileHandler.java:84) [cobertura-report] at net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.loadCoverageData(CoverageDataFileHandler.java:61) [cobertura-report] at net.sourceforge.cobertura.reporting.Main.parseArguments(Main.java:92) [cobertura-report] at net.sourceforge.cobertura.reporting.Main.main(Main.java:169) [cobertura-report] Error: Unable to read from data file C:\User\harry\workspaceBusiness\efriu\target\cobertura\cobertura.ser So the maybe problem come that the cobertura.ser file generation is corrupted. I think the flushing process is not finished correctly because the cobertura.ser.locks file is still present after the flushing. If i remove 50% percents of my test classes, the whole process is successfull. Maybe the huge test quantity makes the process failing. -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3356.html Sent from the cobertura-devel mailing list archive at Nabble.com. | 
| 
      
      
      From: Harry C. <har...@bb...> - 2013-07-17 20:44:58
       | 
| Fortunately, i've found a way to resolve this issue. Instead of launching junit tests through Maven Surefire Plugin, i ran instead junit ant task through Maven AntRun plugin. I set maxmemory=1024M and injected -XX:MaxPermsize=2048M through jvmargs tag. The cobertura.ser seems to be completely generated (no cobertura.ser.lock remaining). The report generation completed successfully. I will open a Surefire issue as it seems to abruptly stop the cobertura.ser file generation. Thanks for your help. Harry -- View this message in context: http://cobertura.996293.n3.nabble.com/Unable-to-read-cobertura-ser-tp3330p3361.html Sent from the cobertura-devel mailing list archive at Nabble.com. |