You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an error on Scala 3, as a result of a binary incompatibility of the 2.13 cross-version artifacts of akka in the library.
I only tested this with newer versions of Akka (2.9.x), but I don't see any changes to the Serializer trait. Here is the error message:
[info] ApiSpec:
[info] showcase.server.api.ApiSpec ABORTED (854 milliseconds)
[info] java.lang.NoSuchMethodError: 'void akka.serialization.Serializer.$init$(akka.serialization.Serializer)'
[info] at io.altoo.akka.serialization.kryo.KryoSerializer.<init>(KryoSerializer.scala:81)
[info] at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
[info] at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
[info] at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
[info] at akka.actor.ReflectiveDynamicAccess.createInstanceFor$$anonfun$1(ReflectiveDynamicAccess.scala:40)
[info] at scala.util.Try$.apply(Try.scala:217)
[info] at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:44)
[info] at akka.actor.ReflectiveDynamicAccess.createInstanceFor$$anonfun$2(ReflectiveDynamicAccess.scala:48)
[info] at scala.util.Success.flatMap(Try.scala:266)
[info] at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:48)
The fix is quite simple: There are native Scala 3 artifacts for Akka 2.6.x on Sonatype maven.
I'll open a PR - I'd really appreciate a new release with this fix, as this is a hurdle in Scala 3 migration and it seems like other users might also be affected.
The text was updated successfully, but these errors were encountered:
I get an error on Scala 3, as a result of a binary incompatibility of the 2.13 cross-version artifacts of akka in the library.
I only tested this with newer versions of Akka (2.9.x), but I don't see any changes to the Serializer trait. Here is the error message:
This error is also mentioned in issue #291
The fix is quite simple: There are native Scala 3 artifacts for Akka 2.6.x on Sonatype maven.
I'll open a PR - I'd really appreciate a new release with this fix, as this is a hurdle in Scala 3 migration and it seems like other users might also be affected.
The text was updated successfully, but these errors were encountered: