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. ,

    In Scala, don’t use the get method with Option to access a result. Use getOrElse, a match expression, or foreach instead.

java.util.NoSuchElementException: None.get	at scala.None$.get(Option.scala:185)	at scala.None$.get(Option.scala:183)	at kafka.producer.ProducerPool.getAnyProducer(ProducerPool.scala:76)	at kafka.producer.BrokerPartitionInfo.updateInfo(BrokerPartitionInfo.scala:73)	at kafka.producer.BrokerPartitionInfo.getBrokerPartitionInfo(BrokerPartitionInfo.scala:45)	at kafka.producer.async.DefaultEventHandler.kafka$producer$async$DefaultEventHandler$$getPartitionListForTopic(DefaultEventHandler.scala:129)	at kafka.producer.async.DefaultEventHandler$$anonfun$partitionAndCollate$1.apply(DefaultEventHandler.scala:95)	at kafka.producer.async.DefaultEventHandler$$anonfun$partitionAndCollate$1.apply(DefaultEventHandler.scala:94)	at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:61)	at scala.collection.immutable.List.foreach(List.scala:45)	at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:44)	at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:42)	at kafka.producer.async.DefaultEventHandler.partitionAndCollate(DefaultEventHandler.scala:94)	at kafka.producer.async.DefaultEventHandler.dispatchSerializedData(DefaultEventHandler.scala:65)	at kafka.producer.async.DefaultEventHandler.handle(DefaultEventHandler.scala:49)	at kafka.producer.async.ProducerSendThread.tryToHandle(ProducerSendThread.scala:96)	at kafka.producer.async.ProducerSendThread$$anonfun$processEvents$3.apply(ProducerSendThread.scala:82)	at kafka.producer.async.ProducerSendThread$$anonfun$processEvents$3.apply(ProducerSendThread.scala:60)	at scala.collection.immutable.Stream.foreach(Stream.scala:254)	at kafka.producer.async.ProducerSendThread.processEvents(ProducerSendThread.scala:59)	at kafka.producer.async.ProducerSendThread.run(ProducerSendThread.scala:37)