If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.

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.


Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all


This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 {file location}"

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

  • Error when running the UR integration test
    via by Vaulstein,
  • GitHub comment 60#136745629
    via GitHub by FelixNeutatz
  • IPM /ECM issue while calling from API
    via by 860999,
  • CIPRES problem
    via by Unknown author,
    • java.lang.NoClassDefFoundError: org/apache/predictionio/controller/EngineFactory at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at scala.reflect.runtime.ReflectionUtils$.staticSingletonInstance(ReflectionUtils.scala:60) at scala.reflect.runtime.JavaMirrors$JavaMirror$JavaModuleMirror.instance(JavaMirrors.scala:473) at io.prediction.workflow.WorkflowUtils$.getEngine(WorkflowUtils.scala:69) at io.prediction.workflow.CreateWorkflow$.liftedTree1$1(CreateWorkflow.scala:193) at io.prediction.workflow.CreateWorkflow$.main(CreateWorkflow.scala:192) at io.prediction.workflow.CreateWorkflow.main(CreateWorkflow.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:672) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) Caused by: java.lang.ClassNotFoundException: org.apache.predictionio.controller.EngineFactory at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 28 more

    Users with the same issue

    Unknown User
    11 times, last one,
    Unknown visitor2 times, last one,
    3 times, last one,
    1 times, last one,
    Unknown visitor1 times, last one,
    1447 more bugmates