Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12919

Unable to poll Vcenter CIM - Calling something in OpenJDK11 that has been removed.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 26.2.1
    • Fix Version/s: Meridian-2020.1.1, 27.0.0
    • Security Level: Default (Default Security Scheme)
    • Environment:
    • Sprint:
      Horizon 2020 - Sept 30-Oct 14
    • HB Backlog Status:
      Backlog

      Description

      Using the OpenNMS wiki: VMWare collector - OpenNMS Wiki
      I am at a loss as to how to proceed, do I need to remove OpenJDK11 and install 9 instead to get access to this function? I was attempting to use /usr/share/opennms/bin/vmwarecimquery to test connectivity to my Vcenter, this is the output:

      root@opennms:/usr/share/opennms# /usr/share/opennms/bin/vmwarecimquery vcenterfqdn openNMS@fqdn PASSWORD
      Trying to connect to (vcenterfqdn)... SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/usr/share/java/opennms/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.                                  parsers.AbstractSAXParser$LocatorProxy.getEncoding()
      WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
              at org.doublecloud.ws.util.ReflectUtil.setObjectField(ReflectUtil.java:120)
              at com.vmware.vim25.ws.XmlGenDom.fromXml(XmlGenDom.java:342)
              at com.vmware.vim25.ws.XmlGenDom.fromXML(XmlGenDom.java:240)
              at com.vmware.vim25.ws.XmlGenDom.fromXML(XmlGenDom.java:124)
              at com.vmware.vim25.ws.SoapClient.unMarshall(SoapClient.java:253)
              at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:96)
              at com.vmware.vim25.ws.VimStub.login(VimStub.java:1732)
              at com.vmware.vim25.mo.SessionManager.login(SessionManager.java:153)
              at com.vmware.vim25.mo.ServiceInstance.login(ServiceInstance.java:238)
              at com.vmware.vim25.mo.ServiceInstance.constructServiceInstance(ServiceInstance.java:131)
              at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:79)
              at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:69)
              at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:64)
              at org.opennms.protocols.vmware.ServiceInstancePool.create(ServiceInstancePool.java:83)
              at org.opennms.protocols.vmware.ServiceInstancePoolEntry.retain(ServiceInstancePoolEntry.java:73)
              at org.opennms.protocols.vmware.ServiceInstancePool.retain(ServiceInstancePool.java:93)
              at org.opennms.protocols.vmware.VmwareViJavaAccess.connect(VmwareViJavaAccess.java:213)
              at org.opennms.protocols.vmware.VmwareCimQuery.cimQuery(VmwareCimQuery.java:71)
              at org.opennms.protocols.vmware.VmwareCimQuery.main(VmwareCimQuery.java:210)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
              ... 19 more
      
      

      login/password and true FQDN obfuscated.

      The installation documentation here here supports JDK11.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cpape Christian Pape
              Reporter:
              tomaspland Tom Aspland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                HB Grooming Date:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 minutes
                  2m
                  Remaining:
                  Remaining Estimate - 2 minutes
                  2m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    Git Integration