[
https://issues.jboss.org/browse/JBIDE-23815?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-23815:
-------------------------------------
[~aurelien.pupier] [~tsedmik]
Sorry to be a pain, all, but I had some spare cycles and was looking to help out the
openshift tools guys... and this bug report assumes a lot of knowledge on my part ;)
Any chance we can get a 100% a-z use case with steps listed? I know that's annoying,
but that kinda stuff helps people get up to speed on workflows and usecases they don't
know about...
So it'd be great if you just, you know, started with a clean cdk (list version plz),
and list every step to replicate? A screencast from step 0 would also work.
What I tried so far is:
1) Start a clean cdk, wait for openshift connection to appear, expand it
2) Create an project (t22)
3) right-click it, select new -> resource
4) realize i need a file to contribute
5) save the json in this jira description to a file
6) select it in the new resource dialog
7) get an error that my namespace is wrong, change namespace from test1 to t22, try
again
8) get an error that resourceVersion cannot be set, delete the line
"resourceVersion" : "69156",
9) try again, resource gets created
10) right-click on t22, select properties (empty properties view opens)
11) right-click on camel-ose-springboot-xml in openshift explorer under t22, select
properties
12) empty properties view shows up.
13) sit around confused for a bit ;)
14) browse the web console,
15) give up
Any further help in replicating is appreciated!
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: npe.webm, 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)