java.io.IOException

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 web1

  • via GitHub by halfninja
    ,
  • Stack trace

    • java.io.IOException: java.lang.IllegalStateException: not yet initialized: only setHandler is allowed in GraphStageLogic constructor at akka.stream.impl.io.OutputStreamAdapter$$anonfun$sendMessage$1.apply$mcV$sp(OutputStreamSourceStage.scala:201) 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

    Unknown visitor
    Unknown visitorOnce,