java.lang.ClassCastException

org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer


Solutions on the web19574

Solution icon of bugzilla
via Eclipse Bugzilla by spam-receiver, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

Solution icon of bugzilla
via Eclipse Bugzilla by pawelw, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

Solution icon of stackoverflow
via Stack Overflow by skm
, 7 months ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

Solution icon of bugzilla
via Eclipse Bugzilla by marko.tomljenovic, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer

Solution icon of sourceforge
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IFolder

Solution icon of bugzilla
via Eclipse Bugzilla by sebastien.dubois, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.mylyn.reviews.r4e.ui.internal.model.IR4EUIModelElement

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 bugzilla
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.pde.internal.ui.util.PersistablePluginObject

Solution icon of bugzilla
via Eclipse Bugzilla by rsternberg, 1 year ago
org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.egit.ui.internal.repository.tree.RefNode

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

Stack trace

  • java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer at org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply(ScalaProject.scala:242) at org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2$$anonfun$apply$7.apply(ScalaProject.scala:232) at scala.Option$WithFilter.map(Option.scala:207) at org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2.apply(ScalaProject.scala:232) at org.scalaide.core.internal.project.ScalaProject$$anonfun$sourceOutputFolders$2.apply(ScalaProject.scala:231) at scala.collection.TraversableLike$WithFilter$$anonfun$flatMap$2.apply(TraversableLike.scala:714) at scala.collection.immutable.List.foreach(List.scala:381) at scala.collection.TraversableLike$WithFilter.flatMap(TraversableLike.scala:713) at org.scalaide.core.internal.project.ScalaProject.sourceOutputFolders(ScalaProject.scala:231) at org.scalaide.core.internal.project.ScalaProject.initializeCompilerSettings(ScalaProject.scala:478) at org.scalaide.core.internal.project.ScalaProject.org$scalaide$core$internal$project$ScalaProject$$prepareCompilerSettings(ScalaProject.scala:435) at org.scalaide.core.internal.project.ScalaProject$$anonfun$5.apply(ScalaProject.scala:159) at org.scalaide.core.internal.project.ScalaProject$$anonfun$5.apply(ScalaProject.scala:159) at org.scalaide.core.internal.compiler.PresentationCompilerProxy.liftedTree1$1(PresentationCompilerProxy.scala:152) at org.scalaide.core.internal.compiler.PresentationCompilerProxy.create(PresentationCompilerProxy.scala:151) at org.scalaide.core.internal.compiler.PresentationCompilerProxy.initialize(PresentationCompilerProxy.scala:116) at org.scalaide.core.internal.compiler.PresentationCompilerProxy.obtainPc$1(PresentationCompilerProxy.scala:78) at org.scalaide.core.internal.compiler.PresentationCompilerProxy.internal(PresentationCompilerProxy.scala:98) at org.scalaide.core.internal.jdt.model.ScalaCompilationUnit$class.addToIndexer(ScalaCompilationUnit.scala:157) at org.scalaide.core.internal.jdt.model.ScalaSourceFile.addToIndexer(ScalaSourceFile.scala:66) at org.scalaide.core.internal.jdt.search.ScalaSourceIndexer$$anonfun$indexDocument$2.apply(ScalaSourceIndexer.scala:16) at org.scalaide.core.internal.jdt.search.ScalaSourceIndexer$$anonfun$indexDocument$2.apply(ScalaSourceIndexer.scala:16) at scala.Option.map(Option.scala:146) at org.scalaide.core.internal.jdt.search.ScalaSourceIndexer.indexDocument(ScalaSourceIndexer.scala:16) at scala.tools.eclipse.contribution.weaving.jdt.indexerprovider.IndexerProviderAspect.ajc$around$scala_tools_eclipse_contribution_weaving_jdt_indexerprovider_IndexerProviderAspect$1$16276a3c(IndexerProviderAspect.aj:30) at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.indexDocument(JavaSearchParticipant.java:71) at org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexDocument(IndexManager.java:504) at org.eclipse.jdt.internal.core.search.indexing.IndexManager$1.execute(IndexManager.java:984) at org.eclipse.jdt.internal.core.search.processing.JobManager.run(JobManager.java:405) at java.lang.Thread.run(Thread.java:745)

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.