java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.io.File

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 Tomasz Melcer, 1 year ago
via Jenkins JIRA by Tomasz Melcer, 1 year ago
java.lang.ClassCastException: java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.io.File
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at com.cloudbees.plugins.flow.FlowDSL.executeFlowScript(FlowDSL.groovy:44)
at com.cloudbees.plugins.flow.FlowRun$RunnerImpl.doRun(FlowRun.java:130)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:467)
at hudson.model.Run.run(Run.java:1404)
at com.cloudbees.plugins.flow.FlowRun.run(FlowRun.java:112)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
at hudson.model.OneOffExecutor.run(OneOffExecutor.java:66)

Users with the same issue

You are the first who have seen this exception.

Write tip

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