java.lang.ClassCastException: java.lang.String cannot be cast to akka.http.javadsl.model.ws.Message

Google Groups | Ronny Bräunlich | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [akka-http] String cannot be cast to Message

    Google Groups | 6 months ago | Ronny Bräunlich
    java.lang.ClassCastException: java.lang.String cannot be cast to akka.http.javadsl.model.ws.Message

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to akka.http.javadsl.model.ws.Message

      at akka.stream.impl.fusing.Map$$anon$8.onPush()
    2. akka.stream.impl
      ActorGraphInterpreter$$anonfun$receive$1.applyOrElse
      1. akka.stream.impl.fusing.Map$$anon$8.onPush(Ops.scala:42)
      2. akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:747)
      3. akka.stream.impl.fusing.GraphInterpreter.processEvent(GraphInterpreter.scala:710)
      4. akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:616)
      5. akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:471)
      6. akka.stream.impl.fusing.GraphInterpreterShell.receive(ActorGraphInterpreter.scala:410)
      7. akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:603)
      8. akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:618)
      8 frames
    3. Akka Actor
      Mailbox.exec
      1. akka.actor.Actor.aroundReceive(Actor.scala:484)
      2. akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
      3. akka.actor.ActorCell.invoke(ActorCell.scala:495)
      4. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
      5. akka.dispatch.Mailbox.run(Mailbox.scala:224)
      6. akka.dispatch.Mailbox.exec(Mailbox.scala:234)
      6 frames
    4. Java RT
      ForkJoinWorkerThread.run
      1. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      2. java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      3. java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      4. java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      4 frames