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 GitHub by julien-truffaut
, 1 year ago
assertion failed: trait AtFunctions
java.lang.AssertionError: assertion failed: class MLWriter	at scala.reflect.internal.pickling.UnPickler$Scan.readSymbolRef(UnPickler.scala:784)	at scala.reflect.internal.pickling.UnPickler$Scan.readType(UnPickler.scala:346)	at scala.reflect.internal.pickling.UnPickler$Scan$$anonfun$readTypeRef$1.apply(UnPickler.scala:792)	at scala.reflect.internal.pickling.UnPickler$Scan$$anonfun$readTypeRef$1.apply(UnPickler.scala:792)	at scala.reflect.internal.pickling.UnPickler$Scan.at(UnPickler.scala:171)	at scala.reflect.internal.pickling.UnPickler$Scan.readTypeRef(UnPickler.scala:792)	at scala.reflect.internal.pickling.UnPickler$Scan.readType(UnPickler.scala:366)	at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef$$anonfun$34.apply(UnPickler.scala:855)	at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef$$anonfun$34.apply(UnPickler.scala:855)	at scala.reflect.internal.pickling.UnPickler$Scan.at(UnPickler.scala:171)	at scala.reflect.internal.pickling.UnPickler$Scan$LazyTypeRef.complete(UnPickler.scala:855)	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1231)	at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1374)	at scala.reflect.internal.Symbols$Symbol.annotations(Symbols.scala:1581)	at scala.reflect.internal.Symbols$Symbol.addAnnotation(Symbols.scala:1600)	at scala.reflect.internal.pickling.UnPickler$Scan.readSymbolAnnotation(UnPickler.scala:491)	at scala.reflect.internal.pickling.UnPickler$Scan.run(UnPickler.scala:88)	at scala.reflect.internal.pickling.UnPickler.unpickle(UnPickler.scala:37)	at scala.reflect.runtime.JavaMirrors$JavaMirror.unpickleClass(JavaMirrors.scala:565)	at scala.reflect.runtime.SymbolLoaders$TopClassCompleter.complete(SymbolLoaders.scala:32)	at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1231)	at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:43)	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.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:21)	at org.apache.spark.ml.classification.NaiveBayesModel$NaiveBayesModelWriter$$typecreator1$1.apply(NaiveBayes.scala:264)	at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:231)	at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe(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.sql.catalyst.ScalaReflection$.schemaFor(ScalaReflection.scala:30)	at org.apache.spark.sql.SQLContext.createDataFrame(SQLContext.scala:430)	at org.apache.spark.ml.classification.NaiveBayesModel$NaiveBayesModelWriter.saveImpl(NaiveBayes.scala:264)	at org.apache.spark.ml.util.MLWriter.save(ReadWrite.scala:90)	at org.apache.spark.ml.util.MLWritable$class.save(ReadWrite.scala:130)	at org.apache.spark.ml.classification.NaiveBayesModel.save(NaiveBayes.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 scala.concurrent.impl.Future$PromiseCompletingRunnable.run(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)