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

Import wizard: does nothing if server is not reachable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.30.x
    • 4.4.4.Final
    • openshift
    • None
    • devex #156 October 2018, devex #157 November 2019, devex #158 November 2018
    • 8
    • Hide
      1. ASSERT: have an applicaiton running on an openshift server that may be set non-reachable (ex. use open.paas.redhat.com which is only reachable via VPN, but you should be able to reproduce this when turning your network off, too)
      2. ASSERT: in OpenShift explorer: make sure that your application (service) is unfolded/visible
      3. EXEC: make sure that your server is NOT reachable (ex. by turning off VPN if you're using open.paas.redhat.com or turning off your network connectivity)
      4. EXEC: in Explorer hit "Import Application..." in the context menu of your application (service)

      Result:
      Nothing happens. In the Eclipse log you spot the following log entry:

      org.eclipse.e4.core.di.InjectionException: com.openshift.restclient.OpenShiftException: Unable to execute request to https://open.paas.redhat.com/oapi/v1/namespaces/ahuga/buildconfigs
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706)
      	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:693)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
      	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)
      Caused by: com.openshift.restclient.OpenShiftException: Unable to execute request to https://open.paas.redhat.com/oapi/v1/namespaces/ahuga/buildconfigs
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:261)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147)
      	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134)
      	at com.openshift.internal.restclient.model.Project.getResources(Project.java:77)
      	at org.jboss.tools.openshift.internal.ui.handler.ImportApplicationHandler.execute(ImportApplicationHandler.java:57)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      	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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
      	... 40 more
      Caused by: java.net.UnknownHostException: open.paas.redhat.com
      	at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
      	at java.net.InetAddress.getAllByName(InetAddress.java:1192)
      	at java.net.InetAddress.getAllByName(InetAddress.java:1126)
      	at okhttp3.Dns$1.lookup(Dns.java:39)
      	at okhttp3.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:173)
      	at okhttp3.internal.http.RouteSelector.nextProxy(RouteSelector.java:139)
      	at okhttp3.internal.http.RouteSelector.next(RouteSelector.java:81)
      	at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:172)
      	at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123)
      	at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93)
      	at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296)
      	at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248)
      	at okhttp3.RealCall.getResponse(RealCall.java:243)
      	at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)
      	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:54)
      	at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
      	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
      	at okhttp3.RealCall.execute(RealCall.java:57)
      	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255)
      	... 53 more
      

      Expected result:
      You should get an error dialog in your face telling you that the server could not be reached.

      Show
      ASSERT: have an applicaiton running on an openshift server that may be set non-reachable (ex. use open.paas.redhat.com which is only reachable via VPN, but you should be able to reproduce this when turning your network off, too) ASSERT: in OpenShift explorer: make sure that your application (service) is unfolded/visible EXEC: make sure that your server is NOT reachable (ex. by turning off VPN if you're using open.paas.redhat.com or turning off your network connectivity) EXEC: in Explorer hit "Import Application..." in the context menu of your application (service) Result: Nothing happens. In the Eclipse log you spot the following log entry: org.eclipse.e4.core.di.InjectionException: com.openshift.restclient.OpenShiftException: Unable to execute request to https: //open.paas.redhat.com/oapi/v1/namespaces/ahuga/buildconfigs at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:65) at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282) at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264) at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132) at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488) at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210) at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433) at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454) at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706) 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:693) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610) 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) Caused by: com.openshift.restclient.OpenShiftException: Unable to execute request to https: //open.paas.redhat.com/oapi/v1/namespaces/ahuga/buildconfigs at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:261) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:226) at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:159) at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:147) at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:134) at com.openshift.internal.restclient.model.Project.getResources(Project.java:77) at org.jboss.tools.openshift.internal.ui.handler.ImportApplicationHandler.execute(ImportApplicationHandler.java:57) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295) at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90) 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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55) ... 40 more Caused by: java.net.UnknownHostException: open.paas.redhat.com at java.net.InetAddress.getAllByName0(InetAddress.java:1280) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at okhttp3.Dns$1.lookup(Dns.java:39) at okhttp3.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:173) at okhttp3.internal.http.RouteSelector.nextProxy(RouteSelector.java:139) at okhttp3.internal.http.RouteSelector.next(RouteSelector.java:81) at okhttp3.internal.http.StreamAllocation.findConnection(StreamAllocation.java:172) at okhttp3.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:123) at okhttp3.internal.http.StreamAllocation.newStream(StreamAllocation.java:93) at okhttp3.internal.http.HttpEngine.connect(HttpEngine.java:296) at okhttp3.internal.http.HttpEngine.sendRequest(HttpEngine.java:248) at okhttp3.RealCall.getResponse(RealCall.java:243) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201) at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:54) at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190) at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163) at okhttp3.RealCall.execute(RealCall.java:57) at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:255) ... 53 more Expected result: You should get an error dialog in your face telling you that the server could not be reached.

          dbocharo@redhat.com Dmitrii Bocharov (Inactive)
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated: