java.lang.ClassCastException: hudson.model.Hudson cannot be cast to hudson.model.Slave

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 sudhir pandey, 1 year ago
hudson.model.Hudson cannot be cast to hudson.model.Slave
via Jenkins JIRA by sudhir pandey, 1 year ago
hudson.model.Hudson cannot be cast to hudson.model.Slave
java.lang.ClassCastException: hudson.model.Hudson cannot be cast to hudson.model.Slave
at hudson.slaves.SlaveComputer.getNode(SlaveComputer.java:181)
at hudson.slaves.SlaveComputer.getNode(SlaveComputer.java:96)
at jenkins.model.Jenkins$9.compare(Jenkins.java:1546)
at jenkins.model.Jenkins$9.compare(Jenkins.java:1542)
at java.util.Arrays.mergeSort(Arrays.java:1283)
at java.util.Arrays.mergeSort(Arrays.java:1294)
at java.util.Arrays.sort(Arrays.java:1223)
at jenkins.model.Jenkins.getComputers(Jenkins.java:1542)
at hudson.model.Queue.maintain(Queue.java:978)
at hudson.model.Queue$MaintainTask.doRun(Queue.java:1998)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)

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.

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