java.lang.reflect.InvocationTargetException

This exception has no message.

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 web23845

  • via Terracotta by johannr, 11 months ago
    This exception has no message.
  • via Terracotta by pgovindraj, 11 months ago
    This exception has no message.
  • via Terracotta by bradleyw, 11 months ago
    This exception has no message.
  • Stack trace

    • java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at spray.servlet.Initializer$$anonfun$contextInitialized$1.apply$mcV$sp(Initializer.scala:58) at akka.util.Switch.transcend(LockUtil.scala:27) at akka.util.Switch.switchOn(LockUtil.scala:48) at spray.servlet.Initializer.contextInitialized(Initializer.scala:33) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5099) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5615) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalArgumentException: unknown actor creator [class spark.jobserver.WebApi] at akka.actor.IndirectActorProducer$.apply(Props.scala:313) at akka.actor.Props.producer(Props.scala:179) at akka.actor.Props.<init>(Props.scala:192) at akka.actor.Props$.apply(Props.scala:93) at spark.jobserver.Boot.<init>(Boot.scala:34) ... 21 more

    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, 1 month ago
    Once, 2 months ago
    4 times, 4 months ago
    5 times, 1 year ago