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 Stack Overflow by Samy Nathan
, 1 year ago
via GitHub by danielcsant
, 1 year ago
Task not serializable
via GitHub by sgomezg
, 1 year ago
Task not serializable
via GitHub by sgomezg
, 1 year ago
Task not serializable
java.io.NotSerializableException: edu.stanford.nlp.ie.crf.CRFClassifier
Serialization stack:
    - object not serializable (class: edu.stanford.nlp.ie.crf.CRFClassifier, value: edu.stanford.nlp.ie.crf.CRFClassifier@52cfd138)
    - field (class: com.bt.product.sparkstreaming.data.Sparkstreaming, name: classifier, type: class edu.stanford.nlp.ie.AbstractSequenceClassifier)
    - object (class com.bt.product.sparkstreaming.data.Sparkstreaming, com.bt.product.sparkstreaming.data.Sparkstreaming@54859767)
    - field (class: com.bt.product.sparkstreaming.data.Sparkstreaming$1, name: this$0, type: class com.bt.product.sparkstreaming.data.Sparkstreaming)
    - object (class com.bt.product.sparkstreaming.data.Sparkstreaming$1, com.bt.product.sparkstreaming.data.Sparkstreaming$1@48c9c466)
    - field (class: org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1, name: fun$1, type: interface org.apache.spark.api.java.function.Function)
    - object (class org.apache.spark.api.java.JavaPairRDD$$anonfun$toScalaFunction$1, <function1>)	at org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:40)	at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:47)	at org.apache.spark.serializer.JavaSerializerInstance.serialize(JavaSerializer.scala:84)	at org.apache.spark.util.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:301)	at org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:294)	at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:122)	at org.apache.spark.SparkContext.clean(SparkContext.scala:2030)	at org.apache.spark.streaming.dstream.DStream$$anonfun$map$1.apply(DStream.scala:528)	at org.apache.spark.streaming.dstream.DStream$$anonfun$map$1.apply(DStream.scala:528)	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:147)	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:108)	at org.apache.spark.SparkContext.withScope(SparkContext.scala:709)	at org.apache.spark.streaming.StreamingContext.withScope(StreamingContext.scala:266)	at org.apache.spark.streaming.dstream.DStream.map(DStream.scala:527)	at org.apache.spark.streaming.api.java.JavaDStreamLike$class.map(JavaDStreamLike.scala:157)	at org.apache.spark.streaming.api.java.AbstractJavaDStreamLike.map(JavaDStreamLike.scala:43)	at com.bt.product.sparkstreaming.data.Sparkstreaming.run(Sparkstreaming.java:251)	at java.lang.Thread.run(Thread.java:745)