mongodb - Play 2.3.5 and ReactiveMongo: MongoError['No primary node is available!'] -


I recently upgraded the playback to version 2.3.5 and try experimenting with ReactiveVango. However, every time I try to read data from Mangodybi, an exception is there. This is my build.sbt:

  name: = "" Reactive Mongoort Example "" "version: =" 1.0-snapshot "lazy val root = (file (". ") ). enablePlugins (PlayScala) scalaVersion: = "2.11.1" libraryDependencies ++ = Seq (JDBC, anorm, cash, ws, "org.reactivemongo" %% "play2-reactivemongo"% "0.10.5.0.akka23")  

This stacktrace is:

play.api.application $$ anon $ 1: execution exception [[PrimaryUnavailableException $: MongoError ['! No primary node is available '~ [play_2.11-2.3.5.jar: 2.3.5] play.api.DefaultApplication.handleError (on application.scala:]]] play.api.application $ class.handleError (296 Application .scala) at 402) [Play_2.11-2.3.5 .Jere: 2.3.5] play.core.server.netty.PlayDefaultUpstreamHandler $$$$$$$$$$$$$$$$$$$$$$ (PlayDefaultUpstreamHandler.scala: 205) [play_2.11- 2k3k5kjeyr: 2.3.5] play.core.server.netty.PlayDefaultUpstreamHandler $$ $ $ $ $ $ $ $ $ $ $ apply $ 1.applyOrElse on (PlayDefaul tUpstreamHandler.scala: 202) [play_2.11-2.3.5.jar: 2.3.5] scala.runtime.AbstractPartialFunction.apply (on AbstractPartialFunction.scala: 36) [scala-library -2.11.2. jar: na ] Reason by: reactivemongo.core.actors.Exceptions $ PrimaryUsedUsingUser $: MongoError ['No Primary No D is not available! '] On Reactivemongo.core.actors. Exceptions $ $ prefixed exceptions $. (Actor. Scala) ~ [reactive mongo_2.11-0.10.5.0 .kka23.jar: 0.10.5.0.akka23] Riaktivmongokkor.actorskmongo Dibissistm $ $ $ Annufun Chucanl $ 4kapply (Actors. Scala: 508) ~ [ReactiveMongo_2.11-0.10.5.0.Kaka 23.jar: 0.10 5.0.akka23] Reactive Mongo.core.actors. Mongo D Bissistm $ $ $ Annufun Cackel $ 4.apply (actor. Scala: 508) ~ [Riaktivmongo_2kll-0kl0k5k0kkkka 23kjr in 0kl0k5k0kkkka 23] scala. Option.getOrElse (Option.scala: 120) ~ [scala-library -2.11.2. Jar: na] ~ [reactivemongo_2.11-0.10.5.0 on reactivemongo.core.actors.MongoDBSystem.pickChannel (actors.scala: 508) .kka23.jar: 0.10.5.0.kkka 23]

Mongodibe works fine I am able to retrieve data with commandline tools and entelines.

I pressed the code

Maybe someone knows this issue and can help me? It will be very awesome

with the same RX Mango plugin updated to play 2.3.8 . MongoDB works well under the Mongo shell, considering the 14-way Mongo Explorer in IntelliJ works

Using mongodb.uri in application.conf:.

mongodb.uri = "MongoDB: // pxxxxxxxx:

Henry


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -