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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Arnaud, 1 year ago
java.lang.String cannot be cast to [Ljava.lang.String;
java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.String;
at org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$$anonfun$1.apply(ClasspathGetterForLaunchDelegate.scala:28)
at scala.collection.generic.GenericTraversableTemplate$$anonfun$flatten$1.apply(GenericTraversableTemplate.scala:172)
at scala.collection.generic.GenericTraversableTemplate$$anonfun$flatten$1.apply(GenericTraversableTemplate.scala:171)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
at scala.collection.generic.GenericTraversableTemplate$class.flatten(GenericTraversableTemplate.scala:171)
at org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.toInclude(ClasspathGetterForLaunchDelegate.scala:28)
at org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.scalaClasspath(ClasspathGetterForLaunchDelegate.scala:23)
at org.scalaide.core.internal.launching.ClasspathGetterForLaunchDelegate$class.getClasspath(ClasspathGetterForLaunchDelegate.scala:16)
at org.scalaide.debug.internal.launching.ScalaJUnitLaunchConfigurationDelegate.getClasspath(ScalaJUnitLaunchConfigurationDelegate.scala:7)
at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:147)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.