java.lang.ClassCastException: hudson.model.labels.LabelExpression$And cannot be cast to hudson.model.labels.LabelAtom

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 Mikko Tapaninen, 1 year ago
hudson.model.labels.LabelExpression$And cannot be cast to hudson.model.labels.LabelAtom
via Jenkins JIRA by Mikko Tapaninen, 1 year ago
hudson.model.labels.LabelExpression$And cannot be cast to hudson.model.labels.LabelAtom
java.lang.ClassCastException: hudson.model.labels.LabelExpression$And cannot be cast to hudson.model.labels.LabelAtom
at jenkins.model.Jenkins.getLabelAtom(Jenkins.java:1571)
at hudson.model.labels.LabelAtom.get(LabelAtom.java:224)
at hudson.model.labels.LabelExpressionParser.term6(LabelExpressionParser.java:208)
at hudson.model.labels.LabelExpressionParser.term5(LabelExpressionParser.java:164)
at hudson.model.labels.LabelExpressionParser.term4(LabelExpressionParser.java:136)
at hudson.model.labels.LabelExpressionParser.term3(LabelExpressionParser.java:113)
at hudson.model.labels.LabelExpressionParser.term2(LabelExpressionParser.java:83)
at hudson.model.labels.LabelExpressionParser.term1(LabelExpressionParser.java:60)
at hudson.model.labels.LabelExpressionParser.expr(LabelExpressionParser.java:50)
at jenkins.model.Jenkins.getLabel(Jenkins.java:1553)
at hudson.model.AbstractProject.getAssignedLabel(AbstractProject.java:356)
at hudson.model.queue.MappingWorksheet$WorkChunk.getAssignedLabel(MappingWorksheet.java:202)
at hudson.model.queue.MappingWorksheet$WorkChunk.(MappingWorksheet.java:185)
at hudson.model.queue.MappingWorksheet$WorkChunk.(MappingWorksheet.java:157)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:375)
at hudson.model.queue.MappingWorksheet.(MappingWorksheet.java:303)
at hudson.model.Queue.maintain(Queue.java:1033)
at hudson.model.Queue$MaintainTask.doRun(Queue.java:1759)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

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.