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

java.lang.IllegalStateException: Expected mastre didn't occure in 8 trials. at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:161) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal$1.apply(PeerAgent.scala:153) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMasterInternal(PeerAgent.scala:171) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMaster$1.apply(PeerAgent.scala:181) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMaster$1.apply(PeerAgent.scala:181) at com.bwsw.tstreams.common.LockUtil$.withZkLockOrDieDo(LockUtil.scala:100) at com.bwsw.tstreams.coordination.producer.AgentsStateDBService.withElectionLockDo(AgentsStateDBService.scala:301) at com.bwsw.tstreams.coordination.producer.PeerAgent.com$bwsw$tstreams$coordination$producer$PeerAgent$$electPartitionMaster(PeerAgent.scala:181) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$updateMaster$1.apply$mcV$sp(PeerAgent.scala:205) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$updateMaster$1.apply(PeerAgent.scala:205) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$updateMaster$1.apply(PeerAgent.scala:205) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.updateMaster(PeerAgent.scala:205) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$updateMaster$2.apply(PeerAgent.scala:214) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anonfun$updateMaster$2.apply(PeerAgent.scala:205) at scala.Option.fold(Option.scala:158) at com.bwsw.tstreams.coordination.producer.PeerAgent.updateMaster(PeerAgent.scala:205) at com.bwsw.tstreams.coordination.producer.PeerAgent$$anon$2.run(PeerAgent.scala:131) at java.lang.Thread.run(Thread.java:745)