Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException failures when using JSON, METHODS, ISSUES output formats #69

Closed
vmassol opened this issue Jul 14, 2018 · 1 comment
Labels

Comments

@vmassol
Copy link
Contributor

vmassol commented Jul 14, 2018

To reproduce:

  • Git clone xwiki-commons
  • From the top level execute mvn clean install -Pquality -Dxwiki.pitest.skip=false -e

You'll get:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] XWiki Commons - Parent POM ......................... SUCCESS [  1.954 s]
[INFO] XWiki Commons - Tools - Parent POM ................. SUCCESS [  0.061 s]
[INFO] XWiki Commons - Tools - Verification Resources ..... SUCCESS [ 13.511 s]
[INFO] XWiki Commons - Tools - Remote Resource Plugin ..... SUCCESS [  3.974 s]
[INFO] XWiki Commons - Tools - License Resources .......... SUCCESS [  0.230 s]
[INFO] XWiki Commons - Tools - Enforcers .................. SUCCESS [  1.372 s]
[INFO] XWiki Commons - Tools - Banned Dependencies Enforcer SUCCESS [  0.573 s]
[INFO] XWiki Commons - Tools - Spoon Processor ............ SUCCESS [  0.389 s]
[INFO] XWiki Commons - Root POM ........................... SUCCESS [  1.206 s]
[INFO] XWiki Commons - Tools - Test Framework - Parent POM  SUCCESS [  0.144 s]
[INFO] XWiki Commons - Tools - Test Framework - Simple .... SUCCESS [  5.449 s]
[INFO] XWiki Commons - Core - Parent POM .................. SUCCESS [  0.529 s]
[INFO] XWiki Commons - Stability .......................... SUCCESS [  2.503 s]
[INFO] XWiki Commons - Text ............................... SUCCESS [  5.790 s]
[INFO] XWiki Commons - Component - Parent POM ............. SUCCESS [  0.203 s]
[INFO] XWiki Commons - Component - API .................... SUCCESS [ 11.215 s]
[INFO] XWiki Commons - Observation - Parent POM ........... SUCCESS [  0.377 s]
[INFO] XWiki Commons - Observation - API .................. SUCCESS [ 13.609 s]
[INFO] XWiki Commons - Component - Observation ............ SUCCESS [  6.061 s]
[INFO] XWiki Commons - Component - Default Implementation . SUCCESS [ 15.187 s]
[INFO] XWiki Commons - Context ............................ SUCCESS [ 10.653 s]
[INFO] XWiki Commons - Configuration - Parent POM ......... SUCCESS [  0.220 s]
[INFO] XWiki Commons - Configuration - API ................ SUCCESS [  1.001 s]
[INFO] XWiki Commons - Tools - Test Framework - Component . SUCCESS [ 10.601 s]
[INFO] XWiki Commons - Blame .............................. SUCCESS [  0.377 s]
[INFO] XWiki Commons - Blame - API ........................ SUCCESS [  4.952 s]
[INFO] XWiki Commons - Loggging ........................... SUCCESS [  0.313 s]
[INFO] XWiki Commons - Logging - API ...................... SUCCESS [  9.763 s]
[INFO] XWiki Commons - Diff ............................... SUCCESS [  0.191 s]
[INFO] XWiki Commons - Diff API ........................... SUCCESS [  5.751 s]
[INFO] XWiki Commons - Diff Display API ................... SUCCESS [  6.517 s]
[INFO] XWiki Commons - Script ............................. SUCCESS [  5.867 s]
[INFO] XWiki Commons - Blame - Script Service ............. SUCCESS [  0.714 s]
[INFO] XWiki Commons - Environment - Parent POM ........... SUCCESS [  0.182 s]
[INFO] XWiki Commons - Environment - API .................. SUCCESS [  0.400 s]
[INFO] XWiki Commons - Cache - Parent POM ................. SUCCESS [  0.107 s]
[INFO] XWiki Commons - Cache - API ........................ SUCCESS [  0.723 s]
[INFO] XWiki Commons - Cache - Tests ...................... SUCCESS [  0.764 s]
[INFO] XWiki Commons - Cache - Infinispan ................. FAILURE [  8.928 s]
[INFO] XWiki Commons - ClassLoader - Parent POM ........... SKIPPED
[INFO] XWiki Commons - ClassLoader - API .................. SKIPPED
[INFO] XWiki Commons - ClassLoader - Protocols - Parent POM SKIPPED
[INFO] XWiki Commons - ClassLoader - Protocols - JAR ...... SKIPPED
[INFO] XWiki Commons - Component - Component Archetype .... SKIPPED
[INFO] XWiki Commons - Crypto ............................. SKIPPED
[INFO] XWiki Commons - Crypto - Common API ................ SKIPPED
[INFO] XWiki Commons - Crypto - Cipher API ................ SKIPPED
[INFO] XWiki Commons - Crypto - Password API .............. SKIPPED
[INFO] XWiki Commons - Crypto - Signer API ................ SKIPPED
[INFO] XWiki Commons - Crypto - PKI API ................... SKIPPED
[INFO] XWiki Commons - Crypto - Store ..................... SKIPPED
[INFO] XWiki Commons - Cryptographic Services - Storage API SKIPPED
[INFO] XWiki Commons - Cryptographic Services - Storage Filesystem SKIPPED
[INFO] XWiki Commons - Environment - Common ............... SKIPPED
[INFO] XWiki Commons - Environment - Standard ............. SKIPPED
[INFO] XWiki Commons - Environment - Servlet .............. SKIPPED
[INFO] XWiki Commons - Properties ......................... SKIPPED
[INFO] XWiki Commons - Observation - Local ................ SKIPPED
[INFO] XWiki Commons - Job ................................ SKIPPED
[INFO] XWiki Commons - Logging - Logback .................. SKIPPED
[INFO] XWiki Commons - Extension - Parent POM ............. SKIPPED
[INFO] XWiki Commons - Extension - API .................... SKIPPED
[INFO] XWiki Commons - Extension - Maven .................. SKIPPED
[INFO] XWiki Commons - Extension - Handler - Parent POM ... SKIPPED
[INFO] XWiki Commons - Extension - Handler - JAR .......... SKIPPED
[INFO] XWiki Commons - Extension - Repository - Parent POM  SKIPPED
[INFO] XWiki Commons - Extension - Repository - HTTP ...... SKIPPED
[INFO] XWiki Commons - Extension - Repository - Maven ..... SKIPPED
[INFO] XWiki Commons - Repository ......................... SKIPPED
[INFO] XWiki Commons - Repository - Model ................. SKIPPED
[INFO] XWiki Commons - Repository - API ................... SKIPPED
[INFO] XWiki Commons - Extension - Repository - XWiki ..... SKIPPED
[INFO] XWiki Commons - Extension - Repository - Maven - Snapshots Default Repository SKIPPED
[INFO] XWiki Commons - Filter - Parent POM ................ SKIPPED
[INFO] XWiki Commons - Filter - API ....................... SKIPPED
[INFO] XWiki Commons - XML ................................ SKIPPED
[INFO] XWiki Commons - Filter - XML ....................... SKIPPED
[INFO] XWiki Commons - Filter - Test framework ............ SKIPPED
[INFO] XWiki Commons - Filter - Events .................... SKIPPED
[INFO] XWiki Commons - Filter - Event - Extension ......... SKIPPED
[INFO] XWiki Commons - Filter - Streams ................... SKIPPED
[INFO] XWiki Commons - Filter - Stream - Generic XML ...... SKIPPED
[INFO] XWiki Commons - Groovy ............................. SKIPPED
[INFO] XWiki Commons - Management ......................... SKIPPED
[INFO] XWiki Commons - Velocity ........................... SKIPPED
[INFO] XWiki Commons - Diff Script API .................... SKIPPED
[INFO] XWiki Commons - Tools - Extension Plugin ........... SKIPPED
[INFO] XWiki Commons - Tools - XAR Tools .................. SKIPPED
[INFO] XWiki Commons - Tools - XAR Tools - XAR Plugin ..... SKIPPED
[INFO] XWiki Commons - Tools - XAR Tools - XAR Handlers ... SKIPPED
[INFO] XWiki Commons - Tools - WEBJAR XAR Handlers ........ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:33 min
[INFO] Finished at: 2018-07-14T11:35:47+02:00
[INFO] Final Memory: 141M/856M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.4.0:mutationCoverage (pitest-check) on project xwiki-commons-cache-infinispan: Execution pitest-check of goal org.pitest:pitest-maven:1.4.0:mutationCoverage failed: String index out of range: -1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.pitest:pitest-maven:1.4.0:mutationCoverage (pitest-check) on project xwiki-commons-cache-infinispan: Execution pitest-check of goal org.pitest:pitest-maven:1.4.0:mutationCoverage failed: String index out of range: -1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution pitest-check of goal org.pitest:pitest-maven:1.4.0:mutationCoverage failed: String index out of range: -1
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:145)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.AbstractStringBuilder.substring (AbstractStringBuilder.java:935)
    at java.lang.StringBuilder.substring (StringBuilder.java:76)
    at eu.stamp_project.mutationtest.descartes.reporting.IssuesReportListener.getStringTime (IssuesReportListener.java:162)
    at eu.stamp_project.mutationtest.descartes.reporting.IssuesReportListener.runEnd (IssuesReportListener.java:175)
    at org.pitest.mutationtest.config.CompoundTestListener.runEnd (CompoundTestListener.java:46)
    at org.pitest.mutationtest.execute.MutationAnalysisExecutor.lambda$signalRunEndToAllListeners$1 (MutationAnalysisExecutor.java:83)
    at org.pitest.functional.FCollection.forEach (FCollection.java:34)
    at org.pitest.mutationtest.execute.MutationAnalysisExecutor.signalRunEndToAllListeners (MutationAnalysisExecutor.java:82)
    at org.pitest.mutationtest.execute.MutationAnalysisExecutor.run (MutationAnalysisExecutor.java:60)
    at org.pitest.mutationtest.tooling.MutationCoverage.runReport (MutationCoverage.java:152)
    at org.pitest.mutationtest.tooling.EntryPoint.execute (EntryPoint.java:116)
    at org.pitest.mutationtest.tooling.EntryPoint.execute (EntryPoint.java:49)
    at org.pitest.maven.RunPitStrategy.execute (RunPitStrategy.java:35)
    at org.pitest.maven.AbstractPitMojo.analyse (AbstractPitMojo.java:436)
    at org.pitest.maven.AbstractPitMojo.execute (AbstractPitMojo.java:377)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :xwiki-commons-cache-infinispan
@vmassol vmassol changed the title Failures when using JSON, METHODS, ISSUES output formats StringIndexOutOfBoundsException failures when using JSON, METHODS, ISSUES output formats Jul 14, 2018
@oscarlvp oscarlvp added the bug label Jul 15, 2018
@oscarlvp
Copy link
Member

Fixed in commit 55e034f.

vmassol added a commit to xwiki/xwiki-commons that referenced this issue Jul 30, 2018
…s#69 and thus to be able to get ISSUES report type (i.e. pseudo-tested and partially-tested method highlights)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants