java.lang.ArrayIndexOutOfBoundsException: 0

Atlassian JIRA | Nick Pellow [Atlassian] | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The following has been reported using version 2.4.3 of clover on developer.bamboo.atlassian.com . [Full Build Log|http://bamboo.developer.atlassian.com/build/viewBuildLog.action?buildKey=ATLASSIANPLUGINS-COV&buildNumber=283] . I can't seem to reproduce this locally. {code} r-2009 06:27:06 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:06 [INFO] Building Atlassian Plugins - Parent POM 10-Mar-2009 06:27:06 [INFO] task-segment: [clover2:aggregate] (aggregator-style) 10-Mar-2009 06:27:06 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:06 [INFO] [clover2:aggregate] 10-Mar-2009 06:27:06 [INFO] No 'maven.clover.licenseLocation' configured. Using default evaluation license. 10-Mar-2009 06:27:14 Merging database 1 of 14 10-Mar-2009 06:27:14 Merging database 2 of 14 10-Mar-2009 06:27:15 Merging database 3 of 14 10-Mar-2009 06:27:15 Merging database 4 of 14 10-Mar-2009 06:27:15 Merging database 5 of 14 10-Mar-2009 06:27:15 [INFO] Error writing new clover db '/opt/j2ee/domains/developer.atlassian.com/bamboo/webapps/atlassian-bamboo/data/bamboohome-PRE-CNT-20080623.59005.RESTORED/xml-data/build-dir/ATLASSIANPLUGINS-COV/target/clover/cloverMerge.db 10-Mar-2009 06:27:15 java.lang.ArrayIndexOutOfBoundsException: 0 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageRecordingTranscript$FromStream.addTo(CoverageRecordingTranscript.java:40) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator$1.visitFileInfo(CoverageDataCollator.java:102) 10-Mar-2009 06:27:15 at com.cenqua.clover.registry.BasePackageInfo.visitFiles(BasePackageInfo.java:153) 10-Mar-2009 06:27:15 at com.cenqua.clover.registry.BaseProjectInfo.visitFiles(BaseProjectInfo.java:184) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator.collateRecordingFiles(CoverageDataCollator.java:98) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator.loadCoverageData(CoverageDataCollator.java:44) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:110) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:105) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.merge(CloverDatabase.java:282) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverMerge.mainImpl(CloverMerge.java:34) 10-Mar-2009 06:27:15 at com.atlassian.maven.plugin.clover.CloverAggregateMojo.mergeCloverDatabases(CloverAggregateMojo.java:260) 10-Mar-2009 06:27:15 at com.atlassian.maven.plugin.clover.CloverAggregateMojo.execute(CloverAggregateMojo.java:79) 10-Mar-2009 06:27:15 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) 10-Mar-2009 06:27:15 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) 10-Mar-2009 06:27:15 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) 10-Mar-2009 06:27:15 at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 10-Mar-2009 06:27:15 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10-Mar-2009 06:27:15 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10-Mar-2009 06:27:15 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10-Mar-2009 06:27:15 at java.lang.reflect.Method.invoke(Method.java:585) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:15 [ERROR] BUILD ERROR 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:15 [INFO] Clover has failed to merge the children module databases 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ {code}

    Atlassian JIRA | 8 years ago | Nick Pellow [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: 0
  2. 0

    The following has been reported using version 2.4.3 of clover on developer.bamboo.atlassian.com . [Full Build Log|http://bamboo.developer.atlassian.com/build/viewBuildLog.action?buildKey=ATLASSIANPLUGINS-COV&buildNumber=283] . I can't seem to reproduce this locally. {code} r-2009 06:27:06 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:06 [INFO] Building Atlassian Plugins - Parent POM 10-Mar-2009 06:27:06 [INFO] task-segment: [clover2:aggregate] (aggregator-style) 10-Mar-2009 06:27:06 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:06 [INFO] [clover2:aggregate] 10-Mar-2009 06:27:06 [INFO] No 'maven.clover.licenseLocation' configured. Using default evaluation license. 10-Mar-2009 06:27:14 Merging database 1 of 14 10-Mar-2009 06:27:14 Merging database 2 of 14 10-Mar-2009 06:27:15 Merging database 3 of 14 10-Mar-2009 06:27:15 Merging database 4 of 14 10-Mar-2009 06:27:15 Merging database 5 of 14 10-Mar-2009 06:27:15 [INFO] Error writing new clover db '/opt/j2ee/domains/developer.atlassian.com/bamboo/webapps/atlassian-bamboo/data/bamboohome-PRE-CNT-20080623.59005.RESTORED/xml-data/build-dir/ATLASSIANPLUGINS-COV/target/clover/cloverMerge.db 10-Mar-2009 06:27:15 java.lang.ArrayIndexOutOfBoundsException: 0 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageRecordingTranscript$FromStream.addTo(CoverageRecordingTranscript.java:40) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator$1.visitFileInfo(CoverageDataCollator.java:102) 10-Mar-2009 06:27:15 at com.cenqua.clover.registry.BasePackageInfo.visitFiles(BasePackageInfo.java:153) 10-Mar-2009 06:27:15 at com.cenqua.clover.registry.BaseProjectInfo.visitFiles(BaseProjectInfo.java:184) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator.collateRecordingFiles(CoverageDataCollator.java:98) 10-Mar-2009 06:27:15 at com.cenqua.clover.CoverageDataCollator.loadCoverageData(CoverageDataCollator.java:44) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:110) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:105) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverDatabase.merge(CloverDatabase.java:282) 10-Mar-2009 06:27:15 at com.cenqua.clover.CloverMerge.mainImpl(CloverMerge.java:34) 10-Mar-2009 06:27:15 at com.atlassian.maven.plugin.clover.CloverAggregateMojo.mergeCloverDatabases(CloverAggregateMojo.java:260) 10-Mar-2009 06:27:15 at com.atlassian.maven.plugin.clover.CloverAggregateMojo.execute(CloverAggregateMojo.java:79) 10-Mar-2009 06:27:15 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) 10-Mar-2009 06:27:15 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) 10-Mar-2009 06:27:15 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) 10-Mar-2009 06:27:15 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) 10-Mar-2009 06:27:15 at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 10-Mar-2009 06:27:15 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10-Mar-2009 06:27:15 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10-Mar-2009 06:27:15 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10-Mar-2009 06:27:15 at java.lang.reflect.Method.invoke(Method.java:585) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 10-Mar-2009 06:27:15 at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:15 [ERROR] BUILD ERROR 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ 10-Mar-2009 06:27:15 [INFO] Clover has failed to merge the children module databases 10-Mar-2009 06:27:15 [INFO] ------------------------------------------------------------------------ {code}

    Atlassian JIRA | 8 years ago | Nick Pellow [Atlassian]
    java.lang.ArrayIndexOutOfBoundsException: 0

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      0

      at com.cenqua.clover.CoverageRecordingTranscript$FromStream.addTo()
    2. com.cenqua.clover
      CloverMerge.mainImpl
      1. com.cenqua.clover.CoverageRecordingTranscript$FromStream.addTo(CoverageRecordingTranscript.java:40)
      2. com.cenqua.clover.CoverageDataCollator$1.visitFileInfo(CoverageDataCollator.java:102)
      3. com.cenqua.clover.registry.BasePackageInfo.visitFiles(BasePackageInfo.java:153)
      4. com.cenqua.clover.registry.BaseProjectInfo.visitFiles(BaseProjectInfo.java:184)
      5. com.cenqua.clover.CoverageDataCollator.collateRecordingFiles(CoverageDataCollator.java:98)
      6. com.cenqua.clover.CoverageDataCollator.loadCoverageData(CoverageDataCollator.java:44)
      7. com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:110)
      8. com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:105)
      9. com.cenqua.clover.CloverDatabase.merge(CloverDatabase.java:282)
      10. com.cenqua.clover.CloverMerge.mainImpl(CloverMerge.java:34)
      10 frames
    3. com.atlassian.maven
      CloverAggregateMojo.execute
      1. com.atlassian.maven.plugin.clover.CloverAggregateMojo.mergeCloverDatabases(CloverAggregateMojo.java:260)
      2. com.atlassian.maven.plugin.clover.CloverAggregateMojo.execute(CloverAggregateMojo.java:79)
      2 frames
    4. Maven Plugin
      DefaultPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
      1 frame
    5. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
      2. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
      3. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
      4. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
      5. org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
      6. org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
      7. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      8. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      8 frames
    6. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    8. Plexus
      Launcher.main
      1. org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      2. org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      3. org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      4. org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      4 frames