Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2391

Cannot access a Camel Route in JMX Navigator via Jolokia

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Critical
    • None
    • 9.2.0
    • JMX
    • None
    • Hide
      1. Create a new Fuse integration Project (CBR, blueprint, the latest Camel version)
      2. Run as Local Camel Context (to create a launch configuration)
      3. Stop the running Local Camel Context
      4. Go to Run --> Run Configurations... --> Local Camel Context --> select created launch configuration
      5. Switch to JRE tab and add new VM argument: -javaagent:path/to/jolokia-jvm-1.3.6-agent.jar
      6. Apply changes and hit Run button
      7. Notice: you should get something like Jolokia: Agent started with URL http://127.0.0.1:8778/jolokia/ in Console View
      8. Create a new connection in JMX Navigator
      9. New connection... --> Jolokia Connection
        1. Provide the name you want
        2. Use Jolokia URL from Console View (by default http://127.0.0.1:8778/jolokia)
        3. Click Finish
      10. Expand User-Defined Connections --> double-click on the connection to activate it
      Show
      Create a new Fuse integration Project (CBR, blueprint, the latest Camel version) Run as Local Camel Context (to create a launch configuration) Stop the running Local Camel Context Go to Run --> Run Configurations... --> Local Camel Context --> select created launch configuration Switch to JRE tab and add new VM argument: -javaagent:path/to/jolokia-jvm-1.3.6-agent.jar Apply changes and hit Run button Notice: you should get something like Jolokia: Agent started with URL http://127.0.0.1:8778/jolokia/ in Console View Create a new connection in JMX Navigator New connection... --> Jolokia Connection Provide the name you want Use Jolokia URL from Console View (by default http://127.0.0.1:8778/jolokia ) Click Finish Expand User-Defined Connections --> double-click on the connection to activate it

    Description

      I'm unable to connect to a Camel Route in JMX Navigator via Jolokia on my machine - Fedora 25, Oracle JDK 1.8.0_111

      eclipse.buildId=10.4.0.GA-v20170427-0526-B16
      java.version=1.8.0_111
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product -pluginCustomization /home/tsedmik/devel/git/jbds-installer/devstudio-is-10.3.0.CR1/resources/pluginCustomization.ini
      Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product -pluginCustomization /home/tsedmik/devel/git/jbds-installer/devstudio-is-10.3.0.CR1/resources/pluginCustomization.ini -data /home/tsedmik/devel/git/jbds-installer/devstudio-is-10.3.0.CR1/target/tmp -clean
      
      org.jboss.tools.jmx.core
      Error
      Tue May 02 19:14:31 CEST 2017
      Error executing JMX request.
      
      java.io.IOException: org.jolokia.client.exception.J4pRemoteException: Not Found
      	at org.jboss.tools.jmx.jolokia.internal.connection.JolokiaMBeanServerConnection.queryNames(JolokiaMBeanServerConnection.java:140)
      	at org.jboss.tools.jmx.core.tree.NodeUtils$1.run(NodeUtils.java:58)
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.run(JolokiaConnectionWrapper.java:335)
      	at org.jboss.tools.jmx.core.tree.NodeUtils.createObjectNameTree(NodeUtils.java:54)
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.loadRoot(JolokiaConnectionWrapper.java:141)
      	at org.jboss.tools.jmx.ui.internal.views.navigator.MBeanExplorerContentProvider$1.run(MBeanExplorerContentProvider.java:192)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: org.jolokia.client.exception.J4pRemoteException: Not Found
      	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.jboss.tools.jmx.jolokia.internal.connection.JolokiaMBeanServerConnection.queryNames(JolokiaMBeanServerConnection.java:135)
      	... 6 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tsedmik Tomáš Sedmík
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: