Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-510

BMP: IndexOutOfBoundsException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 6368

    Description

      CSIT userfeatures tests detect BGP failure in BMP suite.
      Karaf.log contains this segment:

      2016-08-09 01:10:40,741 | INFO | entLoopGroup-7-1 | BmpRouterImpl | 296 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | BMP session with remote router 10.29.12.108 (BmpSessionImpl

      {channel=[id: 0xd25661ce, L:/10.29.12.199:12345 - R:/10.29.12.108:35072]}

      ) is up now.
      2016-08-09 01:10:40,802 | ERROR | entLoopGroup-7-1 | BmpSessionImpl | 296 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | Exception caught in BMP Session.
      io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: index: 84, length: 2 (expected: range(0, 68))
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)[69:io.netty.codec:4.0.37.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)[69:io.netty.codec:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)[68:io.netty.transport:4.0.37.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[69:io.netty.codec:4.0.37.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[69:io.netty.codec:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:321)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1280)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:328)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:890)[68:io.netty.transport:4.0.37.Final]
      at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:879)[72:io.netty.transport-native-epoll:4.0.37.Final]
      at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:387)[72:io.netty.transport-native-epoll:4.0.37.Final]
      at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:303)[72:io.netty.transport-native-epoll:4.0.37.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[67:io.netty.common:4.0.37.Final]
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145)[67:io.netty.common:4.0.37.Final]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]
      Caused by: java.lang.IndexOutOfBoundsException: index: 84, length: 2 (expected: range(0, 68))
      at io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1141)[66:io.netty.buffer:4.0.37.Final]
      at io.netty.buffer.SlicedByteBuf.getShort(SlicedByteBuf.java:131)[66:io.netty.buffer:4.0.37.Final]
      at io.netty.buffer.AbstractByteBuf.getUnsignedShort(AbstractByteBuf.java:380)[66:io.netty.buffer:4.0.37.Final]
      at org.opendaylight.protocol.bmp.parser.message.PeerUpHandler.getBgpMessageLength(PeerUpHandler.java:141)[295:org.opendaylight.bgpcep.bgp-bmp-parser-impl:0.6.0.SNAPSHOT]
      at org.opendaylight.protocol.bmp.parser.message.PeerUpHandler.parseMessageBody(PeerUpHandler.java:96)[295:org.opendaylight.bgpcep.bgp-bmp-parser-impl:0.6.0.SNAPSHOT]
      at org.opendaylight.protocol.bmp.spi.parser.AbstractBmpMessageParser.parseMessage(AbstractBmpMessageParser.java:38)[294:org.opendaylight.bgpcep.bgp-bmp-spi:0.6.0.SNAPSHOT]
      at org.opendaylight.protocol.bmp.spi.registry.SimpleBmpMessageRegistry.parseMessage(SimpleBmpMessageRegistry.java:52)[294:org.opendaylight.bgpcep.bgp-bmp-spi:0.6.0.SNAPSHOT]
      at org.opendaylight.protocol.bmp.impl.BmpByteToMessageDecoder.decode(BmpByteToMessageDecoder.java:35)[296:org.opendaylight.bgpcep.bgp-bmp-impl:0.6.0.SNAPSHOT]
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)[69:io.netty.codec:4.0.37.Final]
      ... 19 more
      2016-08-09 01:10:40,803 | INFO | entLoopGroup-7-1 | BmpSessionImpl | 296 - org.opendaylight.bgpcep.bgp-bmp-impl - 0.6.0.SNAPSHOT | Closing session: BmpSessionImpl

      {channel=[id: 0xd25661ce, L:/10.29.12.199:12345 - R:/10.29.12.108:35072]}

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              vrpolak Vratko Polak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: