If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

Probably you try to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.


You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Need help on akka actors with websockets
    via by Arun kannan,
  • GitHub comment 605#249101754
    via GitHub by nvijayap
  • Error
    via GitHub by soup96
    • java.lang.IllegalArgumentException: no matching constructor found on class Actors.FileObserverActor for arguments [] at akka.util.Reflect$.error$1(Reflect.scala:81) at akka.util.Reflect$.findConstructor(Reflect.scala:105) at<init>(IndirectActorProducer.scala:103) at$.apply(IndirectActorProducer.scala:60) at at<init>(Props.scala:144) at$.apply(Props.scala:86) at Actors.FileUploaderActor$$anonfun$receive$1.applyOrElse(FileUploaderActor.scala:15) at$class.aroundReceive(Actor.scala:497) at Actors.FileUploaderActor.aroundReceive(FileUploaderActor.scala:10)

    Users with the same issue

    1 times, last one,
    1 times, last one,
    4 times, last one,
    5 times, last one,