Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10370

Java Gateway cannot connect to remote JMX server if RMI registry is forced by SSL

XMLWordPrintable

    • Sprint 72 (Jan 2021), Sprint 73 (Feb 2021)
    • 2

      I've tested it with glassfish and one needs to do

      HashMap envSSL = new HashMap<>(env != null ? env : Collections.emptyMap());
      envSSL.put("com.sun.jndi.rmi.factory.socket", new SslRMIClientSocketFactory());
      jmxc = JMXConnectorFactory.connect(url, envSSL);
      

      Before

      jmxc = JMXConnectorFactory.connect(url, envSSL);
      

      Failing to do this returns in IOEXceptiom:

      non-JRMP server at remote endpoint
      

            arimdjonoks Artjoms Rimdjonoks
            pranahata Pablo
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: