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

VMWare Importer - NPE while building vmwareTopologyInfo on ESX Hosts

    XMLWordPrintable

    Details

      Description

      2013-09-17 07:39:59,831 INFO [Provisiond:EventListener-Thread] EventIpcManagerDefaultImpl: run: calling onEvent on Provisiond:EventListener for event uei.opennms.org/internal/importer/reloadImport dbid 167 with time Tuesday, 17 September 2013 13:39:59 o'clock GMT
      2013-09-17 07:39:59,834 INFO [Provisiond:EventListener-Thread] Provisioner: doImport: importing from url: vmware://XXXXX/VMWare-Infrastructure...
      2013-09-17 07:39:59,868 INFO [importExecutor-1] CoreImportActivities: Loading requisition from resource URL [vmware://XXXXX/VMWare-Infrastructure]
      2013-09-17 07:40:30,146 INFO [importExecutor-1] CoreImportActivities: The import has been aborted, skipping audit phase import.
      2013-09-17 07:40:30,147 INFO [importExecutor-2] CoreImportActivities: The import has been aborted, skipping scan phase import.
      2013-09-17 07:40:30,148 INFO [importExecutor-1] CoreImportActivities: The import has been aborted, skipping relate phase.
      2013-09-17 07:40:30,155 ERROR [Provisiond:EventListener-Thread] Provisioner: Exception importing vmware://XXXXX/VMWare-Infrastructure
      org.opennms.netmgt.provision.service.ModelImportException: Import failed for resource URL [vmware://XXXXX/VMWare-Infrastructure]
      at org.opennms.netmgt.provision.service.Provisioner.importModelFromResource(Provisioner.java:408)
      at org.opennms.netmgt.provision.service.Provisioner.doImport(Provisioner.java:488)
      at org.opennms.netmgt.provision.service.Provisioner.doImport(Provisioner.java:461)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.opennms.netmgt.model.events.AnnotationBasedEventListenerAdapter.processEvent(AnnotationBasedEventListenerAdapter.java:212)
      at org.opennms.netmgt.model.events.AnnotationBasedEventListenerAdapter.onEvent(AnnotationBasedEventListenerAdapter.java:174)
      at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:173)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:90)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: org.opennms.core.xml.MarshallingResourceFailureException: Failed to perform IO while getting a configuration resource from spring: org.apache.commons.io.IOExceptionWithCause: Problem getting input stream: java.lang.NullPointerException; nested exception is org.apache.commons.io.IOExceptionWithCause: Problem getting input stream: java.lang.NullPointerException
      at org.opennms.core.xml.MarshallingExceptionTranslator.translate(MarshallingExceptionTranslator.java:55)
      at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:154)
      at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:147)
      at org.opennms.netmgt.provision.persist.AbstractForeignSourceRepository.importResourceRequisition(AbstractForeignSourceRepository.java:59)
      at org.opennms.netmgt.provision.persist.FusedForeignSourceRepository.importResourceRequisition(FusedForeignSourceRepository.java:96)
      at org.opennms.netmgt.provision.service.DefaultProvisionService.loadRequisition(DefaultProvisionService.java:880)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
      at com.sun.proxy.$Proxy79.loadRequisition(Unknown Source)
      at org.opennms.netmgt.provision.service.CoreImportActivities.loadSpecFile(CoreImportActivities.java:72)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod.doInvoke(Phase.java:191)
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod.access$100(Phase.java:157)
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod$1.run(Phase.java:174)
      at org.opennms.core.tasks.SyncTask.run(SyncTask.java:89)
      at org.opennms.core.tasks.SyncTask$1.run(SyncTask.java:100)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      ... 1 more
      Caused by: org.apache.commons.io.IOExceptionWithCause: Problem getting input stream: java.lang.NullPointerException
      at org.opennms.netmgt.provision.service.vmware.VmwareRequisitionUrlConnection.getInputStream(VmwareRequisitionUrlConnection.java:860)
      at org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:124)
      at org.opennms.core.xml.JaxbUtils.unmarshal(JaxbUtils.java:152)
      ... 32 more
      Caused by: java.lang.NullPointerException
      at org.opennms.netmgt.provision.service.vmware.VmwareRequisitionUrlConnection.createRequisitionNode(VmwareRequisitionUrlConnection.java:361)
      at org.opennms.netmgt.provision.service.vmware.VmwareRequisitionUrlConnection.iterateVirtualMachines(VmwareRequisitionUrlConnection.java:691)
      at org.opennms.netmgt.provision.service.vmware.VmwareRequisitionUrlConnection.buildVMwareRequisition(VmwareRequisitionUrlConnection.java:556)
      at org.opennms.netmgt.provision.service.vmware.VmwareRequisitionUrlConnection.getInputStream(VmwareRequisitionUrlConnection.java:825)
      ... 34 more

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: