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

NPE in linkd with two Linux nodes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.92
    • Fix Version/s: 1.9.93
    • Component/s: Enhanced Linkd / Linkd
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      Two linux nodes, one as router/firewall, one with OpenNMS itself

      Description

      Trying to have OpenNMS establish the link between the nodes will result in:

      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] SnmpCollection: runAndSaveSnmpVlanCollection: adding bridge info to snmpcollection, VLAN = org.opennms.netmgt.model.OnmsVlan@66c23[dbId=<null>,node=<null>,id=1,name=default,type=-1,status=1,dbStatus=<null>,lastPollTime=<null>], SnmpVlanCollection = org.opennms.netmgt.linkd.SnmpVlanCollection@1a58c9e[agentConfig=AgentConfig[Address: 1.2.3.101, ProxyForAddress: null, Port: 161, Community: public, Timeout: 1800, Retries: 1, MaxVarsPerPdu: 10, MaxRepetitions: 2, Max request size: 65535, Version: v2c],address=/1.2.3.101,dot1dBase=org.opennms.netmgt.linkd.snmp.Dot1dBaseGroup@792102,dot1dBaseTable=org.opennms.netmgt.linkd.snmp.Dot1dBasePortTable@663187,dot1dStp=org.opennms.netmgt.linkd.snmp.Dot1dStpGroup@13da8bc,dot1dStpTable=org.opennms.netmgt.linkd.snmp.Dot1dStpPortTable@110e7e5,dot1dTpFdbTable=org.opennms.netmgt.linkd.snmp.Dot1dTpFdbTable@e88fd6,qDot1dTpFdbTable=org.opennms.netmgt.linkd.snmp.QBridgeDot1dTpFdbTable@3b3e8e]
      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] SnmpCollection: run: saving collection into database for 1.2.3.101
      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] Linkd: Updating SNMP collection for null
      2011-10-28 00:32:27,430 ERROR [LinkdScheduler-1 Pool-fiber0] Linkd: No node found for SNMP collection: Ready Runnable(s) SnmpCollection ip=null port=161 community=public package=example1 collectBridgeForwardingTable=true collectStpNode=true collectStpTable=true collectCdpTable=true collectIpRouteTable=true saveIpRouteTable=true saveStpInterfaceTable=true saveStpNodeTable=true unscheduling!
      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] Scheduler: unschedule: Removing all Ready Runnable(s) SnmpCollection ip=null port=161 community=public package=example1 collectBridgeForwardingTable=true collectStpNode=true collectStpTable=true collectCdpTable=true collectIpRouteTable=true saveIpRouteTable=true saveStpInterfaceTable=true saveStpNodeTable=true
      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] Scheduler: unschedule: Removing Ready Runnable(s) SnmpCollection ip=null port=161 community=public package=example1 collectBridgeForwardingTable=true collectStpNode=true collectStpTable=true collectCdpTable=true collectIpRouteTable=true saveIpRouteTable=true saveStpInterfaceTable=true saveStpNodeTable=true at interval 180000
      2011-10-28 00:32:27,430 DEBUG [LinkdScheduler-1 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: run: an unexpected error occured during fiber run, calling error liseners
      2011-10-28 00:32:27,431 ERROR [LinkdScheduler-1 Pool-fiber0] RunnableConsumerThreadPool$FiberThreadImpl: No error listeners defined for unexpected error: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.opennms.netmgt.linkd.SnmpCollection.equals(SnmpCollection.java:746)
      at org.opennms.netmgt.linkd.scheduler.Scheduler$1.equals(Scheduler.java:321)
      at org.opennms.netmgt.linkd.scheduler.Scheduler.unschedule(Scheduler.java:399)
      at org.opennms.netmgt.linkd.scheduler.Scheduler.unschedule(Scheduler.java:360)
      at org.opennms.netmgt.linkd.Linkd.updateNodeSnmpCollection(Linkd.java:565)
      at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:516)
      at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:301)
      at org.opennms.core.concurrent.RunnableConsumerThreadPool$FiberThreadImpl.run(RunnableConsumerThreadPool.java:420)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

        1. core-s.txt.gz
          33 kB
          Alexander Hoogerhuis
        2. linkd-test.txt.gz
          16 kB
          Alexander Hoogerhuis

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              alexh@boxed.no Alexander Hoogerhuis
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: