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

NPE in BuildConfigPropertySource.getResourcePropertyDescriptors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.4.3.Final
    • 4.4.2.Final
    • openshift
    • None
    • devex #127 February 2017
    • Hide

      I deployed the Camel Fuse Teampltes available in Fuse Tooling
      I restarted my Eclipse
      I reconnected to the same CDK

      • select application in OpenShift Instance view
      • go to Build COnfigs tab in properties view
      • select the element available
        --> NPE pop-up
      Show
      I deployed the Camel Fuse Teampltes available in Fuse Tooling I restarted my Eclipse I reconnected to the same CDK select application in OpenShift Instance view go to Build COnfigs tab in properties view select the element available --> NPE pop-up

    Description

      !ENTRY org.eclipse.jface 4 2 2017-01-31 10:27:08.951
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
      !STACK 0
      java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.property.BuildConfigPropertySource.getResourcePropertyDescriptors(BuildConfigPropertySource.java:56)
      	at org.jboss.tools.openshift.internal.ui.property.ResourcePropertySource.getPropertyDescriptors(ResourcePropertySource.java:62)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.computeMergedPropertyDescriptors(PropertySheetEntry.java:171)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:506)
      	at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:732)
      	at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:980)
      	at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:525)
      	at org.jboss.tools.openshift.internal.ui.property.tabbed.OpenShiftResourcePropertySection$2.selectionChanged(OpenShiftResourcePropertySection.java:140)
      	at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:158)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
      	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)
      	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:155)
      	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2191)
      	at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1229)
      	at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1258)
      	at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:242)
      	at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:236)
      	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:405)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	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:673)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      

      here is the json available when I click "Edit" on the application:

      {
          "metadata" : {
              "name" : "camel-ose-springboot-xml",
              "namespace" : "test1",
              "selfLink" : "/api/v1/namespaces/test1/services/camel-ose-springboot-xml",
              "uid" : "a28f19cd-e298-11e6-9637-525400ee9c8f",
              "resourceVersion" : "69156",
              "creationTimestamp" : "2017-01-25T00:53:07Z",
              "labels" : {
                  "expose" : "true",
                  "group" : "com.mycompany",
                  "project" : "camel-ose-springboot-xml",
                  "provider" : "fabric8",
                  "version" : "1.0.0-SNAPSHOT"
              },
              "annotations" : {
                  "fabric8.io/iconUrl" : "img/icons/camel.svg",
                  "prometheus.io/port" : "9779",
                  "prometheus.io/scrape" : "true"
              }
          },
          "spec" : {
              "ports" : [{
                  "name" : "http",
                  "protocol" : "TCP",
                  "port" : 80,
                  "targetPort" : 8080
              }],
              "selector" : {
                  "group" : "com.mycompany",
                  "project" : "camel-ose-springboot-xml",
                  "provider" : "fabric8"
              },
              "portalIP" : "172.30.65.90",
              "clusterIP" : "172.30.65.90",
              "type" : "ClusterIP",
              "sessionAffinity" : "None"
          },
          "status" : {"loadBalancer" : {}},
          "kind" : "Service",
          "apiVersion" : "v1"
      }
      

      Attachments

        1. buildconfig-properties.png
          buildconfig-properties.png
          158 kB
        2. npe.webm
          1.07 MB
        3. spring-boot-camel-template.png
          spring-boot-camel-template.png
          138 kB
        4. test-ose.zip
          34 kB

        Issue Links

          Activity

            People

              adietish@redhat.com André Dietisheim
              apupier@redhat.com Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: