java.io.IOException: java.lang.IllegalStateException: not yet initialized: only setHandler is allowed in GraphStageLogic constructor

GitHub | halfninja | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 21504#248384587

    GitHub | 7 months ago | halfninja
    java.io.IOException: java.lang.IllegalStateException: not yet initialized: only setHandler is allowed in GraphStageLogic constructor

    Root Cause Analysis

    1. 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()
    2. akka.stream.impl
      OutputStreamAdapter.flush
      1. akka.stream.impl.io.OutputStreamAdapter$$anonfun$sendMessage$1.apply$mcV$sp(OutputStreamSourceStage.scala:201)
      2. akka.stream.impl.io.OutputStreamAdapter.send(OutputStreamSourceStage.scala:172)
      3. akka.stream.impl.io.OutputStreamAdapter.sendMessage(OutputStreamSourceStage.scala:191)
      4. akka.stream.impl.io.OutputStreamAdapter.flush(OutputStreamSourceStage.scala:215)
      4 frames
    3. akka.stream.io
      OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4$$anonfun$10.apply
      1. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4$$anonfun$10.apply(OutputStreamSourceSpec.scala:72)
      2. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4$$anonfun$10.apply(OutputStreamSourceSpec.scala:68)
      2 frames
    4. akka.stream.impl
      ActorMaterializerImpl.materialize
      1. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:959)
      2. akka.stream.impl.MaterializerSession.resolveMaterialized(StreamLayout.scala:958)
      3. akka.stream.impl.MaterializerSession.materializeModule(StreamLayout.scala:936)
      4. akka.stream.impl.MaterializerSession.materialize(StreamLayout.scala:882)
      5. akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:240)
      6. akka.stream.impl.ActorMaterializerImpl.materialize(ActorMaterializerImpl.scala:138)
      6 frames
    5. akka.stream.scaladsl
      Source.runReduce
      1. akka.stream.scaladsl.RunnableGraph.run(Flow.scala:350)
      2. akka.stream.scaladsl.Source.runWith(Source.scala:81)
      3. akka.stream.scaladsl.Source.runReduce(Source.scala:117)
      3 frames
    6. akka.stream.io
      OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4.apply
      1. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4.apply(OutputStreamSourceSpec.scala:76)
      2. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4$$anonfun$apply$4.apply(OutputStreamSourceSpec.scala:67)
      2 frames
    7. akka.stream.testkit
      Utils$.assertAllStagesStopped
      1. akka.stream.testkit.Utils$.assertAllStagesStopped(Utils.scala:25)
      1 frame
    8. akka.stream.io
      OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4.apply
      1. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4.apply(OutputStreamSourceSpec.scala:67)
      2. akka.stream.io.OutputStreamSourceSpec$$anonfun$2$$anonfun$apply$mcV$sp$4.apply(OutputStreamSourceSpec.scala:67)
      2 frames
    9. scalatest
      OutcomeOf$class.outcomeOf
      1. org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
      1 frame