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

JMX Configgenerator Web UI throws NPE when navigating to 2nd page.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Meridian-2015.1.0, 16.0.3, 17.0.0
    • Fix Version/s: 16.0.4, Meridian-2015.1.1, 17.0.0
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      opennms-version: 17.0.0-0.20150928, install from apt repository, JMX endpoint: Tomcat server
    • Sprint:
      Newts - Phase 6

      Description

      An issue was reported that when using the JMX Configuration Web UI a "Null Pointer Selection" is raised when navigating to the 2nd page from the 1st one.

      I remember that this issue has been there before, but I was under the impression that it was fixed.

      The MBeanServer the JMX Configuration WebUI tries to connect to is a Tomcat server

      2015-10-01 09:51:56,568 ERROR com.vaadin.server:7.2.7(86) [pool-238-thread-1] com.vaadin.server.DefaultErrorHandler: 
      java.util.concurrent.ExecutionException: java.lang.NullPointerException
              at java.util.concurrent.FutureTask.report(FutureTask.java:122)[:1.8.0_60]
              at java.util.concurrent.FutureTask.get(FutureTask.java:192)[:1.8.0_60]
              at com.vaadin.server.VaadinSession$FutureAccess.get(VaadinSession.java:123)[86:com.vaadin.server:7.2.7]
              at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:1799)[86:com.vaadin.server:7.2.7]
              at com.vaadin.server.VaadinSession.unlock(VaadinSession.java:1013)[86:com.vaadin.server:7.2.7]
              at com.vaadin.server.VaadinService.ensureAccessQueuePurged(VaadinService.java:1760)[86:com.vaadin.server:7.2.7]
              at com.vaadin.server.VaadinService.accessSession(VaadinService.java:1726)[86:com.vaadin.server:7.2.7]
              at com.vaadin.server.VaadinSession.access(VaadinSession.java:1403)[86:com.vaadin.server:7.2.7]
              at com.vaadin.ui.UI.access(UI.java:1372)[86:com.vaadin.server:7.2.7]
              at org.opennms.features.vaadin.jmxconfiggenerator.jobs.JobManager$TaskRunnable.run(JobManager.java:63)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
      Caused by: java.lang.NullPointerException
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MbeansHierarchicalContainer.isSelected(MbeansHierarchicalContainer.java:124)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MbeansHierarchicalContainer$2.apply(MbeansHierarchicalContainer.java:131)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MbeansHierarchicalContainer$2.apply(MbeansHierarchicalContainer.java:128)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at com.google.common.collect.Iterators$7.computeNext(Iterators.java:647)[guava-17.0.jar:]
              at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)[guava-17.0.jar:]
              at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)[guava-17.0.jar:]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.validation.ValidationManager.validate(ValidationManager.java:69)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.validation.ValidationManager.validate(ValidationManager.java:64)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MBeansController.validate(MBeansController.java:371)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MBeansController.updateDataSource(MBeansController.java:357)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.ui.mbeans.MBeansView.enter(MBeansView.java:123)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at com.vaadin.navigator.Navigator.navigateTo(Navigator.java:571)[86:com.vaadin.server:7.2.7]
              at com.vaadin.navigator.Navigator.navigateTo(Navigator.java:526)[86:com.vaadin.server:7.2.7]
              at org.opennms.features.vaadin.jmxconfiggenerator.JmxConfigGeneratorUI.updateView(JmxConfigGeneratorUI.java:163)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.jobs.DetectMBeansJob.onSuccess(DetectMBeansJob.java:122)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.jobs.DetectMBeansJob.onSuccess(DetectMBeansJob.java:56)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at org.opennms.features.vaadin.jmxconfiggenerator.jobs.JobManager$TaskRunnable$1.run(JobManager.java:67)[161:org.opennms.features.vaadin-jmxconfiggenerator:17.0.0.SNAPSHOT]
              at com.vaadin.ui.UI.accessSynchronously(UI.java:1309)[86:com.vaadin.server:7.2.7]
              at com.vaadin.ui.UI$3.run(UI.java:1375)[86:com.vaadin.server:7.2.7]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
              at com.vaadin.server.VaadinService.runPendingAccessTasks(VaadinService.java:1796)[86:com.vaadin.server:7.2.7]
      

        Attachments

          Activity

            People

            • Assignee:
              Murat Murat Yildiz
              Reporter:
              mvr Markus von Rüden
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: