java.lang.ClassCastException: cannot assign instance of hudson.model.StreamBuildListener to field hudson.plugins.mercurial.MercurialSCM$1.val$listener of type hudson.model.BuildListener in instance of hudson.plugins.mercurial.MercurialSCM$1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by Jesse Glick, 1 year ago
cannot assign instance of hudson.model.StreamBuildListener to field hudson.plugins.mercurial.MercurialSCM$1.val$listener of type hudson.model.BuildListener in instance of hudson.plugins.mercurial.MercurialSCM$1
via Jenkins JIRA by Jesse Glick, 1 year ago
cannot assign instance of hudson.model.StreamBuildListener to field hudson.plugins.mercurial.MercurialSCM$1.val$listener of type hudson.model.BuildListener in instance of hudson.plugins.mercurial.MercurialSCM$1
via Eclipse Bugzilla by jan.sievers, 1 year ago
cannot assign instance of hudson.EnvVars to field hudson.plugins.git.GitSCM$4.val$environment of type hudson.EnvVars in instance of hudson.plugins.git.GitSCM$4
via Eclipse Bugzilla by dennis.huebner, 1 year ago
cannot assign instance of hudson.EnvVars to field hudson.plugins.git.GitSCM$3.val$environment of type hudson.EnvVars in instance of hudson.plugins.git.GitSCM$3
via jenkins-ci.org by Unknown author, 2 years ago
cannot assign instance of hudson.model.StreamBuildListener to field hudson.maven.MavenModuleSetBuild$PomParser.listener of type hudson.model.BuildListener in instance of hudson.maven.MavenModuleSetBuild$PomParser
via Google Groups by Erik Ramfelt, 2 months ago
cannot assign instance of hudson.EnvVars to field hudson.plugins.git.GitSCM$2.val$environment of type hudson.EnvVars in instance of hudson.plugins.git.GitSCM$2
java.lang.ClassCastException: cannot assign instance of hudson.model.StreamBuildListener to field hudson.plugins.mercurial.MercurialSCM$1.val$listener of type hudson.model.BuildListener in instance of hudson.plugins.mercurial.MercurialSCM$1
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2039)
at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1212)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1952)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at hudson.remoting.UserRequest.deserialize(UserRequest.java:178)
at hudson.remoting.UserRequest.perform(UserRequest.java:98)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:283)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Users with the same issue

54 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 1 year ago
15 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.