java.lang.InstantiationException

play.api.libs.ws.WSAPI

Samebug tips1

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


rprp

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

Solutions on the web735

  • via GitHub by kiivihal
    ,
  • Stack trace

    • java.lang.InstantiationException: play.api.libs.ws.WSAPI at java.lang.Class.newInstance(Class.java:427) at play.api.inject.NewInstanceInjector$.instanceOf(Injector.scala:49) at play.api.inject.SimpleInjector$$anonfun$instanceOf$1.apply(Injector.scala:85) at scala.collection.MapLike$class.getOrElse(MapLike.scala:128) at scala.collection.AbstractMap.getOrElse(Map.scala:59) at play.api.inject.SimpleInjector.instanceOf(Injector.scala:85) at play.api.inject.SimpleInjector.instanceOf(Injector.scala:80) at play.api.Application$$anonfun$instanceCache$1.apply(Application.scala:235) at play.api.Application$$anonfun$instanceCache$1.apply(Application.scala:235) at play.utils.InlineCache.fresh(InlineCache.scala:69) at play.utils.InlineCache.apply(InlineCache.scala:55) at play.api.libs.ws.WS$.wsapi(WS.scala:94) at play.api.libs.ws.WS$.url(WS.scala:121) at harvest.Harvesting$class.fetchPMHPage(Harvesting.scala:178) at harvest.Harvester.fetchPMHPage(Harvester.scala:48) at harvest.Harvester$$anonfun$receive$1$$anonfun$applyOrElse$3.apply$mcV$sp(Harvester.scala:161) at nxutil.Utils$.actorWork(Utils.scala:22) at harvest.Harvester$$anonfun$receive$1.applyOrElse(Harvester.scala:158) at akka.actor.Actor$class.aroundReceive(Actor.scala:467) at harvest.Harvester.aroundReceive(Harvester.scala:48) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) at akka.actor.ActorCell.invoke(ActorCell.scala:487) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) at akka.dispatch.Mailbox.run(Mailbox.scala:220) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Caused by: java.lang.NoSuchMethodException: play.api.libs.ws.WSAPI.<init>() at java.lang.Class.getConstructor0(Class.java:3082) at java.lang.Class.newInstance(Class.java:412) ... 28 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

    Unknown visitor
    Unknown visitorOnce,
    SteVio1989SteVio1989
    7 times, last one
    AxeloAxelo
    Once,
    osvzsosvzs
    Once,
    Andreas HäberAndreas Häber
    2 times, last one
    114 more bugmates