scala.reflect.internal.MissingRequirementError: class org.apache.spark.ml.classification.NaiveBayesModel.NaiveBayesModelWriter in JavaMirror with org.apache.spark.repl.SparkIMain$TranslatingClassLoader@16d48c9 of type class org.apache.spark.repl.SparkIMain$TranslatingClassLoader with classpath [/tmp/spark-bce3a131-f6d5-4b5a-9853-3aa0d70b928f] and parent being org.apache.spark.repl.SparkIMain$$anon$2@2dc584da of type class org.apache.spark.repl.SparkIMain$$anon$2 with classpath [file:/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar,file:/usr/local/spark-1.6.0/conf/,file:/usr/local/spark-1.6.0/assembly/target/scala-2.10/spark-assembly-1.6.0-hadoop2.4.1.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-core-3.2.10.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-rdbms-3.2.9.jar,file:/home/kaushal/kaushal-drive/spark/Simba_Spark_JDBC_Desktop/SimbaRTU_SparkJDBC41_Client_1.0.0.1001/,file:/usr/local/spark-1.6.0/lib_managed/jars/mysql-connector-java-5.1.36.jar] and parent being sun.misc.Launcher$AppClassLoader@3ad6a0e0 of type class sun.misc.Launcher$AppClassLoader with classpath [file:/usr/local/spark-1.6.0/conf/,file:/usr/local/spark-1.6.0/assembly/target/scala-2.10/spark-assembly-1.6.0-hadoop2.4.1.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-core-3.2.10.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-rdbms-3.2.9.jar] and parent being sun.misc.Launcher$ExtClassLoader@60dbf04d of type class sun.misc.Launcher$ExtClassLoader with classpath [file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar] and parent being primordial classloader with boot classpath [/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes] not found.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Kaushal
, 1 year ago
[/tmp/spark-bce3a131-f6d5-4b5a-9853-3aa0d70b928f] and parent being org.apache.spark.repl.SparkIMain$$anon$2@2dc584da of type class org.apache.spark.repl.SparkIMain$$anon$2 with classpath [file:/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar,file:/usr
via GitHub by velvia
, 2 years ago
/0.13.2/libexec/sbt-launch.jar] and parent being sun.misc.Launcher$ExtClassLoader@612dcb8c of type class sun.misc.Launcher$ExtClassLoader with classpath [file:/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre/lib/ext/dnsns.jar,file
via GitHub by xeno-by
, 2 years ago
$AppClassLoader with classpath [file:/usr/local/sbt/lib/sbt-launch.jar] and parent being sun.misc.Launcher$ExtClassLoader@1d9f953d of type class sun.misc.Launcher$ExtClassLoader with classpath [file:/System/Library/Java/Extensions/AppleScriptEngine.jar,file
via GitHub by lilZ420
, 2 years ago
class scala.Tuple2[java.lang.String in JavaMirror with...
via Stack Overflow by kevin z
, 2 years ago
class scala.Tuple2[java.lang.String in JavaMirror with...
via Stack Overflow by se7entyse7en
, 2 years ago
[file:/usr/local/Cellar/sbt/0.13.5/libexec/sbt-launch.jar] and parent being sun.misc.Launcher$ExtClassLoader@18fb53f6 of type class sun.misc.Launcher$ExtClassLoader with classpath [file:/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
scala.reflect.internal.MissingRequirementError: class org.apache.spark.ml.classification.NaiveBayesModel.NaiveBayesModelWriter in JavaMirror with org.apache.spark.repl.SparkIMain$TranslatingClassLoader@16d48c9 of type class org.apache.spark.repl.SparkIMain$TranslatingClassLoader with classpath [/tmp/spark-bce3a131-f6d5-4b5a-9853-3aa0d70b928f] and parent being org.apache.spark.repl.SparkIMain$$anon$2@2dc584da of type class org.apache.spark.repl.SparkIMain$$anon$2 with classpath [file:/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar,file:/usr/local/spark-1.6.0/conf/,file:/usr/local/spark-1.6.0/assembly/target/scala-2.10/spark-assembly-1.6.0-hadoop2.4.1.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-core-3.2.10.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-rdbms-3.2.9.jar,file:/home/kaushal/kaushal-drive/spark/Simba_Spark_JDBC_Desktop/SimbaRTU_SparkJDBC41_Client_1.0.0.1001/,file:/usr/local/spark-1.6.0/lib_managed/jars/mysql-connector-java-5.1.36.jar] and parent being sun.misc.Launcher$AppClassLoader@3ad6a0e0 of type class sun.misc.Launcher$AppClassLoader with classpath [file:/usr/local/spark-1.6.0/conf/,file:/usr/local/spark-1.6.0/assembly/target/scala-2.10/spark-assembly-1.6.0-hadoop2.4.1.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-core-3.2.10.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar,file:/usr/local/spark-1.6.0/lib_managed/jars/datanucleus-rdbms-3.2.9.jar] and parent being sun.misc.Launcher$ExtClassLoader@60dbf04d of type class sun.misc.Launcher$ExtClassLoader with classpath [file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar,file:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar] and parent being primordial classloader with boot classpath [/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-7-oracle/jre/classes] not found.
at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)
at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)
at scala.reflect.internal.Mirrors$RootsBase.staticModuleOrClass(Mirrors.scala:72)
at scala.reflect.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:119)
at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:231)
at org.apache.spark.sql.catalyst.ScalaReflection$class.localTypeOf(ScalaReflection.scala:642)
at org.apache.spark.sql.catalyst.ScalaReflection$.localTypeOf(ScalaReflection.scala:30)
at org.apache.spark.sql.catalyst.ScalaReflection$class.schemaFor(ScalaReflection.scala:630)
at org.apache.spark.ml.util.MLWriter.save(ReadWrite.scala:90)
at org.apache.spark.ml.util.MLWritable$class.save(ReadWrite.scala:130)
at $line61.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1$$anonfun$apply$mcVI$sp$1.apply$mcV$sp(:65)
at $line61.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1$$anonfun$apply$mcVI$sp$1.apply(:63)
at $line61.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1$$anonfun$apply$mcVI$sp$1.apply(:63)
at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
13 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.