java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription;

SpringSource Issue Tracker | Ben Manes | 4 years ago
  1. 0

    The following exception is produced when importing a Gradle v1.1 multi-module Java/Scala project. Reproduced on Ubuntu, MacOS X, and Windows using Eclipse Indigo + Gradle STS + Scala IDE (all release versions). I think, but am not certain, that downgrading to Gradle v1.0 resolves this issue. The Eclipse plugin is configured to use the gradle wrapper. !ENTRY org.eclipse.core.jobs 4 2 2012-08-04 23:33:59.578 !MESSAGE An internal error occurred during: "Refreshing workspace". !STACK 0 java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription; at org.eclipse.core.resources.filtermatchers.CompoundFileInfoMatcher.initialize(CompoundFileInfoMatcher.java:44) at org.eclipse.core.internal.resources.Filter.match(Filter.java:50) at org.eclipse.core.internal.resources.Filter.filterExcludes(Filter.java:139) at org.eclipse.core.internal.resources.Filter.filter(Filter.java:92) at org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2129) at org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2091) at org.eclipse.core.internal.localstore.UnifiedTree.getLocalList(UnifiedTree.java:351) at org.eclipse.core.internal.localstore.UnifiedTree.addChildren(UnifiedTree.java:139) at org.eclipse.core.internal.localstore.UnifiedTree.addNodeChildrenToQueue(UnifiedTree.java:245) at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:111) at org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:920) at org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:904) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1663) at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:167) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 4 years ago | Ben Manes
    java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription;
  2. 0

    The following exception is produced when importing a Gradle v1.1 multi-module Java/Scala project. Reproduced on Ubuntu, MacOS X, and Windows using Eclipse Indigo + Gradle STS + Scala IDE (all release versions). I think, but am not certain, that downgrading to Gradle v1.0 resolves this issue. The Eclipse plugin is configured to use the gradle wrapper. !ENTRY org.eclipse.core.jobs 4 2 2012-08-04 23:33:59.578 !MESSAGE An internal error occurred during: "Refreshing workspace". !STACK 0 java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription; at org.eclipse.core.resources.filtermatchers.CompoundFileInfoMatcher.initialize(CompoundFileInfoMatcher.java:44) at org.eclipse.core.internal.resources.Filter.match(Filter.java:50) at org.eclipse.core.internal.resources.Filter.filterExcludes(Filter.java:139) at org.eclipse.core.internal.resources.Filter.filter(Filter.java:92) at org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2129) at org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2091) at org.eclipse.core.internal.localstore.UnifiedTree.getLocalList(UnifiedTree.java:351) at org.eclipse.core.internal.localstore.UnifiedTree.addChildren(UnifiedTree.java:139) at org.eclipse.core.internal.localstore.UnifiedTree.addNodeChildrenToQueue(UnifiedTree.java:245) at org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:111) at org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:920) at org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:904) at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1663) at org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:167) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    SpringSource Issue Tracker | 4 years ago | Ben Manes
    java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription;
  3. 0

    rhino class aliasing

    GitHub | 3 years ago | perimosocordiae
    java.lang.ExceptionInInitializerError
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  6. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 4 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription;

      at org.eclipse.core.resources.filtermatchers.CompoundFileInfoMatcher.initialize()
    2. Core Resource Management
      InternalWorkspaceJob.run
      1. org.eclipse.core.resources.filtermatchers.CompoundFileInfoMatcher.initialize(CompoundFileInfoMatcher.java:44)
      2. org.eclipse.core.internal.resources.Filter.match(Filter.java:50)
      3. org.eclipse.core.internal.resources.Filter.filterExcludes(Filter.java:139)
      4. org.eclipse.core.internal.resources.Filter.filter(Filter.java:92)
      5. org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2129)
      6. org.eclipse.core.internal.resources.Resource.filterChildren(Resource.java:2091)
      7. org.eclipse.core.internal.localstore.UnifiedTree.getLocalList(UnifiedTree.java:351)
      8. org.eclipse.core.internal.localstore.UnifiedTree.addChildren(UnifiedTree.java:139)
      9. org.eclipse.core.internal.localstore.UnifiedTree.addNodeChildrenToQueue(UnifiedTree.java:245)
      10. org.eclipse.core.internal.localstore.UnifiedTree.accept(UnifiedTree.java:111)
      11. org.eclipse.core.internal.localstore.FileSystemResourceManager.refreshResource(FileSystemResourceManager.java:920)
      12. org.eclipse.core.internal.localstore.FileSystemResourceManager.refresh(FileSystemResourceManager.java:904)
      13. org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1663)
      14. org.eclipse.core.internal.refresh.RefreshJob.runInWorkspace(RefreshJob.java:167)
      15. org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      15 frames
    3. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame