Uploaded image for project: 'openflowjava'
  1. openflowjava
  2. OPNFLWJAVA-13

Packet In with cookie set to -1 results in IllegalArgumentException in controller

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: Windows
      Platform: PC

    Description

      When the controller receives a packet-in message with cookie value set to -1, from openflow switch, an IllegalArgumentsException is thrown.
      Stacktrace:

      2014-01-03 21:51:00.073 IST [nioEventLoopGroup-9-1] ERROR o.o.o.protocol.impl.core.OFDecoder - Invalid range: -1, expected: [[0‥18446744073709551615]].
      java.lang.IllegalArgumentException: Invalid range: -1, expected: [[0‥18446744073709551615]].
      at org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketInMessageBuilder.setCookie(PacketInMessageBuilder.java:174) ~[bundlefile:na]
      at org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PacketInMessageFactory.bufferToMessage(PacketInMessageFactory.java:57) ~[bundlefile:na]
      at org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PacketInMessageFactory.bufferToMessage(PacketInMessageFactory.java:27) ~[bundlefile:na]
      at org.opendaylight.openflowjava.protocol.impl.deserialization.DeserializationFactory.bufferToMessage(DeserializationFactory.java:41) ~[bundlefile:na]
      at org.opendaylight.openflowjava.protocol.impl.core.OFDecoder.decode(OFDecoder.java:47) [bundlefile:na]
      at org.opendaylight.openflowjava.protocol.impl.core.OFDecoder.decode(OFDecoder.java:26) [bundlefile:na]
      at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [bundlefile:na]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [bundlefile:na]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:173) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [bundlefile:na]
      at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:253) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [bundlefile:na]
      at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [bundlefile:na]
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [bundlefile:na]
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100) [bundlefile:na]
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [bundlefile:na]
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [bundlefile:na]
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [bundlefile:na]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [bundlefile:na]
      at java.lang.Thread.run(Thread.java:722) [na:1.7.0_21]

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            deepthi.v.v@ericsson.com Deepthi V V
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: