org.codehaus.jackson.map.JsonMappingException: hudson.plugins.git.GitChangeSetList cannot be cast to hudson.plugins.perforce.PerforceChangeLogSet (through reference chain: java.util.ArrayList[0]->com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.JobView["changeSetCount"])

Jenkins JIRA | Brantone | 2 years ago
  1. 0

    We have collection of jobs, where including some of them cause the monitor to not display anything. It still has dark screen and title, but does not actually display job info. {code} Nov 13, 2014 11:53:15 PM WARNING org.kohsuke.stapler.HttpResponseRenderer$Default handleJavaScriptProxyMethodCall call to /$stapler/bound/d680fdd4-3714-4ec9-8c17-fb3fab9ae89b/fetchJobViews failed org.codehaus.jackson.map.JsonMappingException: hudson.plugins.git.GitChangeSetList cannot be cast to hudson.plugins.perforce.PerforceChangeLogSet (through reference chain: java.util.ArrayList[0]->com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.JobView["changeSetCount"]) at org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:218) at org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:183) at org.codehaus.jackson.map.ser.std.SerializerBase.wrapAndThrow(SerializerBase.java:140) at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:158) at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112) at org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:122) at org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:71) at org.codehaus.jackson.map.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:86) at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610) at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256) at org.codehaus.jackson.map.ObjectMapper._configAndWriteValue(ObjectMapper.java:2575) at org.codehaus.jackson.map.ObjectMapper.writeValueAsString(ObjectMapper.java:2097) at com.smartcodeltd.jenkinsci.plugins.buildmonitor.BuildMonitorView.jsonFrom(BuildMonitorView.java:163) at com.smartcodeltd.jenkinsci.plugins.buildmonitor.BuildMonitorView.fetchJobViews(BuildMonitorView.java:152) at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) [...SNIP...] Caused by: java.lang.ClassCastException: hudson.plugins.git.GitChangeSetList cannot be cast to hudson.plugins.perforce.PerforceChangeLogSet at com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.BuildView.changeSetCount(BuildView.java:131) at com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.JobView.changeSetCount(JobView.java:122) at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.jackson.map.ser.BeanPropertyWriter.get(BeanPropertyWriter.java:483) at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:418) at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150) ... 91 more {code}

    Jenkins JIRA | 2 years ago | Brantone
    org.codehaus.jackson.map.JsonMappingException: hudson.plugins.git.GitChangeSetList cannot be cast to hudson.plugins.perforce.PerforceChangeLogSet (through reference chain: java.util.ArrayList[0]->com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.JobView["changeSetCount"])
  2. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  3. 0

    ClassCastException in HandleFactory.getPkgFragmentRoot (355)

    Eclipse Bugzilla | 1 year ago | error-reports-inbox
    java.lang.ClassCastException: cannot be cast to org.eclipse.wst.jsdt.internal.core.PackageFragmentRoot
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  6. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String

    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

      hudson.plugins.git.GitChangeSetList cannot be cast to hudson.plugins.perforce.PerforceChangeLogSet

      at com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.BuildView.changeSetCount()
    2. com.smartcodeltd.jenkinsci
      JobView.changeSetCount
      1. com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.BuildView.changeSetCount(BuildView.java:131)
      2. com.smartcodeltd.jenkinsci.plugins.buildmonitor.viewmodel.JobView.changeSetCount(JobView.java:122)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    4. Data Mapper for Jackson
      ObjectMapper.writeValueAsString
      1. org.codehaus.jackson.map.ser.BeanPropertyWriter.get(BeanPropertyWriter.java:483)
      2. org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:418)
      3. org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
      4. org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:218)
      5. org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:183)
      6. org.codehaus.jackson.map.ser.std.SerializerBase.wrapAndThrow(SerializerBase.java:140)
      7. org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:158)
      8. org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
      9. org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:122)
      10. org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:71)
      11. org.codehaus.jackson.map.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:86)
      12. org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
      13. org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
      14. org.codehaus.jackson.map.ObjectMapper._configAndWriteValue(ObjectMapper.java:2575)
      15. org.codehaus.jackson.map.ObjectMapper.writeValueAsString(ObjectMapper.java:2097)
      15 frames
    5. com.smartcodeltd.jenkinsci
      BuildMonitorView.fetchJobViews
      1. com.smartcodeltd.jenkinsci.plugins.buildmonitor.BuildMonitorView.jsonFrom(BuildMonitorView.java:163)
      2. com.smartcodeltd.jenkinsci.plugins.buildmonitor.BuildMonitorView.fetchJobViews(BuildMonitorView.java:152)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    7. Stapler
      Function$InstanceFunction.invoke
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)[...SNIP...]
      1 frame