[jbosstools-issues] [JBoss JIRA] (JBIDE-23815) NPE in BuildConfigPropertySource.getResourcePropertyDescriptors

Andre Dietisheim (JIRA) issues at jboss.org
Thu Feb 16 13:34:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-23815?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13364971#comment-13364971 ] 

Andre Dietisheim edited comment on JBIDE-23815 at 2/16/17 1:33 PM:
-------------------------------------------------------------------

we merged the PR for JBT that prevents the NPE. The NPE wont occurr but there are no "Source" properties being show either, because the openshift client library doesnt support it yet.
We now should have proper support for the build source type "Binary". I filed this to JBIDE-23924


was (Author: adietish):
we merged the PR for JBT that prevents the NPE.
We now should have proper support for the build source type "Binary".

> NPE in BuildConfigPropertySource.getResourcePropertyDescriptors
> ---------------------------------------------------------------
>
>                 Key: JBIDE-23815
>                 URL: https://issues.jboss.org/browse/JBIDE-23815
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.2.Final
>            Reporter: Aurélien Pupier
>            Assignee: Andre Dietisheim
>            Priority: Critical
>             Fix For: 4.4.3.Final
>
>         Attachments: buildconfig-properties.png, npe.webm, spring-boot-camel-template.png, test-ose.zip
>
>
> {noformat}
> !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)
> {noformat}
> here is the json available when I click "Edit" on the application:
> {noformat}
> {
>     "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"
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list