java.lang.ClassCastException: play.api.libs.json.JsUndefined cannot be > cast to play.api.libs.json.JsArray > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:66) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:53) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at scala.util.Success$$anonfun$map$1.apply(Try.scala:236)

Google Groups | Jorge Aliss | 3 years ago
  1. 0

    Upcoming version 3

    Google Groups | 3 years ago | Jorge Aliss
    java.lang.ClassCastException: play.api.libs.json.JsUndefined cannot be > cast to play.api.libs.json.JsArray > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:66) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:53) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at scala.util.Success$$anonfun$map$1.apply(Try.scala:236)
  2. 0

    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Byte

    GitHub | 3 years ago | PhilAndrew
    java.lang.ClassCastException: java.lang.Integer cannot be cast to > java.lang.Byte > at scala.runtime.BoxesRunTime.unboxToByte(BoxesRunTime.java:98) > at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:95) > at scala.collection.IterableLike$class.copyToArray(IterableLike.scala:237) > at scala.collection.AbstractIterable.copyToArray(Iterable.scala:54) > at > scala.collection.TraversableOnce$class.copyToArray(TraversableOnce.scala:241) > at scala.collection.AbstractTraversable.copyToArray(Traversable.scala:105) > at > scala.collection.TraversableOnce$class.toArray(TraversableOnce.scala:249) > at scala.collection.AbstractTraversable.toArray(Traversable.scala:105) > at > com.omni.service.ReceiptService$$anonfun$1$$anonfun$apply$16.apply(ReceiptService.scala:189) > at > com.omni.service.ReceiptService$$anonfun$1$$anonfun$apply$16.apply(ReceiptService.scala:186) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92) > at > spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anonfun$mapRequestContext$1$$anonfun$apply$1.apply(BasicDirectives.scala:30) > at > spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92) > at > spray.routing.directives.BasicDirectives$$anon$3$$anonfun$happly$1.apply(BasicDirectives.scala:92) > at > spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:32) > at > spray.routing.RouteConcatenation$RouteConcatenation$$anonfun$$tilde$1$$anonfun$apply$1.apply(RouteConcatenation.scala:31) > at > spray.routing.RequestContext$$anonfun$withRejectionHandling$1.applyOrElse(RequestContext.scala:130) > at > scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33) > at > scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33) > at > scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25) > at spray.routing.RequestContext$$anon$1.handle(RequestContext.scala:84)
  3. 0

    Camel - Users - Camel Kafka - java.lang.ClassCastException: java.lang.String cannot be cast to [B

    nabble.com | 1 year ago
    java.lang.ClassCastException: java.lang.String cannot be cast to [B > at kafka.serializer.DefaultEncoder.toBytes(Encoder.scala:34) > [kafka_2.10-0.8.1.jar:] > at > kafka.producer.async.DefaultEventHandler$$anonfun$serialize$1.apply(DefaultEventHandler.scala:128) > [kafka_2.10-0.8.1.jar:] > at > kafka.producer.async.DefaultEventHandler$$anonfun$serialize$1.apply(DefaultEventHandler.scala:125) > [kafka_2.10-0.8.1.jar:] > at > scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at > scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) at > scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    0.8.0-SNAPSHOT failed with java.lang.ClassCastException: clojure.lang.LazySeq

    GitHub | 4 months ago | tokomakoma123
    java.lang.ClassCastException: clojure.lang.LazySeq cannot be cast to java.util.Iterator at flambo.function.FlatMapFunction.call(Unknown Source) at org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$1$1.apply(JavaRDDLike.scala:124) at org.apache.spark.api.java.JavaRDDLike$$anonfun$fn$1$1.apply(JavaRDDLike.scala:124)
  6. 0

    mutable.HashSet or anything that depends on FlatHashTable for its implementation cannot have null values. But allowing it to support null is easy and would extend the functionality nicely scala> val h = new scala.collection.mutable.HashSet[String] h: scala.collection.mutable.HashSet[String] = Set() scala> h.contains(null) java.lang.IllegalArgumentException: Flat hash tables cannot contain null elements. at scala.collection.mutable.FlatHashTable$HashUtils$class.elemHashCode(FlatHashTable.scala:348) at scala.collection.mutable.HashSet.elemHashCode(HashSet.scala:41) at scala.collection.mutable.FlatHashTable$class.containsEntry(FlatHashTable.scala:109) at scala.collection.mutable.HashSet.containsEntry(HashSet.scala:41) at scala.collection.mutable.HashSet.contains(HashSet.scala:57) ... You might think "oh, let's just make contains smart about null" but look at this scala> val xs = null :: Nil xs: List[Null] = List(null) scala> xs.distinct java.lang.IllegalArgumentException: Flat hash tables cannot contain null elements. ...etc now, making contains not explode on null would prevent that stack trace...but the resulting set would be empty even though the original list was not. I contend that doesn't make sense and that the only thing that does make sense is to make FlatHashTable allow nulls just as List does.

    Scala JIRA | 4 years ago | James Iry
    java.lang.ClassCastException: scala.collection.mutable.FlatHashTable$NullSentinel$ cannot be cast to java.lang.String at $anonfun$1.apply(:9)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      play.api.libs.json.JsUndefined cannot be > cast to play.api.libs.json.JsArray > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:66) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at > securesocial.core.providers.GoogleProvider$$anonfun$fillProfile$2.apply(GoogleProvider.scala:53) > ~[securesocial_2.11-master-SNAPSHOT.jar:master-SNAPSHOT] > at scala.util.Success$$anonfun$map$1.apply(Try.scala:236)

      at scala.util.Try$.apply()
    2. Scala
      Try$.apply
      1. scala.util.Try$.apply(Try.scala:191)[scala-library-2.11.1.jar:na]
      1 frame