You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@hotmail.com> on 2005/09/06 23:44:19 UTC

[report] java.io.FileNotFoundException: jcoverage.ser (The system cannot find...

I am having an issue with the second of 3 sub-projects, using jcoverage.
The 1st time it runs just fine, but on the 2nd time it runs and I get the 
following error that I can figure out how to correct, Can anyone help me:




instrumenting the class-files...
jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/
jcoverage is licensed under the GNU General Public License jcoverage comes 
with ABSOLUTELY NO WARRANTY instrumenting 595 classes to 
C:\opt\local\blackhawk\FastForward_AppServer\fastforward\soapservice-ejbjar-subproject\target\jcoverage\classes

jcoverage:on:
    [instrument] [ERROR] java.io.IOException: CreateProcess:
C:\j2sdk1.4.2_08\jre\bin\java.exe -classpath "C:\Documents and
Settings\mknut01\.maven\repository\jcoverage\jars\jcoverage-1.0.5.jar;C:\Documents 
and
Settings\mknut01\.maven\repository\bcel\jars\bcel-5.1.jar;C:\Documents
and 
Settings\mknut01\.maven\repository\urbanophile\jars\java-getopt-1.0.9.jar;C:\Documents
and 
Settings\mknut01\.maven\repository\log4j\jars\log4j-1.2.8.jar;C:\Documents 
and Settings\mknut01\.maven\repository\oro\jars\oro-2.0.7.jar;C:\Documents
and 
Settings\mknut01\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Documents 
and 
Settings\mknut01\.maven\repository\xerces\jars\xercesImpl-2.4.0.jar;C:\Documents
and Settings\mknut01\.maven\reposi tory\xerces\jars\xmlParserAPIs-2.2.1.jar" 
com.jcoverage.coverage.Instrument -d 
C:\opt\local\blackhawk\FastForward_AppServer\fastforward\soapservi
ce-ejbjar-subproject\target\jcoverage\classes -basedir 
C:\opt\local\blackhawk\FastForward_AppServer\fastforward\soapservice-ejbjar-subproject\tar

get\classes com\blackhawk\ff\ConsumerSearch\schemas\Emaƶ
jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/
jcoverage is licensed under the GNU General Public License
jcoverage comes with ABSOLUTELY NO WARRANTY

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:

jcoverage:html-report:
    [report] java.io.FileNotFoundException: jcoverage.ser (The system
cannot find the file specified)
    [report] at java.io.FileInputStream.open(Native Method)
    [report] at java.io.FileInputStream.<init>(FileInputStream.java:106)
    [report] at 
com.jcoverage.coverage.reporting.xml.Main.main(Main.java:106)
    [report] Exception in thread "main" 
org.apache.commons.jelly.JellyTagException: C:\Documents and 
Settings\mknut01\.maven\cache\maven-jcoverage-plugin-1.0.9\plugin.jelly:191:91:
<report> org.apache.tools.ant.BuildException

BUILD FAILED
File...... C:\Documents and
Settings\mknut01\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jelly

Element... maven:reactor
Line...... 104
Column.... 9
Unable to obtain goal [site] -- C:\Documents and
Settings\mknut01\.maven\cache\maven-jcoverage-plugin-1.0.9\plugin.jelly:216:39:
<ant:fail> org.a
pache.commons.jelly.JellyTagException: C:\Documents and
Settings\mknut01\.maven\cache\maven-jcoverage-plugin-1.0.9\plugin.jelly:191:91:
<report>
org.apache.tools.ant.BuildException
Total time: 5 minutes 41 seconds
Finished at: Tue Sep 06 14:24:49 PDT 2005





-------------------------------------------------------------
Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [report] java.io.FileNotFoundException: jcoverage.ser (The system cannot find...

Posted by Andy Glick <an...@acm.org>.
Mick Knutson wrote:

... snip ...

> get\classes com\blackhawk\ff\ConsumerSearch\schemas\Emaƶ
> jcoverage 1.0.5 copyright (c)2003 jcoverage ltd. http://jcoverage.com/
> jcoverage is licensed under the GNU General Public License
> jcoverage comes with ABSOLUTELY NO WARRANTY
> 
> java:jar-resources:
> 
> test:prepare-filesystem:
> 
> test:test-resources:
> 
> test:compile:
> 
> test:test:
> 
> jcoverage:html-report:
>    [report] java.io.FileNotFoundException: jcoverage.ser (The system
> cannot find the file specified)
>    [report] at java.io.FileInputStream.open(Native Method)
>    [report] at java.io.FileInputStream.<init>(FileInputStream.java:106)
>    [report] at 
> com.jcoverage.coverage.reporting.xml.Main.main(Main.java:106)
>    [report] Exception in thread "main" 
> org.apache.commons.jelly.JellyTagException: C:\Documents and 
> Settings\mknut01\.maven\cache\maven-jcoverage-plugin-1.0.9\plugin.jelly:191:91: 
> 
> <report> org.apache.tools.ant.BuildException
> 
> BUILD FAILED
> File...... C:\Documents and
> Settings\mknut01\.maven\cache\maven-multiproject-plugin-1.4.1\plugin.jelly
> 
> Element... maven:reactor
> Line...... 104
> Column.... 9
> Unable to obtain goal [site] -- C:\Documents and
> Settings\mknut01\.maven\cache\maven-jcoverage-plugin-1.0.9\plugin.jelly:216:39: 
> 
> <ant:fail> org.a
> pache.commons.jelly.JellyTagException: C:\Documents and

Mick, from what I can see above, no tests are being executed so no jcoverage.ser file is being created in ${basedir}. If even 1 test had executed I would expect to see some sort of junit output. When the plugin goes to access the coverage data, which it expects to find in the jcoverage.ser file, it throws a file not found exception, which seems like the proper behavior.

I imagine that you have test classes in your subproject, any idea why they aren't executing during the jcoverage runs? If you issue the command "maven test", do they run?

Might you have the maven.test.skip property set to true in some properties file?

Hope that this helps


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org