Note that there are some explanatory texts on larger screens.

plurals
  1. POAkka (durable mailbox) configuration in Play2 project
    primarykey
    data
    text
    <p>I'm trying to configure some akka actors to have a durable mailbox within the context of a play2 application.</p> <p>The configuration in <code>application.conf</code> is being read as <code>MongoBasedMailboxType</code> is being instantiated. </p> <p>event-dispatcher { mailbox-type = akka.actor.mailbox.MongoBasedMailboxType }</p> <p>However I'm running into this exception.</p> <pre><code>java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps; at akka.util.Duration$.&lt;init&gt;(Duration.scala:76) at akka.util.Duration$.&lt;clinit&gt;(Duration.scala) at akka.actor.mailbox.MongoBasedMailboxSettings.&lt;init&gt;(MongoBasedMailboxSettings.scala:21) at akka.actor.mailbox.MongoBasedMailboxType.&lt;init&gt;(MongoBasedMailbox.scala:26) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) </code></pre> <p>I believe the cause is that the configuration below is not being recognized.</p> <pre><code>akka { actor { mailbox { mongodb { uri = "mongodb://localhost/akka.mailbox" timeout { # time to wait for a read to succeed before timing out the future read = 3000 ms # time to wait for a write to succeed before timing out the future write = 3000 ms } } } } } </code></pre> <p>I've also tried wrapping the <code>akka {... }</code> in <code>play {}</code> without luck.</p> <ul> <li>scalaVersion := "2.10.1"</li> <li>"com.typesafe.akka" % "akka-mongo-mailbox" % "2.0.5"</li> <li>addSbtPlugin("play" % "sbt-plugin" % "2.1.5")</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload