Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1384

FlowRuleIntent class not registered with kryo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      commit ee2aa65a3d0bc86311c473e99a727c486dfd6f3e

    • Sprint:
      Cardinal Sprint 1 (3/23-4/3)

      Description

      Exception while processing intents:

      2015-03-24 16:40:04,461 | WARN  | urrent-publish-0 | EventuallyConsistentMapImpl      | 84 - org.onosproject.onos-core-dist - 1.2.0.SNAPSHOT | broadcast error
      com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.intent.FlowRuleIntent
      Note: To register this class use: kryo.register(org.onosproject.net.intent.FlowRuleIntent.class);
      Serialization trace:
      installables (org.onosproject.net.intent.IntentData)
      value (org.onosproject.store.ecmap.PutEntry)
              at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:82)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:495)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:548)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:61)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:495)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:624)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:82)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:22)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:624)[64:com.esotericsoftware.kryo:3.0.0]
              at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:238)[79:org.onosproject.onlab-misc:1.2.0.SNAPSHOT]
              at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:224)[79:org.onosproject.onlab-misc:1.2.0.SNAPSHOT]
              at org.onosproject.store.serializers.KryoSerializer.encode(KryoSerializer.java:49)[85:org.onosproject.onos-core-serializers:1.2.0.SNAPSHOT]
              at org.onosproject.store.ecmap.EventuallyConsistentMapImpl.unicastMessage(EventuallyConsistentMapImpl.java:509)[84:org.onosproject.onos-core-dist:1.2.0.SNAPSHOT]
              at org.onosproject.store.ecmap.EventuallyConsistentMapImpl.access$800(EventuallyConsistentMapImpl.java:71)[84:org.onosproject.onos-core-dist:1.2.0.SNAPSHOT]
              at org.onosproject.store.ecmap.EventuallyConsistentMapImpl$EventAccumulator.lambda$processItems$82(EventuallyConsistentMapImpl.java:799)[84:org.onosproject.onos-core-dist:1.2.0.SNAPSHOT]
              at org.onosproject.store.ecmap.EventuallyConsistentMapImpl$EventAccumulator$$Lambda$127/1705666497.run(Unknown Source)[84:org.onosproject.onos-core-dist:1.2.0.SNAPSHOT]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_40]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_40]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_40]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_40]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
      Caused by: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.intent.FlowRuleIntent
      Note: To register this class use: kryo.register(org.onosproject.net.intent.FlowRuleIntent.class);
              at com.esotericsoftware.kryo.Kryo.getRegistration(Kryo.java:483)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:79)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:513)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:618)[64:com.esotericsoftware.kryo:3.0.0]
              at org.onosproject.store.serializers.ImmutableListSerializer.write(ImmutableListSerializer.java:41)[85:org.onosproject.onos-core-serializers:1.2.0.SNAPSHOT]
              at org.onosproject.store.serializers.ImmutableListSerializer.write(ImmutableListSerializer.java:28)[85:org.onosproject.onos-core-serializers:1.2.0.SNAPSHOT]
              at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:548)[64:com.esotericsoftware.kryo:3.0.0]
              at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:61)[64:com.esotericsoftware.kryo:3.0.0]
              ... 20 more
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            bocon Brian O'Connor
            Reporter:
            jhall Jon Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: