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

FlowRuleEvent.Type not registered in Kryo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: None
    • Labels:
      None

      Description

      2014-12-22 09:31:41,011 | ERROR | entLoopGroup-3-2 | ClusterCommunicationManager      | 135 - org.onosproject.onos-core-dist - 1.1.0.SNAPSHOT | Exception caught handling ClusterMessage{sender=192.168.150.4, subject=peer-forward-remove-flow-entry, payload=byte[]{length=154, hash=1340569430}}
      com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.flow.FlowRuleEvent$Type
      Note: To register this class use: kryo.register(org.onosproject.net.flow.FlowRuleEvent$Type.class);
      Serialization trace:
      type (org.onosproject.net.flow.FlowRuleEvent)
      	at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:82)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:495)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:624)[56:com.esotericsoftware.kryo:3.0.0]
      	at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:238)[69:org.onosproject.onlab-misc:1.1.0.SNAPSHOT]
      	at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:224)[69:org.onosproject.onlab-misc:1.1.0.SNAPSHOT]
      	at org.onosproject.store.serializers.KryoSerializer.encode(KryoSerializer.java:49)[136:org.onosproject.onos-core-serializers:1.1.0.SNAPSHOT]
      	at org.onosproject.store.flow.impl.DistributedFlowRuleStore$4.handle(DistributedFlowRuleStore.java:222)[135:org.onosproject.onos-core-dist:1.1.0.SNAPSHOT]
      	at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalClusterMessageHandler.handle(ClusterCommunicationManager.java:202)[135:org.onosproject.onos-core-dist:1.1.0.SNAPSHOT]
      	at org.onlab.netty.NettyMessagingService$InboundMessageDispatcher.channelRead0(NettyMessagingService.java:315)[137:org.onosproject.onlab-netty:1.1.0.SNAPSHOT]
      	at org.onlab.netty.NettyMessagingService$InboundMessageDispatcher.channelRead0(NettyMessagingService.java:291)[137:org.onosproject.onlab-netty:1.1.0.SNAPSHOT]
      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[48:io.netty.codec:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[44:io.netty.common:4.0.23.Final]
      	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[44:io.netty.common:4.0.23.Final]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
      Caused by: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.flow.FlowRuleEvent$Type
      Note: To register this class use: kryo.register(org.onosproject.net.flow.FlowRuleEvent$Type.class);
      	at com.esotericsoftware.kryo.Kryo.getRegistration(Kryo.java:483)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:79)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:513)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:57)[56:com.esotericsoftware.kryo:3.0.0]
      	... 24 more
      2014-12-22 09:31:41,013 | ERROR | entLoopGroup-3-2 | NettyMessagingService            | 137 - org.onosproject.onlab-netty - 1.1.0.SNAPSHOT | Exception inside channel handling pipeline.
      com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.flow.FlowRuleEvent$Type
      Note: To register this class use: kryo.register(org.onosproject.net.flow.FlowRuleEvent$Type.class);
      Serialization trace:
      type (org.onosproject.net.flow.FlowRuleEvent)
      	at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:82)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:495)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:624)[56:com.esotericsoftware.kryo:3.0.0]
      	at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:238)[69:org.onosproject.onlab-misc:1.1.0.SNAPSHOT]
      	at org.onlab.util.KryoNamespace.serialize(KryoNamespace.java:224)[69:org.onosproject.onlab-misc:1.1.0.SNAPSHOT]
      	at org.onosproject.store.serializers.KryoSerializer.encode(KryoSerializer.java:49)[136:org.onosproject.onos-core-serializers:1.1.0.SNAPSHOT]
      	at org.onosproject.store.flow.impl.DistributedFlowRuleStore$4.handle(DistributedFlowRuleStore.java:222)[135:org.onosproject.onos-core-dist:1.1.0.SNAPSHOT]
      	at org.onosproject.store.cluster.messaging.impl.ClusterCommunicationManager$InternalClusterMessageHandler.handle(ClusterCommunicationManager.java:202)[135:org.onosproject.onos-core-dist:1.1.0.SNAPSHOT]
      	at org.onlab.netty.NettyMessagingService$InboundMessageDispatcher.channelRead0(NettyMessagingService.java:315)[137:org.onosproject.onlab-netty:1.1.0.SNAPSHOT]
      	at org.onlab.netty.NettyMessagingService$InboundMessageDispatcher.channelRead0(NettyMessagingService.java:291)[137:org.onosproject.onlab-netty:1.1.0.SNAPSHOT]
      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)[48:io.netty.codec:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:130)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[46:io.netty.transport:4.0.23.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)[44:io.netty.common:4.0.23.Final]
      	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[44:io.netty.common:4.0.23.Final]
      	at java.lang.Thread.run(Thread.java:745)[:1.8.0_25]
      Caused by: java.lang.IllegalArgumentException: Class is not registered: org.onosproject.net.flow.FlowRuleEvent$Type
      Note: To register this class use: kryo.register(org.onosproject.net.flow.FlowRuleEvent$Type.class);
      	at com.esotericsoftware.kryo.Kryo.getRegistration(Kryo.java:483)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.util.DefaultClassResolver.writeClass(DefaultClassResolver.java:79)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.Kryo.writeClass(Kryo.java:513)[56:com.esotericsoftware.kryo:3.0.0]
      	at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:57)[56:com.esotericsoftware.kryo:3.0.0]
      	... 24 more
      

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            jono Jonathan Hart
            Reporter:
            jono Jonathan Hart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: