java.lang.IllegalArgumentException: no matching constructor found on class Actors.FileObserverActor for arguments []


Samebug tips1

You are probably trying to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.


1 year ago

Solutions on the web5

Solution icon of googlegroups
via Google Groups by Arun kannan, 4 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 github
via GitHub by soup96
, 6 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 io.vamp.pulse.eventstream.SSEConnectionActor for arguments [class scala.collection.immutable.$colon$colon]

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

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

3 times, 1 month ago
2 times, 1 month ago
Once, 5 months ago
4 times, 6 months ago
5 times, 1 year ago