play.api.Application$$anon$1

tip

Check if you didn't forget to instantiate your topic in the kafka broker.

tip

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

tip

If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.

tip

NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.

tip

You need to add httpcore to your dependencies. Try adding version 4.3 or further.

tip

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

tip

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

tip

jsp-api and servlet-api jars must NOT be deployed by your web app. They should be marked as provided but not deployed by your app.

tip

The server rejects all jars that already belong to the server runtime (such as tomcat-**.jar, servlet**.jar). Consider substituting the CORS filter you're using for this one: https://goo.gl/ctQ7Fs

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

  • Dr Elephant logs
    via GitHub by henryon
    ,
  • Error with the new code
    via GitHub by shyamraj242
    ,
  • RE: very new to Liferay - Forums | Liferay
    via by Unknown author,
  • jodconverter java.lang.ClassNotFoundException
    via by Unknown author,
  • Realms Bug
    via GitHub by TFahami
    ,
  • Exception in thread "main" | Treehouse Community
    via by Unknown author,
    • play.api.Application$$anon$1: Execution exception[[RuntimeException: Could not find class com.linkedin.drelephant.mapreduce.MapReduceFetcherHadoop2]] at play.api.Application$class.handleError(Application.scala:293)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.api.DefaultApplication.handleError(Application.scala:399)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:261)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at scala.Option.map(Option.scala:145)[org.scala-lang.scala-library-2.10.5.jar:na] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:261)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$2.applyOrElse(PlayDefaultUpstreamHandler.scala:257)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:344)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.Future$$anonfun$recoverWith$1.apply(Future.scala:343)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[org.scala-lang.scala-library-2.10.5.jar:na] at play.api.libs.iteratee.Execution$$anon$1.execute(Execution.scala:43)[com.typesafe.play.play-iteratees_2.10-2.2.2.jar:2.2.2] at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:40)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:248)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.Promise$class.complete(Promise.scala:55)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:153)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:235)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[org.scala-lang.scala-library-2.10.5.jar:na] Caused by: java.lang.RuntimeException: Could not find class com.linkedin.drelephant.mapreduce.MapReduceFetcherHadoop2 at com.linkedin.drelephant.ElephantContext.loadFetchers(ElephantContext.java:173)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at com.linkedin.drelephant.ElephantContext.loadConfiguration(ElephantContext.java:103)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at com.linkedin.drelephant.ElephantContext.<init>(ElephantContext.java:98)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at com.linkedin.drelephant.ElephantContext.instance(ElephantContext.java:91)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at views.html.page.searchPage$.apply(searchPage.template.scala:89)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at views.html.page.searchPage$.render(searchPage.template.scala:152)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at views.html.page.searchPage.render(searchPage.template.scala)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at controllers.Application.search(Application.java:273)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$3$$anonfun$apply$3.apply(routes_routing.scala:133)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:na] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$3$$anonfun$apply$3.apply(routes_routing.scala:133)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:na] at play.core.Router$HandlerInvoker$$anon$7$$anon$2.invocation(Router.scala:183)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.Router$Routes$$anon$1.invocation(Router.scala:377)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.j.JavaAction$$anon$1.call(JavaAction.scala:56)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.GlobalSettings$1.call(GlobalSettings.java:64)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:91)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.j.JavaAction$$anon$3.apply(JavaAction.scala:90)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at play.core.j.FPromiseHelper$$anonfun$flatMap$1.apply(FPromiseHelper.scala:82)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)[org.scala-lang.scala-library-2.10.5.jar:na] at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)[org.scala-lang.scala-library-2.10.5.jar:na] at play.core.j.HttpExecutionContext$$anon$2.run(HttpExecutionContext.scala:37)[com.typesafe.play.play_2.10-2.2.2.jar:2.2.2] at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:42)[com.typesafe.akka.akka-actor_2.10-2.2.0.jar:2.2.0] at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)[com.typesafe.akka.akka-actor_2.10-2.2.0.jar:2.2.0] ... 4 more Caused by: java.lang.ClassNotFoundException: com.linkedin.drelephant.mapreduce.MapReduceFetcherHadoop2 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)[na:1.7.0_67] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)[na:1.7.0_67] at java.security.AccessController.doPrivileged(Native Method)[na:1.7.0_67] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)[na:1.7.0_67] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)[na:1.7.0_67] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)[na:1.7.0_67] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[na:1.7.0_67] at com.linkedin.drelephant.ElephantContext.loadFetchers(ElephantContext.java:159)[com.linkedin.drelephant.dr-elephant-2.0.5.jar:2.0.5] ... 27 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Casper
    4 times, last one,
    Handemelindo
    1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    2285 more bugmates