com.esotericsoftware.kryo.KryoException: org.objenesis.ObjenesisException: java.io.NotSerializableException: class com.clearspring.analytics.stream.cardinality.RegisterSet not serializable Serialization trace: registerSet (com.clearspring.analytics.stream.cardinality.HyperLogLogPlus)

GitHub | abramsm | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 124#270651967

    GitHub | 2 months ago | abramsm
    com.esotericsoftware.kryo.KryoException: org.objenesis.ObjenesisException: java.io.NotSerializableException: class com.clearspring.analytics.stream.cardinality.RegisterSet not serializable Serialization trace: registerSet (com.clearspring.analytics.stream.cardinality.HyperLogLogPlus)
  2. 0

    GitHub comment 124#270554730

    GitHub | 2 months ago | mycFelix
    com.esotericsoftware.kryo.KryoException: org.objenesis.ObjenesisException: java.io.NotSerializableException: class com.clearspring.analytics.stream.cardinality.RegisterSet not serializable Serialization trace: registerSet (com.clearspring.analytics.stream.cardinality.HyperLogLogPlus)
  3. 0

    how to serialize HLL using kryo

    GitHub | 2 months ago | mycFelix
    com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): com.clearspring.analytics.stream.cardinality.HyperLogLog
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 124#270546398

    GitHub | 2 months ago | mycFelix
    com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Can not set final com.clearspring.analytics.stream.cardinality.RegisterSet field com.clearspring.analytics.stream.cardinality.HyperLogLog.registerSet to java.lang.Integer Serialization trace: registerSet (com.clearspring.analytics.stream.cardinality.HyperLogLog)
  6. 0

    This exception was seen on 6 of 7 ONOS nodes in a cluster. I have not been able to reproduce this. 2015-01-08 14:26:24,853 | ERROR | nce_1_HA.event-3 | EventServiceImpl | 52 - com.hazelcast - 3.3.2 | [10.128.30.17]:5701 [HA] [3.3.2] hz._hzInstance_1_HA.event-3 caught an exception while processing task:EventPacketProcessor{eventPacket=null} com.esotericsoftware.kryo.KryoException: java.lang.ArrayIndexOutOfBoundsException: -1756380248 Serialization trace: topic (org.onosproject.cluster.Leadership) subject (org.onosproject.cluster.LeadershipEvent) at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:125)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:528)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:704)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:106)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:528)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:786)[56:com.esotericsoftware.kryo:3.0.0] at org.onlab.util.KryoNamespace.deserialize(KryoNamespace.java:303)[69:org.onosproject.onlab-misc:1.1.0.SNAPSHOT] at org.onosproject.store.serializers.KryoSerializer.decode(KryoSerializer.java:57)[156:org.onosproject.onos-core-serializers:1.1.0.SNAPSHOT] at org.onosproject.store.cluster.impl.HazelcastLeadershipService.onMessage(HazelcastLeadershipService.java:197)[155:org.onosproject.onos-core-dist:1.1.0.SNAPSHOT] at com.hazelcast.topic.impl.TopicService.dispatchEvent(TopicService.java:135)[52:com.hazelcast:3.3.2] at com.hazelcast.spi.impl.EventServiceImpl$EventPacketProcessor.process(EventServiceImpl.java:537)[52:com.hazelcast:3.3.2] at com.hazelcast.spi.impl.EventServiceImpl$RemoteEventPacketProcessor.run(EventServiceImpl.java:617)[52:com.hazelcast:3.3.2] at com.hazelcast.util.executor.StripedExecutor$Worker.process(StripedExecutor.java:189)[52:com.hazelcast:3.3.2] at com.hazelcast.util.executor.StripedExecutor$Worker.run(StripedExecutor.java:173)[52:com.hazelcast:3.3.2] Caused by: java.lang.ArrayIndexOutOfBoundsException: -1756380248 at java.util.ArrayList.elementData(ArrayList.java:418)[:1.8.0_25] at java.util.ArrayList.get(ArrayList.java:431)[:1.8.0_25] at com.esotericsoftware.kryo.util.MapReferenceResolver.getReadObject(MapReferenceResolver.java:42)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.Kryo.readReferenceOrNull(Kryo.java:830)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.Kryo.readObjectOrNull(Kryo.java:753)[56:com.esotericsoftware.kryo:3.0.0] at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:113)[56:com.esotericsoftware.kryo:3.0.0] ... 13 more

    JIRA | 2 years ago | Jon Hall
    com.esotericsoftware.kryo.KryoException: java.lang.ArrayIndexOutOfBoundsException: -1756380248 Serialization trace: topic (org.onosproject.cluster.Leadership) subject (org.onosproject.cluster.LeadershipEvent)

    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.io.NotSerializableException

      class com.clearspring.analytics.stream.cardinality.RegisterSet not serializable

      at org.objenesis.strategy.SerializingInstantiatorStrategy.newInstantiatorOf()
    2. Objenesis
      SerializingInstantiatorStrategy.newInstantiatorOf
      1. org.objenesis.strategy.SerializingInstantiatorStrategy.newInstantiatorOf(SerializingInstantiatorStrategy.java:54)
      1 frame
    3. Kryo
      Kryo.readObject
      1. com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1127)
      2. com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1136)
      3. com.esotericsoftware.kryo.serializers.FieldSerializer.create(FieldSerializer.java:559)
      4. com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:535)
      5. com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:731)
      6. com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:125)
      7. com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:540)
      8. com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:709)
      8 frames
    4. hyperloglog
      TT.main
      1. hyperloglog.TT.main(TT.java:57)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame