java.util.NoSuchElementException: key not found: Local(src,0)

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

Samebug tips

,

Check if the field you try to read really exists in the database. If it is optional, just use com.mongodb.casbah.commons.MongoDBObject#getAs

Solutions on the web

via GitHub by VladUreche
, 2 years ago
key not found: type T
via GitHub by VladUreche
, 2 years ago
key not found: constructor Object
via GitHub by VladUreche
, 2 years ago
key not found: constructor Object
java.util.NoSuchElementException: key not found: Local(src,0)
at scala.collection.MapLike$class.default(MapLike.scala:228)
at scala.collection.AbstractMap.default(Map.scala:58)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$scala$scalanative$compiler$analysis$UseDef$$enterDeps$1$1.apply(UseDef.scala:69)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$scala$scalanative$compiler$analysis$UseDef$$enterDeps$1$1.apply(UseDef.scala:68)
at scala.collection.mutable.UnrolledBuffer$Unrolled.foreach(UnrolledBuffer.scala:224)
at scala.scalanative.compiler.analysis.UseDef$.scala$scalanative$compiler$analysis$UseDef$$enterDeps$1(UseDef.scala:68)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$apply$4$$anonfun$apply$5.apply(UseDef.scala:96)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$apply$4$$anonfun$apply$5.apply(UseDef.scala:95)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$apply$4.apply(UseDef.scala:95)
at scala.scalanative.compiler.analysis.UseDef$$anonfun$apply$4.apply(UseDef.scala:94)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.scalanative.compiler.analysis.UseDef$.apply(UseDef.scala:94)
at scala.scalanative.compiler.pass.DeadCodeElimination$$anonfun$preDefn$1.applyOrElse(DeadCodeElimination.scala:13)
at scala.scalanative.compiler.pass.DeadCodeElimination$$anonfun$preDefn$1.applyOrElse(DeadCodeElimination.scala:11)
at scala.scalanative.compiler.Pass$class.scala$scalanative$compiler$Pass$$hook(Pass.scala:36)
at scala.scalanative.compiler.Pass$class.scala$scalanative$compiler$Pass$$txDefn(Pass.scala:49)
at scala.scalanative.compiler.Pass$$anonfun$1.apply(Pass.scala:42)
at scala.scalanative.compiler.Pass$$anonfun$1.apply(Pass.scala:41)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.scalanative.compiler.Pass$class.txAssembly(Pass.scala:41)
at scala.scalanative.compiler.Pass$class.apply(Pass.scala:194)
at scala.scalanative.compiler.pass.DeadCodeElimination.apply(DeadCodeElimination.scala:10)
at scala.scalanative.compiler.Compiler.loop$1(Compiler.scala:71)
at scala.scalanative.compiler.Compiler.apply(Compiler.scala:80)
at scala.scalanative.sbtplugin.ScalaNativePluginInternal$.scala$scalanative$sbtplugin$ScalaNativePluginInternal$$compileNir(ScalaNativePluginInternal.scala:24)
at scala.scalanative.sbtplugin.ScalaNativePluginInternal$$anonfun$projectSettings$8.apply(ScalaNativePluginInternal.scala:114)
at scala.scalanative.sbtplugin.ScalaNativePluginInternal$$anonfun$projectSettings$8.apply(ScalaNativePluginInternal.scala:93)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

2 times, 7 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
4 times, 10 months ago
2 times, 1 year ago
15 more bugmates

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