java.lang.ClassCastException: scala.None$ cannot be cast to

Google Groups | Clint Gilbert | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Scala 2.11.5 and Squeryl?

    Google Groups | 2 years ago | Clint Gilbert
    java.lang.ClassCastException: scala.None$ cannot be cast to

    Root Cause Analysis

    1. java.lang.ClassCastException

      scala.None$ cannot be cast to

      at net.shrine.util.SEnum$Value$class.equals()
    2. net.shrine.util
      SEnum$Value$class.equals
      1. net.shrine.util.SEnum$Value$class.equals(SEnum.scala:38)
      1 frame
    3. net.shrine.protocol
      QueryTiming.equals
      1. net.shrine.protocol.query.QueryTiming.equals(QueryTiming.scala:12)
      1 frame
    4. squeryl
      FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply
      1. org.squeryl.internals.FieldReferenceLinker$.org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse(FieldReferenceLinker.scala:247)
      2. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:263)
      3. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:257)
      3 frames
    5. Scala
      ArrayOps$ofRef.foreach
      1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      2 frames
    6. squeryl
      FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply
      1. org.squeryl.internals.FieldReferenceLinker$.org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse(FieldReferenceLinker.scala:257)
      2. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:263)
      3. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:257)
      3 frames
    7. Scala
      ArrayOps$ofRef.foreach
      1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      2 frames
    8. squeryl
      FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply
      1. org.squeryl.internals.FieldReferenceLinker$.org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse(FieldReferenceLinker.scala:257)
      2. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:263)
      3. org.squeryl.internals.FieldReferenceLinker$$anonfun$org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse$1.apply(FieldReferenceLinker.scala:257)
      3 frames
    9. Scala
      ArrayOps$ofRef.foreach
      1. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      2. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      2 frames
    10. squeryl
      FromSignatures$class.from
      1. org.squeryl.internals.FieldReferenceLinker$.org$squeryl$internals$FieldReferenceLinker$$_populateSelectColsRecurse(FieldReferenceLinker.scala:257)
      2. org.squeryl.internals.FieldReferenceLinker$.determineColumnsUtilizedInYeldInvocation(FieldReferenceLinker.scala:215)
      3. org.squeryl.dsl.fsm.BaseQueryYield.invokeYieldForAst(BaseQueryYield.scala:86)
      4. org.squeryl.dsl.AbstractQuery.buildAst(AbstractQuery.scala:104)
      5. org.squeryl.dsl.boilerplate.Query1.<init>(Query1.scala:34)
      6. org.squeryl.dsl.boilerplate.FromSignatures$class.from(FromSignatures.scala:25)
      6 frames
    11. net.shrine.dao
      SquerylEntryPoint$.from
      1. net.shrine.dao.squeryl.SquerylEntryPoint$.from(SquerylEntryPoint.scala:12)
      1 frame