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 web100

Solution icon of github
via GitHub by ankitksharma
, 9 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
MostPopularSuperHero$1DummyComparator Serialization stack: - object not serializable (class: MostPopularSuperHero$1DummyComparator, value: MostPopularSuperHero$1DummyComparator@72fb0cb3) - field (class

Solution icon of stackoverflow
via Stack Overflow by geek
, 7 months ago
org.apache.spark.SparkContext Serialization stack: - object not serializable (class: org.apache.spark.SparkContext, value: org.apache.spark.SparkContext@4248e66b) - field (class: com.ranker.correlation.listitem.ListItemCorrelation, name: sc, type

Solution icon of github
DataLakeImportWikidata$ Serialization stack: - object not serializable (class: DataLakeImportWikidata$, value: DataLakeImportWikidata$@4a31ed12) - field (class: DataLake.DataLakeImport$$anonfun$1, name: $outer, type: class DataLake.DataLakeImport) - object (class DataLake.DataLakeImport$$anonfun$1, <function1>)

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
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
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 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 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>))

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, 1 month ago
Once, 4 months ago
14 times, 6 months ago
15 times, 8 months ago
30 times, 9 months ago
7 more bugmates