Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-24658

NPE in ObjectNameNode.loadInfo when selecting MBean element in the JMX Tree

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.5.0.AM2
    • 4.5.0.AM2
    • jmx
    • None
    • Hide
      • connect to a JMX connection
      • expand MBeans -> com.sun.management for instance
      • select DiagnosticCommand
        --> NPE
      Show
      connect to a JMX connection expand MBeans -> com.sun.management for instance select DiagnosticCommand --> NPE

      !ENTRY org.eclipse.ui.views.properties.tabbed 4 2 2017-07-10 15:45:13.897
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.views.properties.tabbed".
      !STACK 0
      java.lang.NullPointerException
      	at org.jboss.tools.jmx.core.tree.ObjectNameNode.loadInfo(ObjectNameNode.java:54)
      	at org.jboss.tools.jmx.core.tree.ObjectNameNode.getMbeanInfoWrapper(ObjectNameNode.java:107)
      	at org.jboss.tools.jmx.core.tree.ObjectNameNode.getMbeanInfoWrapper(ObjectNameNode.java:103)
      	at org.jboss.tools.jmx.ui.internal.adapters.ObjectNameNodePropertySourceAdapter.getAttributes(ObjectNameNodePropertySourceAdapter.java:55)
      	at org.jboss.tools.jmx.ui.internal.adapters.ObjectNameNodePropertySourceAdapter.getPropertyDescriptors(ObjectNameNodePropertySourceAdapter.java:43)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.computeMergedPropertyDescriptors(PropertySheetEntry.java:171)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:507)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:728)
      	at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:976)
      	at org.eclipse.ui.views.properties.PropertySheetPage.refresh(PropertySheetPage.java:539)
      	at org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection.refresh(AdvancedPropertySection.java:89)
      	at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(TabContents.java:211)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      	at org.eclipse.ui.views.properties.tabbed.TabContents.refresh(TabContents.java:214)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage$SelectionChangedListener.selectionChanged(TabbedPropertySheetPage.java:221)
      	at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:155)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:152)
      	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2180)
      	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1717)
      	at org.eclipse.jface.viewers.Viewer.setSelection(Viewer.java:380)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.setInput(TabbedPropertySheetPage.java:747)
      	at org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage.selectionChanged(TabbedPropertySheetPage.java:555)
      	at org.eclipse.ui.views.properties.PropertySheet.showSelectionAndDescription(PropertySheet.java:498)
      	at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:478)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.notifyListeners(SelectionService.java:239)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.handlePostSelectionChanged(SelectionService.java:113)
      	at org.eclipse.ui.internal.e4.compatibility.SelectionService.lambda$2(SelectionService.java:68)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$4.run(SelectionAggregator.java:166)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.notifyPostListeners(SelectionAggregator.java:163)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator.access$8(SelectionAggregator.java:161)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8$1.run(SelectionAggregator.java:271)
      	at org.eclipse.e4.core.contexts.RunAndTrack.runExternalCode(RunAndTrack.java:56)
      	at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$8.changed(SelectionAggregator.java:268)
      	at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:114)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:355)
      	at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:370)
      	at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setPostSelection(SelectionServiceImpl.java:36)
      	at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.lambda$2(CompatibilityPart.java:125)
      	at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:872)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      	at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:869)
      	at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1238)
      	at org.eclipse.ui.navigator.CommonViewer.handlePostSelect(CommonViewer.java:457)
      	at org.eclipse.jface.viewers.StructuredViewer.lambda$0(StructuredViewer.java:1261)
      	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:81)
      	at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:261)
      	at org.eclipse.jface.util.OpenStrategy.access$5(OpenStrategy.java:256)
      	at org.eclipse.jface.util.OpenStrategy$1.lambda$1(OpenStrategy.java:426)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1044)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
      

              rob.stryker Rob Stryker (Inactive)
              apupier@redhat.com Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: