maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Orehov (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-1023) Report generation fails with StringIndexOutOfBoundsException
Date Mon, 19 Aug 2013 09:55:52 GMT

    [ https://jira.codehaus.org/browse/SUREFIRE-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=331068#comment-331068
] 

Pavel Orehov commented on SUREFIRE-1023:
----------------------------------------

Sorry, but I can't provide you specific information with such number of tests:
Tests run: 5273, Failures: 119, Errors: 2784, Skipped: 44

Anyway. I think it worth to handle that error case, print an error message, and continue with
valid reports creation.
                
> Report generation fails with StringIndexOutOfBoundsException
> ------------------------------------------------------------
>
>                 Key: SUREFIRE-1023
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1023
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.15
>         Environment: Linux with Maven 3.0.5
>            Reporter: Pavel Orehov
>            Priority: Blocker
>
> When Maven generating report for big project (3K+ junit tests) getting the following
error:
>  [exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-report-plugin:2.15:report
(default-cli) on project ana_classes: Execution default-cli of goal org.apache.maven.plugins:maven-surefire-report-plugin:2.15:report
failed: String index out of range: -1 -> [Help 1]
>      [exec] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-surefire-report-plugin:2.15:report (default-cli) on project
ana_classes: Execution default-cli of goal org.apache.maven.plugins:maven-surefire-report-plugin:2.15:report
failed: String index out of range: -1
>      [exec] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>      [exec] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>      [exec] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>      [exec] 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>      [exec] 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>      [exec] 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>      [exec] 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>      [exec] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>      [exec] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>      [exec] 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>      [exec] 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>      [exec] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>      [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [exec] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [exec] 	at java.lang.reflect.Method.invoke(Method.java:597)
>      [exec] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>      [exec] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>      [exec] 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>      [exec] 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>      [exec] Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli
of goal org.apache.maven.plugins:maven-surefire-report-plugin:2.15:report failed: String index
out of range: -1
>      [exec] 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>      [exec] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>      [exec] 	... 19 more
>      [exec] Caused by: java.lang.StringIndexOutOfBoundsException: String index out of
range: -1
>      [exec] 	at java.lang.String.substring(String.java:1937)
>      [exec] 	at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.getErrorLineNumber(SurefireReportGenerator.java:677)
>      [exec] 	at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.constructFailureDetails(SurefireReportGenerator.java:640)
>      [exec] 	at org.apache.maven.plugins.surefire.report.SurefireReportGenerator.doGenerateReport(SurefireReportGenerator.java:104)
>      [exec] 	at org.apache.maven.plugins.surefire.report.AbstractSurefireReportMojo.executeReport(AbstractSurefireReportMojo.java:184)
>      [exec] 	at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
>      [exec] 	at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99)
>      [exec] 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>      [exec] 	... 20 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message