java.util.NoSuchElementException: next on empty iterator

Stack Overflow | qed | 10 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

    groupBy cannot handle large RDDs

    Stack Overflow | 10 months ago | qed
    java.util.NoSuchElementException: next on empty iterator
  2. 0

    Scala try-catch not catching exception

    Stack Overflow | 2 years ago | Kaarel Nummert
    java.util.NoSuchElementException: next on empty iterator
  3. 0

    scaffold task accepts invalid column name

    GitHub | 2 years ago | bigwheel
    java.util.NoSuchElementException: next on empty iterator
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    doc-jar failure on scala 2.10.0-rc1

    GitHub | 5 years ago | nikita-volkov
    java.lang.reflect.InvocationTargetException
  6. 0

    Exception: next on empty iterator

    GitHub | 4 years ago | raboof
    java.util.NoSuchElementException: next on empty iterator

    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.util.NoSuchElementException

      next on empty iterator

      at scala.collection.Iterator$$anon$2.next()
    2. Scala
      StringOps.head
      1. scala.collection.Iterator$$anon$2.next(Iterator.scala:39)
      2. scala.collection.Iterator$$anon$2.next(Iterator.scala:37)
      3. scala.collection.IndexedSeqLike$Elements.next(IndexedSeqLike.scala:63)
      4. scala.collection.IterableLike$class.head(IterableLike.scala:107)
      5. scala.collection.immutable.StringOps.scala$collection$IndexedSeqOptimized$$super$head(StringOps.scala:30)
      6. scala.collection.IndexedSeqOptimized$class.head(IndexedSeqOptimized.scala:126)
      7. scala.collection.immutable.StringOps.head(StringOps.scala:30)
      7 frames
    3. Unknown
      $anon$1$$anonfun$run$1.apply
      1. $anon$1$$anonfun$run$1.apply(<console>:23)
      2. $anon$1$$anonfun$run$1.apply(<console>:23)
      2 frames
    4. Scala
      ArrayOps$ofRef.groupBy
      1. scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:332)
      2. scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:331)
      3. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      4. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      5. scala.collection.TraversableLike$class.groupBy(TraversableLike.scala:331)
      6. scala.collection.mutable.ArrayOps$ofRef.groupBy(ArrayOps.scala:186)
      6 frames
    5. Unknown
      $anon$1.run
      1. $anon$1.run(<console>:23)
      1 frame
    6. Helper
      HasRun$class.newRun
      1. Helper.HasRun$class.newRun(HasRun.scala:21)
      1 frame
    7. Unknown
      $anon$1.newRun
      1. $anon$1.newRun(<console>:19)
      1 frame