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

ArrayIndexOutofBound with addpath

XMLWordPrintable

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

    • 8079

      The exception throws when I try to test BGP add-path with ExaBGP. Attached the ExaBGP config and karaf log

      2017-03-24 16:30:28,963 | WARN | entLoopGroup-5-2 | BGPSessionImpl | 289 - org.opendaylight.bgpcep.bgp-rib-impl - 0.6.3.SNAPSHOT | BGP session encountered error
      io.netty.handler.codec.DecoderException: java.lang.ArrayIndexOutOfBoundsException: 9
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:442)[143:io.netty.codec:4.0.44.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248)[143:io.netty.codec:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)[142:io.netty.transport:4.0.44.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)[143:io.netty.codec:4.0.44.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)[143:io.netty.codec:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:336)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:357)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:343)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)[142:io.netty.transport:4.0.44.Final]
      at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:934)[146:io.netty.transport-native-epoll:4.0.44.Final]
      at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:397)[146:io.netty.transport-native-epoll:4.0.44.Final]
      at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:302)[146:io.netty.transport-native-epoll:4.0.44.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)[141:io.netty.common:4.0.44.Final]
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)[141:io.netty.common:4.0.44.Final]
      at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 9
      at org.opendaylight.mdsal.model.ietf.util.AbstractIetfInetUtil.v4PrefixForShort(AbstractIetfInetUtil.java:493)[118:org.opendaylight.mdsal.model.ietf-type-util:1.0.3.SNAPSHOT]
      at org.opendaylight.mdsal.model.ietf.util.AbstractIetfInetUtil.ipv4PrefixForShort(AbstractIetfInetUtil.java:230)[118:org.opendaylight.mdsal.model.ietf-type-util:1.0.3.SNAPSHOT]
      at org.opendaylight.protocol.util.Ipv4Util.prefixListForBytes(Ipv4Util.java:183)[273:org.opendaylight.bgpcep.util:0.6.3.SNAPSHOT]
      at org.opendaylight.protocol.bgp.parser.impl.message.BGPUpdateMessageParser.parseMessageBody(BGPUpdateMessageParser.java:138)[277:org.opendaylight.bgpcep.bgp-parser-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.protocol.bgp.parser.impl.message.BGPUpdateMessageParser.parseMessageBody(BGPUpdateMessageParser.java:46)[277:org.opendaylight.bgpcep.bgp-parser-impl:0.6.3.SNAPSHOT]
      at org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleMessageRegistry.parseBody(SimpleMessageRegistry.java:31)[276:org.opendaylight.bgpcep.bgp-parser-spi:0.6.3.SNAPSHOT]
      at org.opendaylight.protocol.bgp.parser.spi.AbstractMessageRegistry.parseMessage(AbstractMessageRegistry.java:66)[276:org.opendaylight.bgpcep.bgp-parser-spi:0.6.3.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPByteToMessageDecoder.decode(BGPByteToMessageDecoder.java:49)[289:org.opendaylight.bgpcep.bgp-rib-impl:0.6.3.SNAPSHOT]
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411)[143:io.netty.codec:4.0.44.Final]
      ... 19 more

        1. addpath.conf
          0.5 kB
        2. bgp-addpath.pcap
          5 kB
        3. karaf.log
          104 kB

            Unassigned Unassigned
            kevinxw Kevin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: