java.lang.IllegalStateException

not yet initialized: only setHandler is allowed in GraphStageLogic constructor

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web6

  • via GitHub by halfninja
    ,
  • via GitHub by halfninja
    ,
  • Stack trace

    • java.lang.IllegalStateException: not yet initialized: only setHandler is allowed in GraphStageLogic constructor at akka.stream.stage.GraphStageLogic.interpreter(GraphStage.scala:242) at akka.stream.stage.GraphStageLogic$$anon$2.invoke(GraphStage.scala:885) at akka.stream.impl.io.OutputStreamSourceStage$$anon$1.wakeUp(OutputStreamSourceStage.scala:73) at akka.stream.impl.io.OutputStreamSourceStage$$anonfun$createLogicAndMaterializedValue$2.apply(OutputStreamSourceStage.scala:154) at akka.stream.impl.io.OutputStreamSourceStage$$anonfun$createLogicAndMaterializedValue$2.apply(OutputStreamSourceStage.scala:154) at akka.stream.impl.io.OutputStreamAdapter$$anonfun$sendMessage$1.apply$mcV$sp(OutputStreamSourceStage.scala:193) at akka.stream.impl.io.OutputStreamAdapter.send(OutputStreamSourceStage.scala:172) at akka.stream.impl.io.OutputStreamAdapter.sendMessage(OutputStreamSourceStage.scala:191) at akka.stream.impl.io.OutputStreamAdapter.flush(OutputStreamSourceStage.scala:215) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4$$anonfun$10.apply(OutputStreamSourceSpec.scala:72) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4$$anonfun$10.apply(OutputStreamSourceSpec.scala:68) at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:959) at akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:958) at akka.stream.impl.MaterializerSession.materializeModule(StreamLayout.scala:936) at akka.stream.impl.MaterializerSession.materialize(StreamLayout.scala:882) at akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:240) at akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:138) at akka.stream.scaladsl.RunnableGraph.run(Flow.scala:350) at akka.stream.scaladsl.Source.runWith(Source.scala:81) at akka.stream.scaladsl.Source.runReduce(Source.scala:117) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4.apply(OutputStreamSourceSpec.scala:76) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4.apply(OutputStreamSourceSpec.scala:67) at akka.stream.testkit.Utils$.assertAllStagesStopped(Utils.scala:25) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4.apply(OutputStreamSourceSpec.scala:67) at akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4.apply(OutputStreamSourceSpec.scala:67) at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)

    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

    We couldn't find other users who have seen this exception.