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"])


Solutions on the web

Solution icon of jenkins
via Jenkins JIRA by Brantone, 1 year ago
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"])

Solution icon of jenkins
via Jenkins JIRA by Brantone, 1 year ago
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"])

Solution icon of web
via com.br by Unknown author, 1 year ago
org.hibernate.SessionFactory (through reference chain: java.util.HashMap["rows"]->java.util.ArrayList[0]->com.policenosistemas.model.Usuario["tipoUsuario"])

Solution icon of web
[Ljava.lang.Object; cannot be cast to [Lcom.MyClass; (through reference chain: com.blah.ABC["details"]->com.blah.DEF["validationAppErrors"]->com.blah.GHI["causeEntity"])

Solution icon of github
org.codehaus.jackson.map.annotate.JsonSerialize$Inclusion.NON_EMPTY (through reference chain: org.kairosdb.client.builder.QueryBuilder["metrics"]->java.util.ArrayList[0])

Solution icon of bugzilla
via https://bugzilla.redhat.com/bugzilla/ by Rami Vaknin, 3 months ago
org.ovirt.engine.core.compat.Guid cannot be cast to [Ljava.lang.Object; (through reference chain: org.ovirt.engine.core.common.action.ImportVmParameters["vm"]->org.ovirt.engine.core.common.businessentities.VM["diskMap"]->java.util.HashMap["3"]->org.ovirt.engine.core.common.businessentities.DiskImage["childrenId"])

Solution icon of stackoverflow
[Ljava.lang.Object; cannot be cast to [Lcom.MyClass; (through reference chain: com.blah.ABC["details"]->com.blah.DEF["validationAppErrors"]->com.blah.GHI["causeEntity"])

Solution icon of googlegroups
via Google Groups by cathal coffey, 4 months ago
(was java.lang.NullPointerException) (through reference chain: org.opentripplanner.api.model.analysis.VertexSet["vertices"]->java.util.ArrayList[0]->org.opentripplanner.routing.vertextype.TurnVertex["incoming"]->java.util.concurrent.CopyOnWriteArraySet[0])

Solution icon of web
(was java.lang.NullPointerException) (through reference chain: java.util.HashMap["page"]->org.springside.modules.orm.Page["result"]->java.util.ArrayList[0]->org.activiti.engine.impl.persistence.entity.TaskEntity["identityLinks"])

Solution icon of github
Error reading entity from input stream. (through reference chain: java.util.ArrayList[0]->org.openstack4j.openstack.networking.domain.NeutronNetwork["neutronSubnets"])

Stack trace

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)
	... 18 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.