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
java.lang.IllegalStateException: 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 sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)	at java.io.PrintWriter.flush(PrintWriter.java:320)	at controllers.HomeController.write(HomeController.scala:36)	at controllers.HomeController$$anonfun$controllers$HomeController$$brokenSource$1.apply(HomeController.scala:22)	at controllers.HomeController$$anonfun$controllers$HomeController$$brokenSource$1.apply(HomeController.scala:22)	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 play.core.server.netty.NettyModelConversion.play$core$server$netty$NettyModelConversion$$createChunkedResponse(NettyModelConversion.scala:256)	at play.core.server.netty.NettyModelConversion$$anonfun$convertResult$1.apply(NettyModelConversion.scala:189)	at play.core.server.netty.NettyModelConversion$$anonfun$convertResult$1.apply(NettyModelConversion.scala:166)	at play.core.server.common.ServerResultUtils$.resultConversionWithErrorHandling(ServerResultUtils.scala:127)	at play.core.server.netty.NettyModelConversion.convertResult(NettyModelConversion.scala:235)	at play.core.server.netty.PlayRequestHandler$$anonfun$play$core$server$netty$PlayRequestHandler$$handleAction$2$$anonfun$apply$3.apply(PlayRequestHandler.scala:273)	at play.core.server.netty.PlayRequestHandler$$anonfun$play$core$server$netty$PlayRequestHandler$$handleAction$2$$anonfun$apply$3.apply(PlayRequestHandler.scala:267)	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)	at play.api.libs.iteratee.Execution$trampoline$.executeScheduled(Execution.scala:109)	at play.api.libs.iteratee.Execution$trampoline$.execute(Execution.scala:71)	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)	at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)	at scala.concurrent.Promise$class.complete(Promise.scala:55)	at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)	at scala.concurrent.Future$$anonfun$flatMap$1$$anonfun$apply$3.apply(Future.scala:254)	at scala.concurrent.Future$$anonfun$flatMap$1$$anonfun$apply$3.apply(Future.scala:254)	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)	at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.processBatch$1(BatchingExecutor.scala:63)	at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:78)	at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)	at scala.concurrent.BatchingExecutor$Batch$$anonfun$run$1.apply(BatchingExecutor.scala:55)	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)	at scala.concurrent.BatchingExecutor$Batch.run(BatchingExecutor.scala:54)	at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:599)	at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:106)	at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597)	at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)	at scala.concurrent.impl.Promise$KeptPromise.onComplete(Promise.scala:333)	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:254)	at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)	at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply$mcV$sp(BatchingExecutor.scala:91)	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)	at akka.dispatch.BatchingExecutor$BlockableBatch$$anonfun$run$1.apply(BatchingExecutor.scala:91)	at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:72)	at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:90)	at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:39)	at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:409)	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)