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

NPE in AttributeControlFactory.createControl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.5.1.AM1
    • 4.5.0.AM1
    • jmx
    • None
    • Hide
      • connect through JMX to a Camel instance
      • go to beans -> org.apache.camel -> camel -> routes -> "<your camel route name>"
      • double-click to open it
      • click on "FirstExchangeFailureTimestamp"
        --> NPE displayed in right panel
      Show
      connect through JMX to a Camel instance go to beans -> org.apache.camel -> camel -> routes -> "<your camel route name>" double-click to open it click on "FirstExchangeFailureTimestamp" --> NPE displayed in right panel

      !ENTRY org.jboss.tools.jmx.ui 4 0 2017-07-10 16:00:20.250
      !MESSAGE Unable to retrieve value for attribute FirstExchangeFailureTimestamp
      !STACK 0
      java.lang.NullPointerException
      	at org.jboss.tools.jmx.ui.internal.controls.AttributeControlFactory.createControl(AttributeControlFactory.java:127)
      	at org.jboss.tools.jmx.ui.internal.editors.AttributeDetails.update(AttributeDetails.java:215)
      	at org.jboss.tools.jmx.ui.internal.editors.AttributeDetails.selectionChanged(AttributeDetails.java:184)
      	at org.eclipse.ui.forms.DetailsPart.lambda$0(DetailsPart.java:267)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.ui.forms.DetailsPart.showPage(DetailsPart.java:255)
      	at org.eclipse.ui.forms.DetailsPart.update(DetailsPart.java:228)
      	at org.eclipse.ui.forms.DetailsPart.selectionChanged(DetailsPart.java:213)
      	at org.eclipse.ui.forms.ManagedForm.fireSelectionChanged(ManagedForm.java:125)
      	at org.jboss.tools.jmx.ui.internal.editors.AttributesSection$1.selectionChanged(AttributesSection.java:57)
      	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.handleSelect(StructuredViewer.java:1223)
      	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1252)
      	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:240)
      	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:235)
      	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:400)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4238)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3817)
      	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:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: