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

SpringSource Issue Tracker | Ben Manes | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 5 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 | 5 years ago | Ben Manes
    java.lang.ClassCastException: java.lang.String cannot be cast to [Lorg.eclipse.core.resources.FileInfoMatcherDescription;
  3. 0

    ClassCastException in ReconcileStepForValidator

    Eclipse Bugzilla | 1 decade ago | rrodseth
    java.lang.ClassCastException: java.util.ArrayList at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.createAnnotations(ReconcileStepForValidator.java:86) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:234) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:201) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:96) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:173) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:144) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:423)
  4. Speed up your debug routine!

    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