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

  1. ,

    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 DataStax JIRA by Piotr Kołaczkowski, 1 year ago
via DataStax JIRA by Piotr Kołaczkowski, 1 year ago
via DataStax JIRA by Prashant Kumar, 1 year ago
via DataStax JIRA by Prashant Kumar, 1 year ago
via GitHub by compassur
, 2 years ago
key not found: 'org.apache.cassandra.db.marshal.SimpleDateType'
java.util.NoSuchElementException: key not found: table	at scala.collection.MapLike$class.default(MapLike.scala:228)	at org.apache.spark.sql.sources.CaseInsensitiveMap.default(ddl.scala:463)	at scala.collection.MapLike$class.apply(MapLike.scala:141)	at org.apache.spark.sql.sources.CaseInsensitiveMap.apply(ddl.scala:463)	at org.apache.spark.sql.cassandra.DefaultSource$.TableRefAndOptions(DefaultSource.scala:120)	at org.apache.spark.sql.cassandra.DefaultSource.createRelation(DefaultSource.scala:56)	at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:265)	at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114)	at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1242)	at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply$mcV$sp(CassandraSQLSpec.scala:350)	at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297)	at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297)	at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)	at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)	at org.scalatest.Transformer.apply(Transformer.scala:22)	at org.scalatest.Transformer.apply(Transformer.scala:20)	at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647)	at org.scalatest.Suite$class.withFixture(Suite.scala:1122)	at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644)	at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)	at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)	at org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656)	at org.scalatest.FlatSpec.runTest(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)	at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)	at scala.collection.immutable.List.foreach(List.scala:318)	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)	at org.scalatest.FlatSpecLike$class.runTests(FlatSpecLike.scala:1714)	at org.scalatest.FlatSpec.runTests(FlatSpec.scala:1683)	at org.scalatest.Suite$class.run(Suite.scala:1424)	at org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)	at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)	at org.scalatest.SuperEngine.runImpl(Engine.scala:545)	at org.scalatest.FlatSpecLike$class.run(FlatSpecLike.scala:1760)	at com.datastax.spark.connector.sql.CassandraSQLSpec.org$scalatest$BeforeAndAfterAll$$super$run(CassandraSQLSpec.scala:11)	at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)	at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)	at com.datastax.spark.connector.sql.CassandraSQLSpec.run(CassandraSQLSpec.scala:11)	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:466)	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:677)	at sbt.ForkMain$Run$2.call(ForkMain.java:294)	at sbt.ForkMain$Run$2.call(ForkMain.java:284)	at java.util.concurrent.FutureTask.run(FutureTask.java:262)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)	at java.lang.Thread.run(Thread.java:745)