[
http://jira.codehaus.org/browse/MCOBERTURA-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264526#action_264526
]
Benson Margulies commented on MCOBERTURA-91:
--------------------------------------------
Is this an NFS file system?
> Intermittent Error reading cobertura.ser: illegal handle value or null
> ----------------------------------------------------------------------
>
> Key: MCOBERTURA-91
> URL: http://jira.codehaus.org/browse/MCOBERTURA-91
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Linux RHEL 4, maven 2.0.9, surefire 2.4.1
> Reporter: Lou S
>
> When I run the cobertura 2.2 plugin from Windows, the report is always
> generated using the site goal. However, when I promote this to run on our CI
> server (which is Linux), I get the following stacktrace about 70% of the time:
> {code}
> [ERROR] Cobertura: Error reading file
> /local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/target/cobertura/cobertura.ser:
> illegal handle value
> Error: Unable to read from data file
> /local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/target/cobertura/cobertura.ser
> [DEBUG] --------------------
> [ERROR] Error in Cobertura Report generation: Unable to generate Cobertura
> Report for project.
> org.apache.maven.plugin.MojoExecutionException: Unable to generate Cobertura
> Report for project.
> at
> org.codehaus.mojo.cobertura.tasks.ReportTask.execute(ReportTask.java:89)
> at
> org.codehaus.mojo.cobertura.CoberturaReportMojo.executeReportTask(CoberturaReportMojo.java:176)
> at
> org.codehaus.mojo.cobertura.CoberturaReportMojo.executeReport(CoberturaReportMojo.java:217)
> at
> org.codehaus.mojo.cobertura.CoberturaReportMojo.generate(CoberturaReportMojo.java:165)
> at
> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> {code}
> I've hardcode the JVM for both surefire and cobertura as well as adding
> -Dnet.sourceforge.cobertura.datafile=/local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/target/cobertura/cobertura.ser,
> but that only seems to help some of the time.
> java -cp
> :/local/mnt/cruisecontrol/repository/net/sourceforge/cobertura/cobertura/1.9/cobertura-1.9.jar:/local/mnt/cruisecontrol/repository/oro/oro/2.0.8/oro-2.0.8.jar:/local/mnt/cruisecontrol/repository/asm/asm/2.2.1/asm-2.2.1.jar:/local/mnt/cruisecontrol/repository/asm/asm-tree/2.2.1/asm-tree-2.2.1.jar:/local/mnt/cruisecontrol/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar:/local/mnt/cruisecontrol/repository/org/apache/ant/ant/1.7.0/ant-1.7.0.jar:/local/mnt/cruisecontrol/repository/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar:/local/mnt/cruisecontrol/repository/net/sourceforge/cobertura/cobertura-runtime/1.9/cobertura-runtime-1.9.pom:/local/mnt/cruisecontrol/repository/urbanophile/java-getopt/1.0.9/java-getopt-1.0.9.jar:/local/mnt/cruisecontrol/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/local/mnt/cruisecontrol/repository/org/apache/maven/reporting/maven-reporting-impl/2.0/maven-reporting-impl-2.0.jar:/local/mnt/cruisecontrol/repository/commons-validator/commons-validator/1.1.4/commons-validator-1.1.4.jar:/local/mnt/cruisecontrol/repository/doxia/doxia-core/1.0-alpha-4/doxia-core-1.0-alpha-4.jar:/local/mnt/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar:/local/mnt/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar:/local/mnt/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar:/local/mnt/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar:/local/mnt/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
>
> -Dlog4j.configuration=file:/tmp/log4j27020config.properties
> -Xmx64m
> net.sourceforge.cobertura.reporting.Main
> --source
> /local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/src/main/java
>
> --destination
> /local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/target/site/cobertura
>
> --datafile
> /local/mnt/cruisecontrol/projects/PCNRequestApproval/PCNRequestApprovalWeb/target/cobertura/cobertura.ser
>
> --format html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email