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

Cannot connect to JMX through OpenShift Server adapter to a project without route specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.4.4.Final
    • 4.4.4.AM3
    • openshift
    • None
    • Hide
      • install through development suite installer (please note that I'm using the latest nightly based on CDK 3.0)
      • install Fuse Tooling
      • (I recommened to upgrade to latest version http://download.jboss.org/jbosstools/neon/integration/updates/integration-stack/fuse-tooling/9.2.0.CI )
      • start the cdk
      • create an openshift project "test"
      • Create a Fuse Integration project
        • choose OpenShift template on last wizard page
      • right-click Run as...
      • select the Deploy on openshift maven launch configuration and configure it to match your OpenShift environment
      • launch it
      • create OpenShift Server Adapter
      • double-click the JMX node in OpenShift serve adapter tree in Servers view
        --> Cannot connect exception
        • the hostname is obviously missing
      Show
      install through development suite installer (please note that I'm using the latest nightly based on CDK 3.0) install Fuse Tooling (I recommened to upgrade to latest version http://download.jboss.org/jbosstools/neon/integration/updates/integration-stack/fuse-tooling/9.2.0.CI ) start the cdk create an openshift project "test" Create a Fuse Integration project choose OpenShift template on last wizard page right-click Run as... select the Deploy on openshift maven launch configuration and configure it to match your OpenShift environment launch it create OpenShift Server Adapter double-click the JMX node in OpenShift serve adapter tree in Servers view --> Cannot connect exception the hostname is obviously missing

      in log:

      eclipse.buildId=10.4.0.AM3-v20170406-1058-B390
      java.version=1.8.0_112
      java.vendor=Oracle Corporation
      BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
      Framework arguments:  -product com.jboss.devstudio.core.product
      Command-line arguments:  -data file:/C:/ws-devsuite-1.4.0-170425/ -os win32 -ws win32 -arch x86_64 -product com.jboss.devstudio.core.product
      
      org.jboss.tools.jmx.core
      Error
      Tue Apr 25 14:47:14 CEST 2017
      An error occurred while opening the connection.
      
      java.io.IOException: org.jolokia.client.exception.J4pException: IO-Error while contacting the server: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:324)
      	at org.jboss.tools.openshift.core.server.OpenshiftJMXConnectionProvider$1.verifyServerReachable(OpenshiftJMXConnectionProvider.java:80)
      	at org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.connect(JolokiaConnectionWrapper.java:113)
      	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.J4pException: IO-Error while contacting the server: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
      	at org.jolokia.client.J4pClient.mapException(J4pClient.java:333)
      	at org.jolokia.client.J4pClient.execute(J4pClient.java:198)
      	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:311)
      	... 5 more
      Caused by: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
      	at org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:94)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
      	at org.jolokia.client.J4pClient.execute(J4pClient.java:190)
      	... 8 more
      

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

              Created:
              Updated:
              Resolved: