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

WmiCollector does not work on Minion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 26.2.1
    • Fix Version/s: 27.0.4
    • Component/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2020 - Jan 6 - Jan 20, Horizon 2021 - Jan 20 - Feb 3
    • HB Backlog Status:
      Backlog CM

      Description

      The WmiCollector does not work via Minion as it attempts to load resource types from DataCollectionConfigFactory when it encounters a multi-instance object.

      ResourceType rt = DataCollectionConfigFactory.getInstance().getConfiguredResourceTypes().get(resourceType);

      which results in

      15:39:16.894 WARN [pool-147-thread-67] An error occured while executing a call in Collect.
      java.util.concurrent.CompletionException: java.lang.IllegalStateException: The factory has not been initialized
          at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
          at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) [?:?]
          at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) [?:?]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
          at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.IllegalStateException: The factory has not been initialized
          at org.opennms.netmgt.config.DataCollectionConfigFactory.getInstance(DataCollectionConfigFactory.java:100) ~[?:?]
          at org.opennms.netmgt.collectd.WmiCollector.getWmiResource(WmiCollector.java:269) ~[?:?]
          at org.opennms.netmgt.collectd.WmiCollector.collect(WmiCollector.java:183) ~[?:?]
          at Proxy64a356e1_3b10_42dd_ac75_742437cc73f5.collect(Unknown Source) ~[?:?]
          at org.opennms.netmgt.collection.client.rpc.CollectorClientRpcModule$1.get(CollectorClientRpcModule.java:83) ~[?:?]
          at org.opennms.netmgt.collection.client.rpc.CollectorClientRpcModule$1.get(CollectorClientRpcModule.java:77) ~[?:?]
          at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
          ... 3 more 

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            schlend David Schlenk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration