java.io.NotSerializableException

com.redhat.et.silex.util.SampleSink Serialization stack: - object not serializable (class: com.redhat.et.silex.util.SampleSink, value: SampleSink(count=0, min=Infinity, max=-Infinity, mean=0.0, variance=NaN)) - field (class: com.redhat.et.silex.som.SOM, name: mqsink, type: class com.redhat.et.silex.util.SampleSink) - object (class com.redhat.et.silex.som.SOM, com.redhat.et.silex.som.SOM@7402c49f)


Solutions on the web164

Solution icon of github
via GitHub by ankitksharma
, 7 months ago
com.redhat.et.silex.util.SampleSink Serialization stack: - object not serializable (class: com.redhat.et.silex.util.SampleSink, value: SampleSink(count=0, min=Infinity, max=-Infinity, mean=0.0, variance=NaN)) - field (class

Solution icon of stackoverflow
com.sksamuel.elastic4s.ElasticClient Serialization stack: - object not serializable (class: com.sksamuel.elastic4s.ElasticClient, value: com.sksamuel.elastic4s.ElasticClient@e4c4af) - field (class: CatalogALS2$$anonfun$2, name: client$1, type: class com.sksamuel.elastic4s.ElasticClient) - object (class CatalogALS2$$anonfun$2, <function1>)

Solution icon of stackoverflow
MostPopularSuperHero$1DummyComparator Serialization stack: - object not serializable (class: MostPopularSuperHero$1DummyComparator, value: MostPopularSuperHero$1DummyComparator@72fb0cb3) - field (class

Solution icon of stackoverflow
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@56dd6efa) - field (class: org.inno.redistagger.redistagger

Solution icon of stackoverflow
DoWork Serialization stack: - object not serializable (class: DoWork, value: DoWork@655621fd) - field (class: ConnTest$$anonfun$2, name: doWork$1, type: class DoWork) - object (class ConnTest$$anonfun$2, )

Solution icon of stackoverflow
org.apache.spark.SparkContext Serialization stack: - object not serializable (class: org.apache.spark.SparkContext, value: org.apache.spark.SparkContext@20576557) - field (class: admm.functions.LogRegressionXUpdate$$anonfun$1, name: sc$1, type: class org.apache.spark.SparkContext) - object (class admm.functions.LogRegressionXUpdate$$anonfun$1, <function1>)

Solution icon of stackoverflow
***.extractors.ExtractorSuite$$anon$1 Serialization stack: - object not serializable (class: ***.extractors.ExtractorSuite$$anon$1, value: <function1>) - field (class: scala.Some, name: x, type: class java.lang.Object) - object (class scala.Some, Some(<function1>))

Solution icon of github
org.archive.io.warc.WARCRecord Serialization stack: - object not serializable (class: org.archive.io.warc.WARCRecord, value: org.archive.io.warc.WARCRecord@28158a29) - field (class: org.warcbase.spark.archive.io.GenericArchiveRecord, name

Solution icon of github
org.neo4j.spark.Neo4j Serialization stack: - object not serializable (class: org.neo4j.spark.Neo4j, value: org.neo4j.spark.Neo4j@1736c1e4) - field (class: placeGraph$$anonfun$18, name: neo$1, type: class org.neo4j.spark.Neo4j) - object (class placeGraph$$anonfun$18, <function1>)

Solution icon of stackoverflow
org.apache.hadoop.io.Text Serialization stack: - object not serializable (class: org.apache.hadoop.io.Text, value: Kafka) - field (class: scala.Tuple2, name: _1, type: class java.lang.Object) - object (class scala.Tuple2, (Kafka,3)) - element of array (index: 0) - array (class [Lscala.Tuple2;, size 2)

Stack trace

  • java.io.NotSerializableException: com.redhat.et.silex.util.SampleSink Serialization stack: - object not serializable (class: com.redhat.et.silex.util.SampleSink, value: SampleSink(count=0, min=Infinity, max=-Infinity, mean=0.0, variance=NaN)) - field (class: com.redhat.et.silex.som.SOM, name: mqsink, type: class com.redhat.et.silex.util.SampleSink) - object (class com.redhat.et.silex.som.SOM, com.redhat.et.silex.som.SOM@7402c49f) at org.apache.spark.serializer.SerializationDebugger$.improveException(SerializationDebugger.scala:40) at org.apache.spark.serializer.JavaSerializationStream.writeObject(JavaSerializer.scala:46) at org.apache.spark.broadcast.TorrentBroadcast$$anonfun$blockifyObject$2.apply(TorrentBroadcast.scala:236) at org.apache.spark.broadcast.TorrentBroadcast$$anonfun$blockifyObject$2.apply(TorrentBroadcast.scala:236) at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1287) at org.apache.spark.broadcast.TorrentBroadcast$.blockifyObject(TorrentBroadcast.scala:237) at org.apache.spark.broadcast.TorrentBroadcast.writeBlocks(TorrentBroadcast.scala:107) at org.apache.spark.broadcast.TorrentBroadcast.<init>(TorrentBroadcast.scala:86) at org.apache.spark.broadcast.TorrentBroadcastFactory.newBroadcast(TorrentBroadcastFactory.scala:34) at org.apache.spark.broadcast.BroadcastManager.newBroadcast(BroadcastManager.scala:56) at org.apache.spark.SparkContext.broadcast(SparkContext.scala:1370) at com.redhat.et.silex.som.SOM$$anonfun$train$1.apply(som.scala:204) at com.redhat.et.silex.som.SOM$$anonfun$train$1.apply(som.scala:201) at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:144) at scala.collection.TraversableOnce$$anonfun$foldLeft$1.apply(TraversableOnce.scala:144) at scala.collection.immutable.Range.foreach(Range.scala:141) at scala.collection.TraversableOnce$class.foldLeft(TraversableOnce.scala:144) at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:105) at com.redhat.et.silex.som.SOM$.train(som.scala:201) at com.datarpm.dsl.som.som$.main(som.scala:42) at com.datarpm.dsl.som.som.main(som.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

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

Once, 2 months ago
Once, 2 months ago
14 times, 5 months ago
15 times, 6 months ago
30 times, 7 months ago
7 more bugmates