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

Table in "Manage Minions" page fails to load

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 24.0.0
    • Fix Version/s: 24.1.0
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2019 - 19, Horizon 2019 - May 15th 2019

      Description

      Loading the "Manage Minions" page shows an empty table and the following error in the console:

      http://nms:8980/opennms/api/v2/minions?_s=&limit=20&offset=0&order=asc&orderBy=label 500 (Server Error)
      

      Stack on server side looks like:

      2019-04-26 17:40:41,520 ERROR [qtp1182680487-1161] o.o.w.r.s.ErrorResponseProvider: An exception occurred while processing a rest request in an OSGi Rest Service: Index -1 out of bounds for length 0
      java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
              at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[?:?]
              at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) ~[?:?]
              at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) ~[?:?]
              at java.util.Objects.checkIndex(Objects.java:372) ~[?:?]
              at java.util.ArrayList.get(ArrayList.java:458) ~[?:?]
              at org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser.parseAndsOrsBrackets(FiqlParser.java:208) ~[cxf-rt-rs-extension-search-3.2.8.jar:3.2.8]
              at org.apache.cxf.jaxrs.ext.search.fiql.FiqlParser.parse(FiqlParser.java:167) ~[cxf-rt-rs-extension-search-3.2.8.jar:3.2.8]
              at org.apache.cxf.jaxrs.ext.search.SearchContextImpl.getCondition(SearchContextImpl.java:101) ~[cxf-rt-rs-extension-search-3.2.8.jar:3.2.8]
              at org.apache.cxf.jaxrs.ext.search.SearchContextImpl.getCondition(SearchContextImpl.java:82) ~[cxf-rt-rs-extension-search-3.2.8.jar:3.2.8]
              at org.apache.cxf.jaxrs.ext.search.SearchContextImpl.getCondition(SearchContextImpl.java:66) ~[cxf-rt-rs-extension-search-3.2.8.jar:3.2.8]
              at org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO.getCriteria(AbstractDaoRestServiceWithDTO.java:223) ~[opennms-webapp-rest-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO.get(AbstractDaoRestServiceWithDTO.java:255) ~[opennms-webapp-rest-25.0.0-SNAPSHOT.jar:?]
              at org.opennms.web.rest.v2.AbstractDaoRestServiceWithDTO$$FastClassBySpringCGLIB$$661b1e28.invoke(<generated>) ~[opennms-webapp-rest-25.0.0-SNAPSHOT.jar:?]
              at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[org.apache.servicemix.bundles.spring-core-4.2.9.RELEASE_1.jar:?]
              at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720) ~[org.apache.servicemix.bundles.spring-aop-4.2.9.RELEASE_1.jar:?]
              at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[org.apache.servicemix.bundles.spring-aop-4.2.9.RELEASE_1.jar:?]
              at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[org.apache.servicemix.bundles.spring-tx-4.2.9.RELEASE_1.jar:?]
              at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) ~[org.apache.servicemix.bundles.spring-tx-4.2.9.RELEASE_1.jar:?]
              at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[org.apache.servicemix.bundles.spring-tx-4.2.9.RELEASE_1.jar:?]
      at org.opennms.web.rest.v2.MinionRestService$$EnhancerBySpringCGLIB$$786f02bb.get(<generated>) ~[opennms-webapp-rest-25.0.0-SNAPSHOT.jar:?]
      

        Attachments

          Activity

            People

            • Assignee:
              patrick.schweizer Patrick Schweizer
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: