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

Server adapter: "Show in > Browser" on an adapter for a service without routes errors "illegal thread access"

    Details

    • Steps to Reproduce:
      Hide
      1. ASSERT: have a service with a route
      2. EXEC: make sure or have a service without a route:
      • oc get service <your existing service> -o json > myservice.json
      • edit myservice
        "name": "eap-app" -> "name": "eap-app-2",
        "selfLink": "/api/v1/namespaces/test/services/eap-app"  -> "selfLink": "/api/v1/namespaces/test/services/eap-app-2",
        "clusterIP": "172.30.167.19" -> "clusterIP": "172.30.167.20"
        
      • oc create -f myservice.json
      1. EXEC: create a server adapter for your new service
      2. EXEC: "Show In > Web Browser

      Result:

      In the eclipse log you see the following stack trace:

      org.eclipse.core.runtime.AssertionFailedException: null argument:The dialog should be created in UI thread
      	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
      	at org.eclipse.jface.dialogs.IconAndMessageDialog.getSWTImage(IconAndMessageDialog.java:285)
      	at org.eclipse.jface.dialogs.IconAndMessageDialog.getWarningImage(IconAndMessageDialog.java:245)
      	at org.eclipse.jface.dialogs.MessageDialog.<init>(MessageDialog.java:193)
      	at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:356)
      	at org.eclipse.jface.dialogs.MessageDialog.openWarning(MessageDialog.java:469)
      	at org.jboss.tools.openshift.internal.ui.route.RouteChooser.noRouteErrorDialog(RouteChooser.java:65)
      	at org.jboss.tools.openshift.core.server.OpenShiftServerExtendedProperties.getRoute(OpenShiftServerExtendedProperties.java:122)
      	at org.jboss.tools.openshift.core.server.OpenShiftServerExtendedProperties.getWelcomePageUrl(OpenShiftServerExtendedProperties.java:79)
      	at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider.getUrl(ShowInWelcomePageActionProvider.java:183)
      	at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider.access$0(ShowInWelcomePageActionProvider.java:171)
      	at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider$1$1.run(ShowInWelcomePageActionProvider.java:85)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      Show
      ASSERT: have a service with a route EXEC: make sure or have a service without a route: oc get service <your existing service> -o json > myservice.json edit myservice "name" : "eap-app" -> "name" : "eap-app-2" , "selfLink" : "/api/v1/namespaces/test/services/eap-app" -> "selfLink" : "/api/v1/namespaces/test/services/eap-app-2" , "clusterIP" : "172.30.167.19" -> "clusterIP" : "172.30.167.20" oc create -f myservice.json EXEC: create a server adapter for your new service EXEC: "Show In > Web Browser Result: In the eclipse log you see the following stack trace: org.eclipse.core.runtime.AssertionFailedException: null argument:The dialog should be created in UI thread at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85) at org.eclipse.jface.dialogs.IconAndMessageDialog.getSWTImage(IconAndMessageDialog.java:285) at org.eclipse.jface.dialogs.IconAndMessageDialog.getWarningImage(IconAndMessageDialog.java:245) at org.eclipse.jface.dialogs.MessageDialog.<init>(MessageDialog.java:193) at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:356) at org.eclipse.jface.dialogs.MessageDialog.openWarning(MessageDialog.java:469) at org.jboss.tools.openshift.internal.ui.route.RouteChooser.noRouteErrorDialog(RouteChooser.java:65) at org.jboss.tools.openshift.core.server.OpenShiftServerExtendedProperties.getRoute(OpenShiftServerExtendedProperties.java:122) at org.jboss.tools.openshift.core.server.OpenShiftServerExtendedProperties.getWelcomePageUrl(OpenShiftServerExtendedProperties.java:79) at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider.getUrl(ShowInWelcomePageActionProvider.java:183) at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider.access$0(ShowInWelcomePageActionProvider.java:171) at org.jboss.ide.eclipse.as.ui.views.server.extensions.ShowInWelcomePageActionProvider$1$1.run(ShowInWelcomePageActionProvider.java:85) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adietish André Dietisheim
                Reporter:
                adietish André Dietisheim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: