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

Server adapter: adapters for non-java app should not have a JMX child (double clicking it causes error)

    XMLWordPrintable

Details

    Description

      Most likely server adapters for non-java based apps should not have a jmx node.

      Steps to reproduce:

      1. ASSERT: make sure that you have a nodejs app (with a service) running in OpenShift (ex. created via nodejs-example template)
      2. ASSERT: make sure the build is finished, the pod is running.
      3. ASSERT: make sure that you have a server adapter for your service
      4. ASSERT: make sure that it is in "[Started, Synchronized]" state)
      5. EXEC: unfold the server adapter and double click on the JMX child

      Result:
      An error shows up

       
      java.io.IOException: org.jolokia.client.exception.J4pRemoteException: Service Unavailable 
      at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:328) 
      at org.jboss.tools.openshift.core.server.OpenshiftJMXConnectionProvider$1.verifyServerReachable(OpenshiftJMXConnectionProvider.java:83)
      at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.connect(JolokiaConnectionWrapper.java:111) 
      at org.jboss.tools.jmx.core.ConnectJob.run(ConnectJob.java:29) 
      at org.jboss.tools.jmx.ui.internal.actions.DoubleClickAction$1.run(DoubleClickAction.java:71) 
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 
      Caused by: org.jolokia.client.exception.J4pRemoteException: Service Unavailable at org.jolokia.client.J4pClient.extractJsonResponse(J4pClient.java:278) 
      at org.jolokia.client.J4pClient.execute(J4pClient.java:191) 
      at org.jolokia.client.J4pClient.execute(J4pClient.java:168) 
      at org.jolokia.client.J4pClient.execute(J4pClient.java:117) 
      at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:315) 
      

      Attachments

        Issue Links

          Activity

            People

              jmaury@redhat.com Jeff MAURY
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: