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

BGP-LS: Bad handling of unknown NLRI type cause NPE

    XMLWordPrintable

Details

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

    • 5564

    Description

      Sample Update message input 0xffffffffffffffffffffffffffffffff003c0200000025800e2240044704c00002010000050015070000000000000001010203040001000105060708

      2016-03-20 13:37:56,674 | WARN | oupCloseable-6-9 | LinkstateNlriParser | 266 - org.opendaylight.bgpcep.bgp-linkstate - 0.5.1.SNAPSHOT | Unknown Object Type.
      2016-03-20 13:37:56,674 | WARN | oupCloseable-6-9 | LinkstateNlriParser | 266 - org.opendaylight.bgpcep.bgp-linkstate - 0.5.1.SNAPSHOT | Unknown NLRI Type.
      2016-03-20 13:37:56,675 | WARN | oupCloseable-6-9 | DefaultChannelPipeline | 99 - io.netty.common - 4.0.33.Final | An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
      java.lang.NullPointerException
      at org.opendaylight.protocol.bgp.linkstate.nlri.LinkstateNlriParser.serializeNlri(LinkstateNlriParser.java:314)[266:org.opendaylight.bgpcep.bgp-linkstate:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.linkstate.LinkstateRIBSupport.createRouteKey(LinkstateRIBSupport.java:164)[266:org.opendaylight.bgpcep.bgp-linkstate:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.linkstate.LinkstateRIBSupport.processDestination(LinkstateRIBSupport.java:145)[266:org.opendaylight.bgpcep.bgp-linkstate:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.linkstate.LinkstateRIBSupport.putDestinationRoutes(LinkstateRIBSupport.java:158)[266:org.opendaylight.bgpcep.bgp-linkstate:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport.putRoutes(AbstractRIBSupport.java:273)[259:org.opendaylight.bgpcep.bgp-rib-spi:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.spi.AbstractRIBSupport.putRoutes(AbstractRIBSupport.java:210)[259:org.opendaylight.bgpcep.bgp-rib-spi:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.RIBSupportContextImpl.writeRoutes(RIBSupportContextImpl.java:49)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.TableContext.writeRoutes(TableContext.java:49)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.AdjRibInWriter.updateRoutes(AdjRibInWriter.java:254)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPPeer.onMessage(BGPPeer.java:125)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl.handleMessage(BGPSessionImpl.java:218)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl.channelRead0(BGPSessionImpl.java:428)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl.channelRead0(BGPSessionImpl.java:55)[268:org.opendaylight.bgpcep.bgp-rib-impl:0.5.1.SNAPSHOT]
      at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[100:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)[101:io.netty.codec:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:263)[101:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[100:io.netty.transport:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:276)[101:io.netty.codec:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:354)[101:io.netty.codec:4.0.33.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)[101:io.netty.codec:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:318)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:304)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)[100:io.netty.transport:4.0.33.Final]
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)[100:io.netty.transport:4.0.33.Final]
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)[99:io.netty.common:4.0.33.Final]
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)[99:io.netty.common:4.0.33.Final]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_85]

      Attachments

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

        Activity

          People

            milos.fabian@pantheon.tech Milos Fabian
            milos.fabian@pantheon.tech Milos Fabian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: