Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25613

Monitor view fails on subset of jobs

XMLWordPrintable

      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.

      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
      

            Unassigned Unassigned
            brantone Brantone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: