java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.String;

Google Groups | Arnaud | 11 months 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

    Can't start a JUnit test in debug mode

    Google Groups | 11 months ago | Arnaud
    java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.String;
  2. 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)

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to [Ljava.lang.String;

      at org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$$anonfun$1.apply()
    2. org.scalaide.core
      ClasspathGetterForLaunchDelegate$$anonfun$1.apply
      1. org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$$anonfun$1.apply(ClasspathGetterForLaunchDelegate.scala:28)
      1 frame
    3. Scala
      AbstractTraversable.flatten
      1. scala.collection.generic.GenericTraversableTemplate$$anonfun$flatten$1.apply(GenericTraversableTemplate.scala:172)
      2. scala.collection.generic.GenericTraversableTemplate$$anonfun$flatten$1.apply(GenericTraversableTemplate.scala:171)
      3. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      4. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      5. scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
      6. scala.collection.generic.GenericTraversableTemplate$class.flatten(GenericTraversableTemplate.scala:171)
      7. scala.collection.AbstractTraversable.flatten(Traversable.scala:104)
      7 frames
    4. org.scalaide.core
      ClasspathGetterForLaunchDelegate$class.getClasspath
      1. org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.toInclude(ClasspathGetterForLaunchDelegate.scala:28)
      2. org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.scalaClasspath(ClasspathGetterForLaunchDelegate.scala:23)
      3. org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.getClasspath(ClasspathGetterForLaunchDelegate.scala:16)
      3 frames
    5. org.scalaide.debug
      ScalaJUnitLaunchConfigurationDelegate.getClasspath
      1. org.scalaide.debug.internal.launching.ScalaJUnitLaunchConfigurationDelegate.getClasspath(ScalaJUnitLaunchConfigurationDelegate.scala:7)
      1 frame
    6. JDT JUnit
      JUnitLaunchConfigurationDelegate.launch
      1. org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:147)
      1 frame
    7. Debug Core
      LaunchConfiguration.launch
      1. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
      2. org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
      2 frames
    8. org.eclipse.debug
      DebugUIPlugin$8.run
      1. org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
      2. org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
      2 frames
    9. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame