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

Samebug tips

,

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:347)
at scala.None$.get(Option.scala:345)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.updateMySettings(AgentsStateDBService.scala:163)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.com$bwsw$tstreams$coordination$producer$AgentsStateDBService$$updateMyPriority(AgentsStateDBService.scala:149)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$demoteMeAsMaster$1$$anonfun$apply$1.apply$mcVI$sp(AgentsStateDBService.scala:224)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$demoteMeAsMaster$1$$anonfun$apply$1.apply(AgentsStateDBService.scala:224)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$demoteMeAsMaster$1$$anonfun$apply$1.apply(AgentsStateDBService.scala:224)
at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:316)
at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:972)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$demoteMeAsMaster$1.apply(AgentsStateDBService.scala:224)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$demoteMeAsMaster$1.apply(AgentsStateDBService.scala:215)
at scala.Option.foreach(Option.scala:257)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.demoteMeAsMaster(AgentsStateDBService.scala:214)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.com$bwsw$tstreams$coordination$producer$AgentsStateDBService$$removeLastSessionArtifact(AgentsStateDBService.scala:259)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$removeLastSessionArtifacts$1.apply$mcVI$sp(AgentsStateDBService.scala:235)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$removeLastSessionArtifacts$1.apply(AgentsStateDBService.scala:235)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService$$anonfun$removeLastSessionArtifacts$1.apply(AgentsStateDBService.scala:235)
at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:316)
at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:972)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.removeLastSessionArtifacts(AgentsStateDBService.scala:235)
at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.bootstrap(AgentsStateDBService.scala:102)
at com.bwsw.tstreams.coordination.producer.PeerAgent.(PeerAgent.scala:116)
at com.bwsw.tstreams.agents.producer.Producer.(Producer.scala:95)
at com.bwsw.tstreams.env.TStreamsFactory.getProducer(TStreamsFactory.scala:893)
at com.bwsw.t_sreams.hello.HelloProducer$.main(Main.scala:59)
at com.bwsw.t_sreams.hello.HelloProducer.main(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

Once, 4 hours ago
Once, 1 day ago
3 times, 3 weeks ago
Once, 3 weeks ago
Once, 3 weeks ago

Write tip

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