java.lang.ClassCastException: akka.NotUsed$ cannot be cast to scala.runtime.BoxedUnit

GitHub | Ciaran0 | 12 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

    Error with AkkaStreams

    GitHub | 12 months ago | Ciaran0
    java.lang.ClassCastException: akka.NotUsed$ cannot be cast to scala.runtime.BoxedUnit

    Root Cause Analysis

    1. java.lang.ClassCastException

      akka.NotUsed$ cannot be cast to scala.runtime.BoxedUnit

      at com.spingo.op_rabbit.stream.RabbitSource$$anonfun$apply$7.apply()
    2. com.spingo.op_rabbit
      RabbitSource$$anonfun$apply$7.apply
      1. com.spingo.op_rabbit.stream.RabbitSource$$anonfun$apply$7.apply(RabbitSource.scala:167)
      1 frame
    3. akka.stream.impl
      ActorMaterializerImpl.materialize
      1. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:679)
      2. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)
      3. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)
      4. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)
      5. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)
      6. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)
      7. akka.stream.impl.MaterializerSession.materializeModule(StreamLayout.scala:665)
      8. akka.stream.impl.MaterializerSession.materialize(StreamLayout.scala:608)
      9. akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:189)
      10. akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:79)
      10 frames
    4. akka.stream.scaladsl
      RunnableGraph.run
      1. akka.stream.scaladsl.RunnableGraph.run(Flow.scala:343)
      1 frame
    5. com.paddypower.streams
      BetStreamFlow.consumeBets
      1. com.paddypower.streams.flows.BetStreamFlow.consumeBets(BetStreamFlow.scala:77)
      1 frame
    6. com.paddypower.app
      Boot$delayedInit$body.apply
      1. com.paddypower.app.Boot$.delayedEndpoint$com$paddypower$app$Boot$1(Boot.scala:30)
      2. com.paddypower.app.Boot$delayedInit$body.apply(Boot.scala:17)
      2 frames
    7. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:34)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:76)
      4. scala.App$$anonfun$main$1.apply(App.scala:76)
      5. scala.collection.immutable.List.foreach(List.scala:381)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
      7. scala.App$class.main(App.scala:76)
      7 frames
    8. com.paddypower.app
      Boot.main
      1. com.paddypower.app.Boot$.main(Boot.scala:17)
      2. com.paddypower.app.Boot.main(Boot.scala)
      2 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames