Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clover HTML report generation failed with com.atlassian.clover.api.CloverException: java.lang.ArrayI

We are trying to move our projects from one jenkins(RHEL 6.9) to other one(RHEL 7.4). Everything is working fine in old jenkins when we run these goals.

mvn clover2:setup install -P <profile_id> 

mvn clover2:clover -N 

It is failing in new jenkins in second maven goal. Here's the full stack trace. 

 

Execution default-cli of goal com.atlassian.maven.plugins:maven-clover2-plugin:3.2.0:clover failed: com.atlassian.clover.api.CloverException: java.lang.ArrayIndexOutOfBoundsException: 0

    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 default-cli of goal com.atlassian.maven.plugins:maven-clover2-plugin:3.2.0:clover failed: com.atlassian.clover.api.CloverException: java.lang.ArrayIndexOutOfBoundsException: 0

    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: org.apache.tools.ant.BuildException: com.atlassian.clover.api.CloverException: java.lang.ArrayIndexOutOfBoundsException: 0

    at com.atlassian.clover.ant.tasks.CloverReportTask.cloverExecute (CloverReportTask.java:387)

    at com.atlassian.clover.ant.tasks.AbstractCloverTask.execute (AbstractCloverTask.java:55)

    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:291)

    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.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)

    at org.apache.tools.ant.Task.perform (Task.java:348)

    at org.apache.tools.ant.Target.execute (Target.java:392)

    at org.apache.tools.ant.Target.performTasks (Target.java:413)

    at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1399)

    at org.apache.tools.ant.Project.executeTarget (Project.java:1368)

    at com.atlassian.maven.plugin.clover.CloverReportMojo.createReport (CloverReportMojo.java:426)

    at com.atlassian.maven.plugin.clover.CloverReportMojo.createAllReportTypes (CloverReportMojo.java:373)

    at com.atlassian.maven.plugin.clover.CloverReportMojo.executeReport (CloverReportMojo.java:357)

    at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:135)

    at org.apache.maven.reporting.AbstractMavenReport.execute (AbstractMavenReport.java:87)

    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)

Caused by: com.atlassian.clover.api.CloverException: java.lang.ArrayIndexOutOfBoundsException: 0

    at com.atlassian.clover.reporters.html.HtmlReporter.executeImpl (HtmlReporter.java:195)

    at com.atlassian.clover.reporters.CloverReporter.execute (CloverReporter.java:41)

    at com.atlassian.clover.ant.tasks.CloverReportTask.generateReports (CloverReportTask.java:424)

    at com.atlassian.clover.ant.tasks.CloverReportTask.cloverExecute (CloverReportTask.java:384)

    at com.atlassian.clover.ant.tasks.AbstractCloverTask.execute (AbstractCloverTask.java:55)

    at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:291)

    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)

 

1 answer

What version of Clover do you use? Did you try with the latest version of OpenClover?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

What is a Trello board?

Hi, Atlassian Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trel...

29 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you