java.util.NoSuchElementException: None.get

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

Solutions on the web

via Apache's JIRA Issue Tracker by John Fung, 1 year ago
None.get
via Apache's JIRA Issue Tracker by John Fung, 1 year ago
None.get
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 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 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.processEvents(ProducerSendThread.scala:59)
at kafka.producer.async.ProducerSendThread.run(ProducerSendThread.scala:37)

Users with the same issue

Once, 2 days ago
Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Once, 3 weeks ago
4 times, 2 months ago
26 more bugmates

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