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

Linkd throws Exception when CdpCacheIpv4Address is blank

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.13.0
    • Component/s: Enhanced Linkd / Linkd
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Got the following exception in output.log:

      Exception in thread "Scheduler-Thread-6-of-10" java.lang.NumberFormatException: For input string: ""
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Long.parseLong(Long.java:453)
      at org.opennms.netmgt.linkd.snmp.CdpCacheTableEntry.getIpAddressByHexString(CdpCacheTableEntry.java:448)
      at org.opennms.netmgt.linkd.snmp.CdpCacheTableEntry.getCdpCacheIpv4Address(CdpCacheTableEntry.java:404)
      at org.opennms.netmgt.linkd.AbstractQueryManager.processCdp(AbstractQueryManager.java:539)
      at org.opennms.netmgt.linkd.HibernateEventWriter.storeSnmpCollection(HibernateEventWriter.java:241)
      at org.opennms.netmgt.linkd.HibernateEventWriter$$FastClassByCGLIB$$3a4c15a2.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
      at org.opennms.netmgt.linkd.HibernateEventWriter$$EnhancerByCGLIB$$1274949c.storeSnmpCollection(<generated>)
      at org.opennms.netmgt.linkd.Linkd.updateNodeSnmpCollection(Linkd.java:685)
      at org.opennms.netmgt.linkd.SnmpCollection.runCollection(SnmpCollection.java:551)
      at org.opennms.netmgt.linkd.SnmpCollection.run(SnmpCollection.java:385)
      at org.opennms.netmgt.linkd.scheduler.Scheduler$1.run(Scheduler.java:209)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124)
      at java.lang.Thread.run(Thread.java:724)

        Attachments

          Activity

            People

            • Assignee:
              rssntn67 Antonio Russo
              Reporter:
              rssntn67 Antonio Russo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: