reactivemongo play 2.3 0.11.7 to 0.11.11 upgrade raises ExceptionInInitializerError
<p>[I am re-editing this question to reflect on my last tests]</p>

<p>I am trying to upgrade my akka / play 2.3 application from </p>

<p>"org.reactivemongo" %% "play2-reactivemongo" % "0.11.7.play23"</p>

<p>to</p>

<p>"org.reactivemongo" %% "play2-reactivemongo" % "0.11.11-play23"</p>

<p>Compilation goes fine but at run-time I get the following error:</p>

<pre><code>[ERROR] -- NettyTransport(akka://reactivemongo)
failed to bind to /127.0.0.1:2552, shutting down Netty transport

...

Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /127.0.0.1:2552
</code></pre>

<p>The Akka part of application.conf reads as follows:</p>

<pre><code>akka {
    loggers = ["akka.event.slf4j.Slf4jLogger"]
    loglevel = "DEBUG"
    actor {
        provider = "akka.remote.RemoteActorRefProvider"
        mailbox {
            requirements {
                "akka.dispatch.BoundedMessageQueueSemantics" = bounded-mailbox
            }
        }
    }
    remote {
        enabled-transports = ["akka.remote.netty.tcp"]
        netty.tcp {
            hostname = "127.0.0.1"
            port = 2552
        }
    }
}
</code></pre>

<p>The exception is raised when trying to instantiate the reactivemongo driver</p>

<pre><code>val driver = new reactivemongo.api.MongoDriver()
</code></pre>

<p>This suggests that the mongodriver is using Akka under the hood and is binding to the same address that my main application. And indeed, if I edit my application.conf and change the akka.remote.netty.tcp.port from 2552 to 2553, I get the following exception:</p>

<pre><code>[ERROR] -- NettyTransport(akka://reactivemongo)
failed to bind to /127.0.0.1:2553, shutting down Netty transport
</code></pre>

<p>In the previous versions of reactivemongo, by default, instantiating the driver was starting a new actor system so maybe version 0.11.11 tries to reuse the existing system?</p>

<p>I have tried to modify the akka port used by the driver as follows:</p>

<pre><code>val customConf = ConfigFactory.parseString("""
  akka {
    remote {
      netty.tcp.port = 4711
    }
  }
  """)

val typesafeConfig: com.typesafe.config.Config = ConfigFactory.load(customConf)

val driver = new reactivemongo.api.MongoDriver(Some(typesafeConfig))
</code></pre>

<p>But this does not work, the new port is not taken into account and I keep getting the same error:</p>

<pre><code>[ERROR] -- NettyTransport(akka://reactivemongo)
failed to bind to /127.0.0.1:2552, shutting down Netty transport
</code></pre>