java.util.NoSuchElementException: key not found: 6

Stack Overflow | askdk | 7 days ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rp . Or join the community to write better ones.
  1. 0

    Joining two CSV in Scala

    Stack Overflow | 7 days ago | askdk
    java.util.NoSuchElementException: key not found: 6
  2. 0
    samebug tip
    Try to restart Play
  3. 0
    samebug tip
    Some of the parametes ar enull
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following code works at least until 2.8.0.r19433, but not now: {code} Welcome to Scala version 2.8.0.r19458-b20091109194122 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_15). scala> final val a = Float.NaN Exception in thread "main" java.util.NoSuchElementException: key not found: Constant(NaN) at scala.collection.MapLike$$class.default(MapLike.scala:191) at scala.collection.mutable.LinkedHashMap.default(LinkedHashMap.scala:33) at scala.collection.MapLike$$class.apply(MapLike.scala:106) at scala.collection.mutable.LinkedHashMap.apply(LinkedHashMap.scala:33) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle.scala$$tools$$nsc$$symtab$$classfile$$Pickler$$Pickle$$$$writeRef(Pickler.scala:478) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle.writeBody$$1(Pickler.scala:567) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle.scala$$tools$$nsc$$symtab$$classfile$$Pickler$$Pickle$$$$writeEntry(Pickler.scala:972) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle$$$$anonfun$$finish$$1.apply(Pickler.scala:1099) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle$$$$anonfun$$finish$$1.apply(Pickler.scala:1094) at scala.collection.immutable.Range$$ByOne$$class.foreach(Range.scala:167) at scala.collection.immutable.Range$$$$anon$$2.foreach(Range.scala:149) at scala.tools.nsc.symtab.classfile.Pickler$$Pickle.finish(Pickler.scala:1094) at scala.tools.nsc.symtab.classfile.Pickler$$PicklePhase.pickle$$1(Pickler.scala:53) at scala.tools.nsc.symtab.classfile.Pickler$$PicklePhase$$$$anonfun$$pickle$$1$$1.apply(Pickler.scala:47) at scala.tools.nsc.symtab.classfile.Pickler$$PicklePhase$$$$anonfun$$pickle$$1$$1.apply(Pickler.scala:47) at scala.collection.LinearSeqLike$$class.foreach(LinearSeqLike.scala:85) at scala.collection.immutable.List.foreach(List.scala:29) at scala.tools.nsc.symtab.classfile.Pickler$$PicklePhase.pickle$$1(Pickler.scala:47) at scala.tools.nsc.symtab.classfile.Pickler$$PicklePhase.apply(Pickler.scala:57) at scala.tools.nsc.Global$$GlobalPhase.applyPhase(Global.scala:323) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$run$$1.apply(Global.scala:301) at scala.tools.nsc.Global$$GlobalPhase$$$$anonfun$$run$$1.apply(Global.scala:301) at scala.collection.Iterator$$class.foreach(Iterator.scala:541) at scala.collection.mutable.ListBuffer$$$$anon$$1.foreach(ListBuffer.scala:285) at scala.tools.nsc.Global$$GlobalPhase.run(Global.scala:301) at scala.tools.nsc.Global$$Run.compileSources(Global.scala:794) at scala.tools.nsc.Interpreter$$Request.compile(Interpreter.scala:718) at scala.tools.nsc.Interpreter.interpret(Interpreter.scala:432) at scala.tools.nsc.InterpreterLoop.interpretStartingWith(InterpreterLoop.scala:331) at scala.tools.nsc.InterpreterLoop.command(InterpreterLoop.scala:308) at scala.tools.nsc.InterpreterLoop.processLine$$1(InterpreterLoop.scala:205) at scala.tools.nsc.InterpreterLoop.repl(InterpreterLoop.scala:219) at scala.tools.nsc.InterpreterLoop.main(InterpreterLoop.scala:379) at scala.tools.nsc.MainGenericRunner$$.createLoop$$1(MainGenericRunner.scala:119) at scala.tools.nsc.MainGenericRunner$$.main(MainGenericRunner.scala:144) at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) {code} I add "final" before a class's val field "a" to prevent overridden

    Scala JIRA | 7 years ago | Caoyuan Deng
    java.util.NoSuchElementException: key not found: ArrayBuffer(NaN)
  6. 0

    GitHub comment 260#249629939

    GitHub | 5 months ago | ucbjrl
    java.util.NoSuchElementException: key not found: tbl.T_184.wdata

  1. michallos 4 times, last 1 month ago
  2. rp 1 times, last 2 months ago
  3. tyson925 1 times, last 6 months ago
  4. regisso 2 times, last 9 months ago
1 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.util.NoSuchElementException

    key not found: 6

    at scala.collection.MapLike$class.default()
  2. Scala
    HashMap.apply
    1. scala.collection.MapLike$class.default(MapLike.scala:228)
    2. scala.collection.AbstractMap.default(Map.scala:59)
    3. scala.collection.mutable.HashMap.apply(HashMap.scala:65)
    3 frames
  3. Unknown
    readwritefile$$anonfun$main$1.apply
    1. readwritefile$$anonfun$main$1.apply$mcVI$sp(readwritefile.scala:37)
    2. readwritefile$$anonfun$main$1.apply(readwritefile.scala:36)
    3. readwritefile$$anonfun$main$1.apply(readwritefile.scala:36)
    3 frames
  4. Scala
    ArrayBuffer.foreach
    1. scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
    2. scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
    2 frames
  5. Unknown
    readwritefile.main
    1. readwritefile$.main(readwritefile.scala:36)
    2. readwritefile.main(readwritefile.scala)
    2 frames