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

Can't import a requisition when OpenNMS is installed in "C:\Program Files\OpenNMS"

    XMLWordPrintable

    Details

      Description

      If OpenNMS is installed on a Windows 7/2008 machine under “C:\Program Files\OpenNMS” (this is the default directory suggested by the setup program), it is not possible to import a requisition into the database. The error occurs because the directory contains a space between "Program" and "Files". If I install OpenNMS in "C:\OpenNMS" the import of the requisition works without any problems. If it is installed in "C:\Open NMS" (with a space) you cannot import the requisition.

      In the Web-UI…
      1. Admin -> Manage Provisioning Requisitions.
      2. Enter “HoeftWessel” in the Edit-Field and click “Add New Requisition”.
      3. Edit the Requisition.
      4. Click “Add Node”.
      5. Enter “Allegro LS 61201765” in the Edit-Field and click “Save”.
      6. Click “Add Interface”, enter “172.26.26.73” in the “IP interface” Field and click “Save”.
      7. Click “Add Service”, choose “SNMP” and save.
      8. Click “Add Service”, choose “ICMP” and save.
      9. Click “Done”.
      10. Requisition: “1 nodes defined, 0 nodes in database”, “Last Modified: 2014-01-13T12:47:19.313+01:00”, “Last Synchronization Requested: Never”.
      11. Click “Synchronize”.
      12. Requisition: “1 nodes defined, 0 nodes in database”, “Last Modified: 2014-01-13T12:47:19.313+01:00”, “Last Synchronization Requested: Never”.
      13. The “Node List” does not contain the new node.

      provisiond.log snippet:

      2014-01-20 15:48:06,811 INFO [Provisiond:EventListener-Thread] EventIpcManagerDefaultImpl: run: calling onEvent on Provisiond:EventListener for event uei.opennms.org/internal/importer/reloadImport dbid 713 with time Montag, 20. Januar 2014 14:48:06 GMT
      2014-01-20 15:48:06,811 INFO [Provisiond:EventListener-Thread] Provisioner: doImport: importing from url: file:/C:/Program%20Files/OpenNMS/etc/imports/pending/HoeftWessel.xml...
      2014-01-20 15:48:06,815 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Set up default lifecycle instance
      2014-01-20 15:48:06,817 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase validate to lifecycle
      2014-01-20 15:48:06,817 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase audit to lifecycle
      2014-01-20 15:48:06,817 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase scan to lifecycle
      2014-01-20 15:48:06,818 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase delete to lifecycle
      2014-01-20 15:48:06,818 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase update to lifecycle
      2014-01-20 15:48:06,818 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase insert to lifecycle
      2014-01-20 15:48:06,818 DEBUG [Provisiond:EventListener-Thread] DefaultLifeCycleInstance: Adding phase relate to lifecycle
      2014-01-20 15:48:06,823 INFO [importExecutor-1] CoreImportActivities: Loading requisition from resource URL file:/C:/Program%20Files/OpenNMS/etc/imports/pending/HoeftWessel.xml
      2014-01-20 15:48:06,823 DEBUG [importExecutor-1] FilesystemForeignSourceRepository: importing requisition from URL file:/C:/Program%20Files/OpenNMS/etc/imports/pending/HoeftWessel.xml
      2014-01-20 15:48:06,824 DEBUG [importExecutor-1] SimpleNamespaceFilter: SimpleNamespaceFilter initalized with namespace http://xmlns.opennms.org/xsd/config/model-import (true)
      2014-01-20 15:48:06,826 DEBUG [importExecutor-1] FilesystemForeignSourceRepository: Writing requisition HoeftWessel to C:/Program Files/OpenNMS/etc/imports
      2014-01-20 15:48:06,829 DEBUG [importExecutor-1] SimpleNamespaceFilter: SimpleNamespaceFilter initalized with namespace http://xmlns.opennms.org/xsd/config/foreign-source (true)
      2014-01-20 15:48:06,831 DEBUG [importExecutor-1] SimpleNamespaceFilter: SimpleNamespaceFilter initalized with namespace http://xmlns.opennms.org/xsd/config/foreign-source (true)
      2014-01-20 15:48:06,832 DEBUG [importExecutor-1] FilesystemForeignSourceRepository: Writing foreign source HoeftWessel to C:/Program Files/OpenNMS/etc/foreign-sources
      2014-01-20 15:48:06,835 DEBUG [importExecutor-1] FilesystemForeignSourceRepository: Deleting foreign source HoeftWessel from C:/Program Files/OpenNMS/etc/foreign-sources/pending (if necessary)
      2014-01-20 15:48:06,836 DEBUG [importExecutor-1] SimpleNamespaceFilter: SimpleNamespaceFilter initalized with namespace http://xmlns.opennms.org/xsd/config/model-import (true)
      2014-01-20 15:48:06,839 INFO [importExecutor-1] CoreImportActivities: The import has been aborted, skipping audit phase import.
      2014-01-20 15:48:06,839 INFO [importExecutor-2] CoreImportActivities: The import has been aborted, skipping scan phase import.
      2014-01-20 15:48:06,840 INFO [importExecutor-1] CoreImportActivities: The import has been aborted, skipping relate phase.
      2014-01-20 15:48:06,840 ERROR [Provisiond:EventListener-Thread] Provisioner: Exception importing file:/C:/Program%20Files/OpenNMS/etc/imports/pending/HoeftWessel.xml
      org.opennms.netmgt.provision.service.ModelImportException: Import failed for resource URL file:/C:/Program%20Files/OpenNMS/etc/imports/pending/HoeftWessel.xml
      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:744)
      Caused by: java.lang.NullPointerException
      at org.opennms.netmgt.provision.persist.RequisitionFileUtils.findSnapshots(RequisitionFileUtils.java:106)
      at org.opennms.netmgt.provision.persist.FusedForeignSourceRepository.cleanUpSnapshots(FusedForeignSourceRepository.java:229)
      at org.opennms.netmgt.provision.persist.FusedForeignSourceRepository.importResourceRequisition(FusedForeignSourceRepository.java:100)
      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

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              thomas Thomas Hein
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: