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

Node Page->View Node Link Detailed Info, creates an exception when no links are available

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.13.4
    • Fix Version/s: 1.13.4, 14.0.0
    • Component/s: Web UI - General
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:

      Description

      Navigating the link to display the detailed link info page creates an exception when, apparently, there are no links for the nodes. The following exception was found in the web.log file:

      2014-09-24 08:18:18,698 WARN [qtp658605036-940997 - /opennms/element/linkednode.jsp?node=9527] o.e.j.s.ServletHandler: /opennms/element/linkednode.jsp
      java.lang.IllegalArgumentException: ifIndex may not be null
      at org.springframework.util.Assert.notNull(Assert.java:112) ~[org.springframework.core-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.opennms.netmgt.dao.hibernate.SnmpInterfaceDaoHibernate.findByNodeIdAndIfIndex(SnmpInterfaceDaoHibernate.java:52) ~[opennms-dao-1.13.5-SNAPSHOT.jar:?]
      at org.opennms.web.enlinkd.EnLinkdElementFactory.convertFromModel(EnLinkdElementFactory.java:377) ~[opennms-webapp-1.13.5-SNAPSHOT.jar:?]
      at org.opennms.web.enlinkd.EnLinkdElementFactory.getNodeLinks(EnLinkdElementFactory.java:362) ~[opennms-webapp-1.13.5-SNAPSHOT.jar:?]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_45]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_45]
      at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_45]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) ~[org.springframework.aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) ~[org.springframework.aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) ~[org.springframework.aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) ~[org.springframework.transaction-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) ~[org.springframework.transaction-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) ~[org.springframework.transaction-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[org.springframework.aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) ~[org.springframework.aop-3.2.4.RELEASE.jar:3.2.4.RELEASE]
      at com.sun.proxy.$Proxy113.getNodeLinks(Unknown Source) ~[?:?]
      at org.apache.jsp.element.linkednode_jsp._jspService(linkednode_jsp.java:843) ~[?:?]
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) ~[org.apache.jasper.glassfish-2.1.0.v201110031002.jar:?]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet-2.5.0.v201103041518.jar:?]
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) ~[org.apache.jasper.glassfish-2.1.0.v201110031002.jar:?]
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) ~[org.apache.jasper.glassfish-2.1.0.v201110031002.jar:?]
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) ~[org.apache.jasper.glassfish-2.1.0.v201110031002.jar:?]
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) ~[javax.servlet-2.5.0.v201103041518.jar:?]
      at org.eclipse.jetty.servlet.JspPropertyGroupServlet.service(JspPropertyGroupServlet.java:132) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1317) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.opennms.container.web.felix.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:53) ~[?:?]
      at org.opennms.container.web.felix.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:35) ~[?:?]
      at org.opennms.container.web.felix.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:50) ~[?:?]
      at org.opennms.container.web.felix.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:42) ~[?:?]
      at org.opennms.container.web.bridge.internal.DispatcherFilter.doFilter(DispatcherFilter.java:72) ~[?:?]
      at org.opennms.container.web.ProxyFilter.doFilter(ProxyFilter.java:56) ~[org.opennms.container.servlet-1.13.5-SNAPSHOT.jar:?]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49) ~[extremecomponents-1.0.1.jar:1.0.1]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.opennms.web.servlet.AddRefreshHeaderFilter.doFilter(AddRefreshHeaderFilter.java:73) ~[opennms-web-api-1.13.5-SNAPSHOT.jar:?]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.opennms.web.servlet.StoreRequestPropertiesFilter.doFilter(StoreRequestPropertiesFilter.java:79) ~[opennms-web-api-1.13.5-SNAPSHOT.jar:?]
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1288) ~[jetty-servlet-7.6.15.v20140411.jar:7.6.15.v20140411]
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330) ~[spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
      at org.opennms.web.springframework.security.AuthFilterEnabler.doFilter(AuthFilterEnabler.java:108) ~[org.opennms.features.springframework-security-1.13.5-SNAPSHOT.jar:?]
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342) ~[spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]
      at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118) ~[spring-security-web-3.1.4.RELEASE.jar:3.1.4.RELEASE]

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            david David Hustace
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: