scala.reflect.runtime.ReflectError

value reflect is not a package

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 web5

  • via Unknown by Russell Spitzer,
  • via Unknown by Russell Spitzer,
  • via GitHub by hejfelix
    ,
  • Stack trace

    • scala.reflect.runtime.ReflectError: value reflect is not a package at scala.reflect.runtime.JavaMirrors$JavaMirror.scala$reflect$runtime$JavaMirrors$$makeScalaPackage(JavaMirrors.scala:912) at scala.reflect.runtime.JavaMirrors$class.missingHook(JavaMirrors.scala:1296) at scala.reflect.runtime.JavaUniverse.missingHook(JavaUniverse.scala:12) at scala.reflect.internal.Mirrors$RootsBase.universeMissingHook(Mirrors.scala:77) at scala.reflect.internal.Mirrors$RootsBase.missingHook(Mirrors.scala:79) at scala.reflect.internal.pickling.UnPickler$Scan.readExtSymbol$1(UnPickler.scala:226) at scala.reflect.internal.pickling.UnPickler$Scan.readSymbol(UnPickler.scala:250) at scala.reflect.internal.pickling.UnPickler$Scan.readSymbolRef(UnPickler.scala:783) at scala.reflect.internal.pickling.UnPickler$Scan.readExtSymbol$1(UnPickler.scala:200) at scala.reflect.internal.pickling.UnPickler$Scan.readSymbol(UnPickler.scala:250) at scala.reflect.internal.pickling.UnPickler$Scan.readSymbolRef(UnPickler.scala:783) 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.Symbols$Symbol.initialize(Symbols.scala:1374) at scala.reflect.internal.Symbols$Symbol.hasFlag(Symbols.scala:607) at scala.reflect.internal.Symbols$TermSymbol.isTermMacro(Symbols.scala:2453) at scala.reflect.internal.Symbols$Symbol.symbolKind(Symbols.scala:2263) at scala.reflect.internal.Symbols$Symbol.sanitizedKindString(Symbols.scala:2297) at scala.reflect.internal.Symbols$Symbol.kindString(Symbols.scala:2305) at scala.reflect.internal.Symbols$Symbol.toString(Symbols.scala:2350) at java.lang.String.valueOf(String.java:2847) at scala.collection.mutable.StringBuilder.append(StringBuilder.scala:197) at scala.collection.TraversableOnce$$anonfun$addString$1.apply(TraversableOnce.scala:322) at scala.collection.immutable.List.foreach(List.scala:318) at scala.collection.TraversableOnce$class.addString(TraversableOnce.scala:320) at scala.collection.AbstractTraversable.addString(Traversable.scala:105) at scala.collection.TraversableOnce$class.mkString(TraversableOnce.scala:286) at scala.collection.AbstractTraversable.mkString(Traversable.scala:105) at scala.collection.TraversableLike$class.toString(TraversableLike.scala:639) at scala.collection.SeqLike$class.toString(SeqLike.scala:646) at scala.collection.AbstractSeq.toString(Seq.scala:40) at java.lang.String.valueOf(String.java:2847) at scala.collection.mutable.StringBuilder.append(StringBuilder.scala:197) at scala.reflect.internal.Symbols$Symbol.suchThat(Symbols.scala:1678) at scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:44) 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.staticModule(Mirrors.scala:161) at scala.reflect.internal.Mirrors$RootsBase.staticModule(Mirrors.scala:21) at $line23.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anon$1$$typecreator1$1.apply(<console>:55) at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:231) at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe(TypeTags.scala:231) at com.datastax.spark.connector.rdd.reader.LowPriorityRowReaderFactoryImplicits$$typecreator1$1.apply(RowReaderFactory.scala:46) at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe$lzycompute(TypeTags.scala:231) at scala.reflect.api.TypeTags$WeakTypeTagImpl.tpe(TypeTags.scala:231) at com.datastax.spark.connector.rdd.reader.AnyObjectFactory.<init>(AnyObjectFactory.scala:22) at com.datastax.spark.connector.rdd.reader.ClassBasedRowReader.<init>(ClassBasedRowReader.scala:21) at com.datastax.spark.connector.rdd.reader.ClassBasedRowReaderFactory.rowReader(ClassBasedRowReader.scala:147) at com.datastax.spark.connector.rdd.reader.ClassBasedRowReaderFactory.rowReader(ClassBasedRowReader.scala:145) at com.datastax.spark.connector.rdd.CassandraTableRowReaderProvider$class.rowReader(CassandraTableRowReaderProvider.scala:46) at com.datastax.spark.connector.rdd.CassandraTableScanRDD.rowReader$lzycompute(CassandraTableScanRDD.scala:56) at com.datastax.spark.connector.rdd.CassandraTableScanRDD.rowReader(CassandraTableScanRDD.scala:56) at com.datastax.spark.connector.rdd.CassandraTableRowReaderProvider$class.verify(CassandraTableRowReaderProvider.scala:163) at com.datastax.spark.connector.rdd.CassandraTableScanRDD.verify(CassandraTableScanRDD.scala:56) at com.datastax.spark.connector.rdd.CassandraTableScanRDD.getPartitions(CassandraTableScanRDD.scala:115) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:222) at org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:220) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.rdd.RDD.partitions(RDD.scala:220) at org.apache.spark.SparkContext.runJob(SparkContext.scala:1367) at org.apache.spark.rdd.RDD.collect(RDD.scala:797) at $line23.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$anon$1.run(<console>:55) 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

    We couldn't find other users who have seen this exception.