Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12649

Error parsing label information from BGP MP_REACH_NLRI attribute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 26.0.0
    • Fix Version/s: 26.0.0
    • Component/s: Telemetry
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      Parsing of attribute data failed:

      io.netty.handler.codec.DecoderException: org.opennms.netmgt.telemetry.protocols.bmp.parser.InvalidPacketException: Error parsing packet
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:475) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:283) ~[?:?]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:93) [115:io.netty.transport:4.1.38.Final]
      	at org.opennms.netmgt.telemetry.listeners.TcpListener$1$4.channelRead(TcpListener.java:108) [310:org.opennms.features.telemetry.listeners:26.0.0.SNAPSHOT]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:352) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1421) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:697) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:632) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:549) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:511) [115:io.netty.transport:4.1.38.Final]
      	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:918) [111:io.netty.common:4.1.38.Final]
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [111:io.netty.common:4.1.38.Final]
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [111:io.netty.common:4.1.38.Final]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: org.opennms.netmgt.telemetry.protocols.bmp.parser.InvalidPacketException: Error parsing packet
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.<init>(MultiprotocolReachableNlri.java:103) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute$Type$18.parse(UpdatePacket.java:272) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute.<init>(UpdatePacket.java:162) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.lambda$new$1(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.utils.BufferUtils.repeatRemaining(BufferUtils.java:182) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.<init>(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.parse(UpdatePacket.java:332) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.packets.RouteMonitoringPacket.<init>(RouteMonitoringPacket.java:54) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.parse(Header.java:98) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.access$100(Header.java:81) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header.parsePayload(Header.java:78) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.BmpParser$1.parse(BmpParser.java:221) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.TcpListener$1$3.decode(TcpListener.java:116) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) ~[?:?]
      	... 22 more
      Caused by: java.lang.IllegalArgumentException: Cannot convert bytes to an InetAddress.
      	at org.opennms.core.network.IPAddress.<init>(IPAddress.java:60) ~[?:?]
      	at org.opennms.core.utils.InetAddressUtils.getInetAddress(InetAddressUtils.java:206) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.parseAfi_IPv4IPv6(MultiprotocolReachableNlri.java:158) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.parseAfi(MultiprotocolReachableNlri.java:113) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.<init>(MultiprotocolReachableNlri.java:99) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute$Type$18.parse(UpdatePacket.java:272) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute.<init>(UpdatePacket.java:162) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.lambda$new$1(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.utils.BufferUtils.repeatRemaining(BufferUtils.java:182) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.<init>(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.parse(UpdatePacket.java:332) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.packets.RouteMonitoringPacket.<init>(RouteMonitoringPacket.java:54) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.parse(Header.java:98) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.access$100(Header.java:81) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header.parsePayload(Header.java:78) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.BmpParser$1.parse(BmpParser.java:221) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.TcpListener$1$3.decode(TcpListener.java:116) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) ~[?:?]
      	... 22 more
      Caused by: java.net.UnknownHostException: addr is of illegal length
      	at java.net.InetAddress.getByAddress(InetAddress.java:1208) ~[?:?]
      	at java.net.InetAddress.getByAddress(InetAddress.java:1571) ~[?:?]
      	at org.opennms.core.network.IPAddress.<init>(IPAddress.java:58) ~[?:?]
      	at org.opennms.core.utils.InetAddressUtils.getInetAddress(InetAddressUtils.java:206) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.parseAfi_IPv4IPv6(MultiprotocolReachableNlri.java:158) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.parseAfi(MultiprotocolReachableNlri.java:113) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.pathattr.MultiprotocolReachableNlri.<init>(MultiprotocolReachableNlri.java:99) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute$Type$18.parse(UpdatePacket.java:272) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket$PathAttribute.<init>(UpdatePacket.java:162) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.lambda$new$1(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.utils.BufferUtils.repeatRemaining(BufferUtils.java:182) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.<init>(UpdatePacket.java:85) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.packets.UpdatePacket.parse(UpdatePacket.java:332) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.packets.RouteMonitoringPacket.<init>(RouteMonitoringPacket.java:54) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.parse(Header.java:98) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header$Type.access$100(Header.java:81) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bmp.Header.parsePayload(Header.java:78) ~[?:?]
      	at org.opennms.netmgt.telemetry.protocols.bmp.parser.BmpParser$1.parse(BmpParser.java:221) ~[?:?]
      	at org.opennms.netmgt.telemetry.listeners.TcpListener$1$3.decode(TcpListener.java:116) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:505) ~[?:?]
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:444) ~[?:?]
      	... 22 more
      

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            cpape Christian Pape
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: