java.lang.ClassCastException

java.io.File cannot be cast to java.util.List


Solutions on the web19626

Solution icon of stackoverflow
via Stack Overflow by purvaz19
, 7 months ago
java.io.File cannot be cast to java.util.List

Solution icon of github
java.lang.String cannot be cast to java.io.File

Solution icon of springsource
via SpringSource Issue Tracker by Jean-Pierre Bergamin, 1 year ago
java.io.File cannot be cast to org.gradle.api.artifacts.Configuration

Solution icon of appcelerator
via Appcelerator JIRA by Deepti Pandey, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to java.io.File

Solution icon of stackoverflow
javax.mail.internet.MimeBodyPart$MimePartDataHandler cannot be cast to java.io.File

Solution icon of web
java.io.File cannot be cast to java.lang.String

Solution icon of web
java.io.File cannot be cast to org.gradle.api.artifacts.Configuration

Solution icon of web
java.io.File cannot be cast to java.lang.CharSequence

Solution icon of web
org.apache.catalina.connector.CoyoteOutputStream cannot be cast to java.io.File

Solution icon of coderanch
com.sun.mail.util.BASE64DecoderStream cannot be cast to java.io.File

Stack trace

  • java.lang.ClassCastException: java.io.File cannot be cast to java.util.List at mainJava.FileSplitter.split(FileSplitter.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.lang.Thread.run(Unknown Source)

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

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.