java.lang.IllegalArgumentException

no matching constructor found on class Actors.FileObserverActor for arguments []


Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web13021

Solution icon of googlegroups
via Google Groups by Arun kannan, 2 months ago
no matching constructor found on class Actors.FileObserverActor for arguments []

Solution icon of stackoverflow
no matching constructor found on class Actors.FileObserverActor for arguments []

Solution icon of stackoverflow
no matching constructor found on class tcp.DBActor for arguments []

Solution icon of stackoverflow
via Stack Overflow by Tyler
, 8 months ago
no matching constructor found on class services.Indexer$IndexActor for arguments []

Solution icon of github
via GitHub by soup96
, 4 months ago
no matching constructor found on class com.sandinh.paho.akka.MqttPubSub for arguments [class com.sandinh.paho.akka.MqttPubSub$PSConfig, class java.lang.String]

Solution icon of github
no matching constructor found on class akka.actor.CreatorFunctionConsumer for arguments [class akka.actor.Props$$anonfun$2]

Solution icon of github
no matching constructor found on class io.vamp.pulse.eventstream.SSEConnectionActor for arguments [class scala.collection.immutable.$colon$colon]

Solution icon of github
No matching ctor found for class java.util.Date

Solution icon of github
No matching ctor found for class org.sonatype.aether.repository.Authentication

Solution icon of github
No matching ctor found for class java.lang.Long

Stack trace

  • 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)

Write tip

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

Users with the same issue

Once, 6 days ago
Once, 3 months ago
4 times, 5 months ago
5 times, 1 year ago