Java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

Atlassian JIRA | Anna Buttfield [Atlassian] | 6 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

    This was happening when a committer used one capitalisation to commit (eg BobSmith) then later replaced lines using another capitalisation (bobsmith), so in the second commit the net loc change for Bob Smith was 0. The ClassCastException is deceptive, its more like a ConcurrentModificationException. {code} Java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String at com.cenqua.fisheye.bucket.ParameterSetInsertion.checkAuthors(ParameterSetInsertion.java:71) at com.cenqua.fisheye.bucket.ParameterSetInsertion.<init>(ParameterSetInsertion.java:38) at com.cenqua.fisheye.rep.BaseLinecountCalculator.getParameterSetInsertion(BaseLinecountCalculator.java:141) at com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlame(BaseLinecountCalculator.java:424) at com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlameRevision(BaseLinecountCalculator.java:408) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlameFromScm(BaseLinecountCalculator.java:354) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:232) at com.cenqua.fisheye.rep.BaseLinecountCalculator.getRevIdData(BaseLinecountCalculator.java:133) at com.cenqua.fisheye.rep.BaseLinecountCalculator.indexRevisions(BaseLinecountCalculator.java:116) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:62) {code}

    Atlassian JIRA | 6 years ago | Anna Buttfield [Atlassian]
    Java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String
  2. 0

    This was happening when a committer used one capitalisation to commit (eg BobSmith) then later replaced lines using another capitalisation (bobsmith), so in the second commit the net loc change for Bob Smith was 0. The ClassCastException is deceptive, its more like a ConcurrentModificationException. {code} Java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String at com.cenqua.fisheye.bucket.ParameterSetInsertion.checkAuthors(ParameterSetInsertion.java:71) at com.cenqua.fisheye.bucket.ParameterSetInsertion.<init>(ParameterSetInsertion.java:38) at com.cenqua.fisheye.rep.BaseLinecountCalculator.getParameterSetInsertion(BaseLinecountCalculator.java:141) at com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlame(BaseLinecountCalculator.java:424) at com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlameRevision(BaseLinecountCalculator.java:408) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlameFromScm(BaseLinecountCalculator.java:354) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:232) at com.cenqua.fisheye.rep.BaseLinecountCalculator.getRevIdData(BaseLinecountCalculator.java:133) at com.cenqua.fisheye.rep.BaseLinecountCalculator.indexRevisions(BaseLinecountCalculator.java:116) at com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:62) {code}

    Atlassian JIRA | 6 years ago | Anna Buttfield [Atlassian]
    Java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

    Root Cause Analysis

    1. Java.lang.ClassCastException

      java.lang.Object cannot be cast to java.lang.String

      at com.cenqua.fisheye.bucket.ParameterSetInsertion.checkAuthors()
    2. com.cenqua.fisheye
      BaseLinecountCalculator.calcBlame
      1. com.cenqua.fisheye.bucket.ParameterSetInsertion.checkAuthors(ParameterSetInsertion.java:71)
      2. com.cenqua.fisheye.bucket.ParameterSetInsertion.<init>(ParameterSetInsertion.java:38)
      3. com.cenqua.fisheye.rep.BaseLinecountCalculator.getParameterSetInsertion(BaseLinecountCalculator.java:141)
      4. com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlame(BaseLinecountCalculator.java:424)
      5. com.cenqua.fisheye.rep.BaseLinecountCalculator.insertAuthorBlameRevision(BaseLinecountCalculator.java:408)
      6. com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlameFromScm(BaseLinecountCalculator.java:354)
      7. com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:232)
      8. com.cenqua.fisheye.rep.BaseLinecountCalculator.getRevIdData(BaseLinecountCalculator.java:133)
      9. com.cenqua.fisheye.rep.BaseLinecountCalculator.indexRevisions(BaseLinecountCalculator.java:116)
      10. com.cenqua.fisheye.rep.BaseLinecountCalculator.calcBlame(BaseLinecountCalculator.java:62)
      10 frames