[BGPCEP-649] ArrayIndexOutofBound with addpath Created: 24/Mar/17  Updated: 03/Mar/19  Resolved: 29/Mar/17

Status: Resolved
Project: bgpcep
Component/s: BGP
Affects Version/s: Bugzilla Migration
Fix Version/s: Bugzilla Migration

Type: Bug
Reporter: Kevin Wang Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File addpath.conf     File bgp-addpath.pcap     Text File karaf.log    
Issue Links:
Duplicate
duplicates BGPCEP-533 Support add-path in base BGP NLRI Verified
External issue ID: 8079

 Description   

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



 Comments   
Comment by Kevin Wang [ 24/Mar/17 ]

Attachment karaf.log has been added with description: karaf log

Comment by Kevin Wang [ 24/Mar/17 ]

Attachment addpath.conf has been added with description: exabgp config

Comment by Kevin Wang [ 24/Mar/17 ]

Attachment bgp-addpath.pcap has been added with description: wireshark capture

Generated at Wed Feb 07 19:13:43 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.