scala.reflect.internal.Symbols$CyclicReference

illegal cyclic reference involving class NaiveBayesModelWriter

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web12

Stack trace

  • scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving class NaiveBayesModelWriter at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1220) at scala.reflect.internal.Symbols$Symbol$$anonfun$info$3.apply(Symbols.scala:1218) at scala.Function0$class.apply$mcV$sp(Function0.scala:40) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) at scala.reflect.internal.Symbols$Symbol.lock(Symbols.scala:482) at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1218) at scala.reflect.internal.BuildUtils$BuildImpl.select(BuildUtils.scala:20) at scala.reflect.internal.BuildUtils$BuildImpl.selectType(BuildUtils.scala:11) at scala.reflect.internal.BuildUtils$BuildImpl.selectType(BuildUtils.scala:8) 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(<console>:65) at $line61.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1$$anonfun$apply$mcVI$sp$1.apply(<console>:63) at $line61.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anonfun$1$$anonfun$apply$mcVI$sp$1.apply(<console>: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)

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,