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

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 halfninja
, 1 year ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
via GitHub by patriknw
, 1 year ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
via Google Groups by Eduardo Fernandes, 1 week ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
via GitHub by cchantep
, 7 months ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
via GitHub by ktoso
, 2 years ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
via GitHub by viktorklang
, 2 years ago
not yet initialized: only setHandler is allowed in GraphStageLogic constructor
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.