java.lang.ArrayIndexOutOfBoundsException: 814

Atlassian JIRA | Kate Ellingburg | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I disabled Clover to run tomcat. Then, I re-enabled Clover with Rebuild policy "Rebuild Immediately". I ran some unit tests and got an error kind of like this: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 0 WARN: CLOVER: No coverage data will be gathered. I then disabled Clover (to see if I could duplicate the error), renabled with the same settings, and ran some unit tests, and got this actual error: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796 WARN: CLOVER: No coverage data will be gathered. (The second error is a copy and paste from my console, the first is from memory as I remember distinctly the "actual size 0" part of it). In fact, the second error ends with a stacktrace: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 848, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1300, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1378, actual size: 796 WARN: CLOVER: No coverage data will be gathered. java.lang.ArrayIndexOutOfBoundsException: 814 at com_cenqua_clover.CoverageRecorder.inc(CoverageRecorder.java:410) at com.atlassian.plugins.domain.model.vendor.SupportOrganisation.getSupportDetails(SupportOrganisation.java:58) at com.atlassian.plugins.domain.model.vendor.SupportOrganisationTest.testBeforeMarshal_ExpandedTrue(SupportOrganisationTest.java:15) I can't remember if the first one did or not. I'm running IDEA 8.1.2 build 9852. Attached is a screenshot of my Clover settings. I'm raising this as a bug because the behaviour I expected was for my unit tests to run as per normal and the coverage data become available.

    Atlassian JIRA | 8 years ago | Kate Ellingburg
    java.lang.ArrayIndexOutOfBoundsException: 814
  2. 0

    I disabled Clover to run tomcat. Then, I re-enabled Clover with Rebuild policy "Rebuild Immediately". I ran some unit tests and got an error kind of like this: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 0 WARN: CLOVER: No coverage data will be gathered. I then disabled Clover (to see if I could duplicate the error), renabled with the same settings, and ran some unit tests, and got this actual error: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796 WARN: CLOVER: No coverage data will be gathered. (The second error is a copy and paste from my console, the first is from memory as I remember distinctly the "actual size 0" part of it). In fact, the second error ends with a stacktrace: WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 857, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 848, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1300, actual size: 796 WARN: CLOVER: No coverage data will be gathered. WARN: CLOVER: Clover database: '/Users/kellingburg/atlassian/projects/atlassian/pacs/trunk/.clover/coverage.db' is no longer valid. Required size: 1378, actual size: 796 WARN: CLOVER: No coverage data will be gathered. java.lang.ArrayIndexOutOfBoundsException: 814 at com_cenqua_clover.CoverageRecorder.inc(CoverageRecorder.java:410) at com.atlassian.plugins.domain.model.vendor.SupportOrganisation.getSupportDetails(SupportOrganisation.java:58) at com.atlassian.plugins.domain.model.vendor.SupportOrganisationTest.testBeforeMarshal_ExpandedTrue(SupportOrganisationTest.java:15) I can't remember if the first one did or not. I'm running IDEA 8.1.2 build 9852. Attached is a screenshot of my Clover settings. I'm raising this as a bug because the behaviour I expected was for my unit tests to run as per normal and the coverage data become available.

    Atlassian JIRA | 8 years ago | Kate Ellingburg
    java.lang.ArrayIndexOutOfBoundsException: 814

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      814

      at com_cenqua_clover.CoverageRecorder.inc()
    2. com_cenqua_clover
      CoverageRecorder.inc
      1. com_cenqua_clover.CoverageRecorder.inc(CoverageRecorder.java:410)
      1 frame
    3. com.atlassian.plugins
      SupportOrganisationTest.testBeforeMarshal_ExpandedTrue
      1. com.atlassian.plugins.domain.model.vendor.SupportOrganisation.getSupportDetails(SupportOrganisation.java:58)
      2. com.atlassian.plugins.domain.model.vendor.SupportOrganisationTest.testBeforeMarshal_ExpandedTrue(SupportOrganisationTest.java:15)
      2 frames