java.lang.ClassCastException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19027

  • java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.io.File
  • java.util.Collections$UnmodifiableRandomAccessList cannot be cast to java.io.File
  • via GitHub by mightyfrog
    , 10 months ago
    java.util.Collections$UnmodifiableRandomAccessList cannot be cast to com.koushikdutta.async.e.l
  • Stack trace

    • 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 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 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)

    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

    4 times, 9 months ago