java.lang.ClassCastException

interface akka.actor.Actor is not assignable from class docs.http.javadsl.server.HighLevelServerExample

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web425

  • via Google Groups by Unknown author, 9 months ago
    interface akka.actor.Actor is not assignable from class docs.http.javadsl.server.HighLevelServerExample
  • interface akka.actor.Scheduler is not assignable from class akka.actor.LightArrayRevolverScheduler
  • interface akka.actor.ActorRefProvider is not assignable from class akka.actor.LocalActorRefProvider
  • Stack trace

    • java.lang.ClassCastException: interface akka.actor.Actor is not assignable from class docs.http.javadsl.server.HighLevelServerExample at akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:23) at akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:20) at scala.util.Try$.apply(Try.scala:192) at akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:20) at akka.Main$.main(Main.scala:32) at akka.Main.main(Main.scala)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Once, 1 day ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago