java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

GitHub | michaelqiu94 | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

    GitHub | 6 months ago | michaelqiu94
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
  2. 0

    Class Not Found Exception

    GitHub | 5 months ago | michaelqiu94
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
  3. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  6. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.

  1. marcbouvierdav 26 times, last 23 hours ago
  2. batwalrus76 12 times, last 2 days ago
  3. musketyr 1 times, last 2 days ago
  4. SteVio1989 4 times, last 3 days ago
  5. andyglick 2 times, last 2 weeks ago
68 more registered users
27 unregistered visitors
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.ClassNotFoundException

    scala.collection.GenTraversableOnce$class

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    3 frames
  3. Elasticsearch Spark
    ScalaEsRowRDD.compute
    1. org.elasticsearch.spark.rdd.AbstractEsRDDIterator.<init>(AbstractEsRDDIterator.scala:10)
    2. org.elasticsearch.spark.sql.ScalaEsRowRDDIterator.<init>(ScalaEsRowRDD.scala:31)
    3. org.elasticsearch.spark.sql.ScalaEsRowRDD.compute(ScalaEsRowRDD.scala:27)
    4. org.elasticsearch.spark.sql.ScalaEsRowRDD.compute(ScalaEsRowRDD.scala:20)
    4 frames
  4. Spark
    Executor$TaskRunner.run
    1. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319)
    2. org.apache.spark.rdd.RDD.iterator(RDD.scala:283)
    3. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
    4. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319)
    5. org.apache.spark.rdd.RDD.iterator(RDD.scala:283)
    6. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
    7. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319)
    8. org.apache.spark.rdd.RDD.iterator(RDD.scala:283)
    9. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
    10. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:319)
    11. org.apache.spark.rdd.RDD.iterator(RDD.scala:283)
    12. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:70)
    13. org.apache.spark.scheduler.Task.run(Task.scala:85)
    14. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:274)
    14 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames