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

Atlassian JIRA | Anna Buttfield [Atlassian] | 6 years ago
  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
  3. 0

    IBM watson Retrieve and Rank Training Error "java.util.ArrayList cannot be cast to java.lang.Float"

    Stack Overflow | 6 months ago | Nik A
    Java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.Float
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    hibernate-envers

    solveseek.com | 1 year ago
    Java.lang.ClassCastException: org.hibernate.envers.DefaultRevisionEntity_$$_javassist_2 cannot be cast to javassist.util.proxy.Proxy
  6. 0

    java.lang.ClassCastException: com.google.gwt.user.client.Element$$EnhancerByMockitoWithCGLIB$$492e40ea cannot be cast to com.google.gwt.dom.client.InputElement

    GitHub | 2 years ago | supertoy
    Java.lang.ClassCastException: com.google.gwt.user.client.Element$$EnhancerByMockitoWithCGLIB$$492e40ea cannot be cast to com.google.gwt.dom.client.InputElement

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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