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

Jolokia Connection errors are swallowed

XMLWordPrintable

    • Hide

      (hope that the other bug JBIDE-25288 triggering an error in Jolokia will be fixed soon but currently to reproduce you can: )

      • deploy a FIS application
      • create a server adapter
      • try to start the JMX connection

      videos to help:

      Show
      (hope that the other bug JBIDE-25288 triggering an error in Jolokia will be fixed soon but currently to reproduce you can: ) deploy a FIS application create a server adapter try to start the JMX connection videos to help: https://www.youtube.com/watch?v=Ko4mNaQsCvI&t=3s https://www.youtube.com/watch?v=lwN3qSWz6NY&t=16s (it will fail while starting the first steps on this one)

      even if it is better than before as we don't have a ClassCastException (see JBIDE-23869), as mentioned in my last comment the error reported by Jolokia when deployed on OpenShift is still swallowed.
      I have another use case for which I have:

      with stack in log

      !ENTRY org.jboss.tools.jmx.core 4 0 2017-10-24 13:27:33.523
      !MESSAGE An error occurred while opening the connection.
      !STACK 0
      java.io.IOException: Remote error status=404 (Invalid status of type java.lang.String('Failure') received)
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:326)
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.connect(JolokiaConnectionWrapper.java:115)
      	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:56)
      Caused by: org.jolokia.client.exception.J4pRemoteException: Invalid status of type java.lang.String('Failure') received
      	at org.jolokia.client.request.ValidatingResponseExtractor.extract(ValidatingResponseExtractor.java:67)
      	at org.jolokia.client.J4pClient.execute(J4pClient.java:195)
      	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:313)
      	... 4 more
      

      although when using a Rest client i have this error which contains far more information:

      {
      "kind": "Status",
      "apiVersion": "v1",
      "metadata": {},
      "status": "Failure",
      "message": "pods "camel-ose-springboot-xml-3-t99hx" not found",
      "reason": "NotFound",
      "details": {
      "name": "camel-ose-springboot-xml-3-t99hx",
      "kind": "pods"
      },
      "code": 404
      }
      

              rob.stryker Rob Stryker (Inactive)
              apupier@redhat.com Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: