Error when using 2.6.0-RC1 or RC2

Hi Everyone, When attempting to use RC1 or RC I get the following error - when running my tests - that is not present when using M8;

akka-typed is NOT in my dependencies (build.sbt)

java.lang.IllegalStateException: Detected possible incompatible versions on the classpath. Please note that a given Akka version MUST be the same across all modules of Akka that you are using, e.g. if you use [2.6.0-RC2] all other modules that are released together MUST be of the same version. Make sure you’re using a compatible set of libraries. Possibly conflicting versions [2.6.0-RC2, 2.6.0-M8] in libraries [akka-actor:2.6.0-RC2, akka-slf4j:2.6.0-RC2, akka-multi-node-testkit:2.6.0-RC2, akka-actor-typed:2.6.0-M8, akka-remote:2.6.0-RC2, akka-protobuf-v3:2.6.0-RC2, akka-stream:2.6.0-RC2]
[DEBUG] [10/29/2019 21:00:46.898] [testsystem-akka.actor.internal-dispatcher-7] [EventStream] shutting down: StandardOutLogger
[info] at akka.util.ManifestInfo.checkSameVersion(ManifestInfo.scala:204)
[info] at akka.util.ManifestInfo.checkSameVersion(ManifestInfo.scala:171)

[info] at akka.actor.ActorSystemImpl.liftedTree2$1(ActorSystem.scala:1040)
[info] at akka.actor.ActorSystemImpl._start$lzycompute(ActorSystem.scala:1029)
[info] at akka.actor.ActorSystemImpl._start(ActorSystem.scala:1029)
[info] at akka.actor.ActorSystemImpl.start(ActorSystem.scala:1051)
[info] at akka.actor.ActorSystem$.apply(ActorSystem.scala:282)
[info] at akka.actor.ActorSystem$.apply(ActorSystem.scala:326)
[info] at akka.actor.ActorSystem$.apply(ActorSystem.scala:270)
[info] at au.com.ecpr.silentActorTest.SilentActorTest.(SilentActorSuite.scala:21)

sbt evicted has the following output;
[warn] Found version conflict(s) in library dependencies; some are suspected to be binary incompatible:
[warn] * com.typesafe.play:play-server_2.13:2.8.0-M6 is selected over {2.7.3, 2.7.3}
[warn] ± com.typesafe.play:play-akka-http-server_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 2.7.3)
[warn] ± be.objectify:deadbolt-scala_2.13:2.7.1 (depends on 2.7.3)
[warn] * com.typesafe.play:filters-helpers_2.13:2.8.0-M6 is selected over 2.7.3
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 2.7.3)
[warn] * com.typesafe.akka:akka-actor_2.13:2.6.0-RC2 is selected over {2.6.0-M8, 2.6.0-M8, 2.6.0-M8}
[warn] ± com.typesafe.akka:akka-slf4j_2.13:2.6.0-RC2 (depends on 2.6.0-RC2)
[warn] ± com.typesafe.akka:akka-stream_2.13:2.6.0-RC2 (depends on 2.6.0-RC2)
[warn] ± com.typesafe.akka:akka-remote_2.13:2.6.0-RC2 (depends on 2.6.0-RC2)
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.6.0-M8)
[warn] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.6.0-M8)
[warn] ± com.typesafe.akka:akka-actor-typed_2.13:2.6.0-M8 (depends on 2.6.0-M8)
[warn] * com.typesafe.play:play-logback_2.13:2.8.0-M6 is selected over {2.7.3, 2.7.3}
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 2.7.3)
[warn] ± be.objectify:deadbolt-scala_2.13:2.7.1 (depends on 2.7.3)
[warn] * com.typesafe.play:twirl-api_2.13:1.5.0-M4 is selected over {1.4.2, 1.4.2}
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 1.5.0-M4)
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 1.4.2)
[warn] ± be.objectify:deadbolt-scala_2.13:2.7.1 (depends on 1.4.2)
[warn] * com.typesafe.akka:akka-slf4j_2.13:2.6.0-RC2 is selected over 2.6.0-M8
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.6.0-M8)
[warn] * com.typesafe.play:play-cache_2.13:2.8.0-M6 is selected over 2.7.3
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 2.7.3)
[warn] * com.typesafe.play:play-akka-http-server_2.13:2.8.0-M6 is selected over {2.7.3, 2.7.3}
[warn] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 2.7.3)
[warn] ± be.objectify:deadbolt-scala_2.13:2.7.1 (depends on 2.7.3)
[warn] * com.google.code.findbugs:jsr305:3.0.2 is selected over 2.0.1
[warn] ± com.google.guava:guava:28.1-jre (depends on 3.0.2)
[warn] ± com.atlassian.jwt:jwt-api:2.0.5 (depends on 2.0.1)
[warn] * com.typesafe.play:play-json_2.13:2.8.0-M6 is selected over {2.7.4, 2.7.4}
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-ws-standalone-json_2.13:2.0.6 (depends on 2.7.4)
[warn] ± com.typesafe.play:play-json-joda_2.13:2.7.4 (depends on 2.7.4)
[warn] * com.google.guava:guava:28.1-jre is selected over 25.1-android
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 28.1-jre)
[warn] ± com.google.inject:guice:4.2.2 (depends on 25.1-android)
[warn] * com.typesafe:ssl-config-core_2.13:0.4.0 is selected over 0.3.8
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 0.4.0)
[warn] ± com.typesafe.akka:akka-stream_2.13:2.6.0-RC2 (depends on 0.4.0)
[warn] ± com.typesafe.play:play-ws-standalone_2.13:2.0.6 (depends on 0.3.8)
[warn] * com.typesafe.akka:akka-stream_2.13:2.6.0-RC2 is selected over {2.6.0-M8, 2.5.23}
[warn] ± com.typesafe.akka:akka-remote_2.13:2.6.0-RC2 (depends on 2.6.0-RC2)
[warn] ± com.typesafe.play:play-ws-standalone_2.13:2.0.6 (depends on 2.5.23)
[warn] ± com.typesafe.play:play-streams_2.13:2.8.0-M6 (depends on 2.6.0-M8)
[warn] * net.minidev:json-smart:2.3 is selected over [1.3.1,2.3]
[warn] ± com.nimbusds:nimbus-jose-jwt:4.41.1 (depends on [1.3.1,2.3])
[warn] * com.typesafe.play:play_2.13:2.8.0-M6 is selected over 2.7.3
[warn] ± com.typesafe.play:play-logback_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-server_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-guice_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-jdbc-api_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-cache_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:filters-helpers_2.13:2.8.0-M6 (depends on 2.8.0-M6)
[warn] ± com.typesafe.play:play-ws_2.13:2.7.3 (depends on 2.7.3)
[warn] * org.scala-lang.modules:scala-java8-compat_2.13:0.9.0 is selected over 0.8.0
[warn] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 0.9.0)
[warn] ± com.typesafe.play:play-streams_2.13:2.8.0-M6 (depends on 0.9.0)
[warn] ± com.typesafe.akka:akka-actor_2.13:2.6.0-RC2 (depends on 0.9.0)
[warn] ± com.typesafe.play:play-ahc-ws-standalone_2.13:2.0.6 (depends on 0.8.0)
[info] Here are other dependency conflicts that were resolved:
[info] * com.typesafe:config:1.4.0 is selected over 1.3.3
[info] ± com.typesafe.akka:akka-actor_2.13:2.6.0-RC2 (depends on 1.4.0)
[info] ± com.typesafe:ssl-config-core_2.13:0.4.0 (depends on 1.3.3)
[info] * com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10 is selected over 2.9.9
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.9.10)
[info] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.9.10)
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.9.9)
[info] * joda-time:joda-time:2.10.3 is selected over {2.9.9, 2.10.1, 2.7}
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.10.3)
[info] ± org.jasig.cas.client:cas-client-support-saml:3.4.1 (depends on 2.7)
[info] ± com.typesafe.play:play-json-joda_2.13:2.7.4 (depends on 2.10.1)
[info] ± com.typesafe.play:cachecontrol_2.13:1.1.7 (depends on 2.9.9)
[info] * org.reactivestreams:reactive-streams:1.0.3 is selected over 1.0.2
[info] ± com.typesafe.play:play-streams_2.13:2.8.0-M6 (depends on 1.0.3)
[info] ± com.typesafe.akka:akka-stream_2.13:2.6.0-RC2 (depends on 1.0.3)
[info] ± com.typesafe.play:play-ahc-ws-standalone_2.13:2.0.6 (depends on 1.0.2)
[info] * com.fasterxml.jackson.core:jackson-annotations:2.9.10 is selected over 2.9.9
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-scala_2.13:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.core:jackson-databind:2.9.10 (depends on 2.9.10)
[info] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.9.10)
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.9.9)
[info] * com.fasterxml.jackson.core:jackson-core:2.9.10 is selected over 2.9.9
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-scala_2.13:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.core:jackson-databind:2.9.10 (depends on 2.9.10)
[info] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.9.10)
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.9.9)
[info] * org.apache.commons:commons-lang3:3.9 is selected over 3.8.1
[info] ± com.mohiva:play-silhouette_2.13:6.1.1 (depends on 3.8.1)
[info] * commons-codec:commons-codec:1.11 is selected over 1.4
[info] ± com.atlassian.jwt:jwt-core:2.0.5 (depends on 1.4)
[info] * com.fasterxml.jackson.core:jackson-databind:2.9.10 is selected over {2.9.9.3, 2.9.6}
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-scala_2.13:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.module:jackson-module-paranamer:2.9.10 (depends on 2.9.10)
[info] ± com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.10 (depends on 2.9.10)
[info] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.9.10)
[info] ± io.jsonwebtoken:jjwt:0.9.1 (depends on 2.9.6)
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.9.9.3)
[info] * com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.10 is selected over 2.9.9
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 2.9.10)
[info] ± com.typesafe.akka:akka-serialization-jackson_2.13:2.6.0-M8 (depends on 2.9.10)
[info] ± com.typesafe.play:play-json_2.13:2.8.0-M6 (depends on 2.9.9)
[info] * org.slf4j:slf4j-api:1.7.28 is selected over {1.7.25, 1.5.10, 1.7.25, 1.7.26, 1.7.25, 1.7.1, 1.7.1}
[info] ± com.typesafe.play:play_2.13:2.8.0-M6 (depends on 1.7.28)
[info] ± org.slf4j:jcl-over-slf4j:1.7.28 (depends on 1.7.28)
[info] ± com.typesafe.akka:akka-actor-typed_2.13:2.6.0-M8 (depends on 1.7.28)
[info] ± com.typesafe.akka:akka-slf4j_2.13:2.6.0-RC2 (depends on 1.7.28)
[info] ± org.slf4j:jul-to-slf4j:1.7.28 (depends on 1.7.28)
[info] ± org.jasig.cas.client:cas-client-support-saml:3.4.1 (depends on 1.7.1)
[info] ± org.jasig.cas.client:cas-client-core:3.4.1 (depends on 1.7.1)
[info] ± com.zaxxer:HikariCP:3.4.1 (depends on 1.7.25)
[info] ± com.typesafe.play:play-ahc-ws-standalone_2.13:2.0.6 (depends on 1.7.26)
[info] ± com.typesafe.play:cachecontrol_2.13:1.1.7 (depends on 1.7.25)
[info] ± com.googlecode.usc:jdbcdslog:1.0.6.2 (depends on 1.5.10)
[info] ± ch.qos.logback:logback-classic:1.2.3 (depends on 1.7.25)

I think that is because of a transitive dependency from one of the play 2.6.0-M8 modules pulling in akka-actor-typed. You’d have to go through all transitively pulled in akka modules and override their version, however I’m not sure play 2.8.0-M8 will work out of the box with the Akka 2.6.0-RCs you may have to wait for a corresponding play release candidate.

1 Like

Hey @gavinbaumanis,

Try Play 2.8.0-RC1 which brings Akka 2.6.0-RC2. See more here: https://github.com/playframework/playframework/releases/tag/2.8.0-RC1

Best.

Hi Everyone,

Thanks for the suggestions.

I tried upgrading Play earlier, but kept getting error messages about not finding artifacts in the repository.
Anyway - tried again, now, and I have successfully upgraded Play to 2.8.0-RC1 and akka 2.6.0-RC2.

Thanks