java.util.NoSuchElementException

None.get

Solutions on the web348

  • via GitHub by semasping
    , 1 year ago
    None.get
  • via GitHub by grosu
    , 8 hours ago
    None.get
  • via GitHub by SethTisue
    , 10 months ago
    None.get
  • Stack trace

    • 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 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 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.<init>(PeerAgent.scala:116) at com.bwsw.tstreams.agents.producer.Producer.<init>(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) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 1 month ago
    20 times, 1 month ago
    Once, 1 month ago
    Once, 2 months ago
    2 times, 2 months ago
    24 more bugmates