java.lang.IllegalArgumentException

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.
tip

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


rp

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 akka.actor.NoArgsReflectConstructor.<init>(IndirectActorProducer.scala:103) at akka.actor.IndirectActorProducer$.apply(IndirectActorProducer.scala:60) at akka.actor.Props.producer(Props.scala:131) at akka.actor.Props.<init>(Props.scala:144) at akka.actor.Props$.apply(Props.scala:86) at Actors.FileUploaderActor$$anonfun$receive$1.applyOrElse(FileUploaderActor.scala:15) at akka.actor.Actor$class.aroundReceive(Actor.scala:497) at Actors.FileUploaderActor.aroundReceive(FileUploaderActor.scala:10)

    Users with the same issue

    Handemelindo
    1 times, last one,
    rp
    1 times, last one,
    harshg
    4 times, last one,
    vega113
    5 times, last one,