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

vmwareconfigbuilder and vmwarecimquery not working anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 28.0.0
    • Fix Version/s: 28.0.2
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2021 - Jul 7 - Jul 21

      Description

      I upgraded my vSphere environment from v6.7 to v7.0. When I tried to generate the new data collection config for v7.0 I realized that the two VMware-related scripts vmwareconfigbuilder and vmwarecimquery in opennms/bin are not working anymore. Both fail with the same exception:

      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.VmwareConfigBuilder.generateData(VmwareConfigBuilder.java:277)
      	at org.opennms.protocols.vmware.VmwareConfigBuilder.main(VmwareConfigBuilder.java:537)
      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:521)
      	... 15 more
      

      Looks like they need some more JAR-files in order to work with JDK11.

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            cpape Christian Pape
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration