Topic
  • No replies
Sylvain_Dehors
Sylvain_Dehors
1 Post

Pinned topic JVM 8.0.5.31 issue with scala

‏2019-04-17T12:30:57Z | akka jvm scala

Hello,

We are observing an issue running the akka hello world on the latest build of IBM JVM 8 : 8.0.5.31 

It's fine with previous versions of IBM and with oracle JDK. It looks like a problem related to scala.

Here is the stack trace:

Exception in thread "main" java.lang.IllegalAccessError: Receiver class java/lang/Class must be the current class or a subtype of interface scala/collection/MapLike
    at scala.collection.MapLike.newBuilder$(MapLike.scala:77)
    at scala.collection.AbstractMap.newBuilder(Map.scala:63)
    at akka.actor.setup.ActorSystemSetup.get(ActorSystemSetup.scala:68)
    at akka.actor.ActorSystem$.apply(ActorSystem.scala:253)
    at akka.actor.ActorSystem$.apply(ActorSystem.scala:302)
    at akka.actor.ActorSystem$.apply(ActorSystem.scala:246)
    at akka.actor.ActorSystem$.create(ActorSystem.scala:176)
    at akka.actor.ActorSystem.create(ActorSystem.scala)
    at sample.hello.Main2.main(Main2.java:8)

and the link to the java project that shows the error

https://github.com/akka/akka-samples/tree/2.5/akka-sample-main-java

Any idea what could be causing this ?