java.lang.IllegalStateException: ContextAware must receive PreStart as first message (got Msg(akka.typed.adapter.ActorContextAdapter@1f5884e9,2))

GitHub | durban | 3 months ago
  1. 0

    Change in ContextAware in 2.4.11

    GitHub | 3 months ago | durban
    java.lang.IllegalStateException: ContextAware must receive PreStart as first message (got Msg(akka.typed.adapter.ActorContextAdapter@1f5884e9,2))
  2. 0
    You can solve this by using an actual Service instead of an IntentService
  3. 0
    You are trying to retrieve stuff from the redis pool after destroyPool has been called.
    via GitHub by DongAaron
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.
  6. 0
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      ContextAware must receive PreStart as first message (got Msg(akka.typed.adapter.ActorContextAdapter@1f5884e9,2))

      at akka.typed.ScalaDSL$$anonfun$ContextAware$1.apply()
    2. akka.typed
      ScalaDSL$FullTotal.message
      1. akka.typed.ScalaDSL$$anonfun$ContextAware$1.apply(ScalaDSL.scala:444)
      2. akka.typed.ScalaDSL$$anonfun$ContextAware$1.apply(ScalaDSL.scala:442)
      3. akka.typed.ScalaDSL$FullTotal.message(ScalaDSL.scala:178)
      3 frames
    3. akka.typed.adapter
      ActorAdapter$$anonfun$receive$1.applyOrElse
      1. akka.typed.adapter.ActorAdapter$$anonfun$receive$1.applyOrElse(ActorAdapter.scala:32)
      1 frame
    4. Akka Actor
      Actor$class.aroundReceive
      1. akka.actor.Actor$class.aroundReceive(Actor.scala:484)
      1 frame
    5. akka.typed.adapter
      ActorAdapter.aroundReceive
      1. akka.typed.adapter.ActorAdapter.aroundReceive(ActorAdapter.scala:9)
      1 frame
    6. Akka Actor
      Mailbox.exec
      1. akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
      2. akka.actor.ActorCell.invoke(ActorCell.scala:495)
      3. akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
      4. akka.dispatch.Mailbox.run(Mailbox.scala:224)
      5. akka.dispatch.Mailbox.exec(Mailbox.scala:234)
      5 frames
    7. Scala
      ForkJoinWorkerThread.run
      1. scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
      2. scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
      3. scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
      4. scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
      4 frames