Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Ciaran0
, 1 year ago
akka.NotUsed$ cannot be cast to scala.runtime.BoxedUnit
java.lang.ClassCastException: akka.NotUsed$ cannot be cast to scala.runtime.BoxedUnit	at com.spingo.op_rabbit.stream.RabbitSource$$anonfun$apply$7.apply(RabbitSource.scala:167)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:679)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)	at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:678)	at akka.stream.impl.MaterializerSession.materializeModule(StreamLayout.scala:665)	at akka.stream.impl.MaterializerSession.materialize(StreamLayout.scala:608)	at akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:189)	at akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:79)	at akka.stream.scaladsl.RunnableGraph.run(Flow.scala:343)	at com.paddypower.streams.flows.BetStreamFlow.consumeBets(BetStreamFlow.scala:77)	at com.paddypower.app.Boot$.delayedEndpoint$com$paddypower$app$Boot$1(Boot.scala:30)	at com.paddypower.app.Boot$delayedInit$body.apply(Boot.scala:17)	at scala.Function0$class.apply$mcV$sp(Function0.scala:34)	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)	at scala.App$$anonfun$main$1.apply(App.scala:76)	at scala.App$$anonfun$main$1.apply(App.scala:76)	at scala.collection.immutable.List.foreach(List.scala:381)	at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)	at scala.App$class.main(App.scala:76)	at com.paddypower.app.Boot$.main(Boot.scala:17)	at com.paddypower.app.Boot.main(Boot.scala)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:497)