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

Exception messages during node import (log noise)

    XMLWordPrintable

Details

    • Horizon 2020 - Jan 6 - Jan 20

    Description

      When importing nodes, it is possible to see exceptions like below in the logs. The exception is harmless but may be confusing to users, and it would be nice to silence them.

       

      2020-10-25 14:59:03,175 ERROR [importExecutor-1] o.o.n.p.p.FasterFilesystemForeignSourceRepository: importResourceRequisition: can't save cached requisition associated with file [/opt/opennms/etc/imports/pending/requisition-test.xml.1603652342888]
      java.io.FileNotFoundException: there is no file called 'requisition-test.xml.1603652342888' in directory /opt/opennms/etc/imports
      at org.opennms.netmgt.provision.persist.DirectoryWatcher.getContents(DirectoryWatcher.java:257) ~[opennms-provision-persistence-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.netmgt.provision.persist.FasterFilesystemForeignSourceRepository.importResourceRequisition(FasterFilesystemForeignSourceRepository.java:92) [opennms-provision-persistence-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.netmgt.provision.persist.FusedForeignSourceRepository.importResourceRequisition(FusedForeignSourceRepository.java:97) [opennms-provision-persistence-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.netmgt.provision.service.DefaultProvisionService.loadRequisition(DefaultProvisionService.java:958) [opennms-provisiond-26.1.3-SNAPSHOT.jar:?]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) [org.apache.servicemix.bundles.spring-aop-4.2.9.RELEASE_1.jar:?]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [org.apache.servicemix.bundles.spring-aop-4.2.9.RELEASE_1.jar:?]
      at com.sun.proxy.$Proxy183.loadRequisition(Unknown Source) [?:?]
      at org.opennms.netmgt.provision.service.CoreImportActivities.loadSpecFile(CoreImportActivities.java:74) [opennms-provisiond-26.1.3-SNAPSHOT.jar:?]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod.doInvoke(Phase.java:196) [opennms-provisiond-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod.access$100(Phase.java:160) [opennms-provisiond-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.netmgt.provision.service.lifecycle.Phase$PhaseMethod$1.run(Phase.java:178) [opennms-provisiond-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.core.tasks.SyncTask.run(SyncTask.java:88) [org.opennms.core.tasks-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.core.tasks.SyncTask.access$000(SyncTask.java:41) [org.opennms.core.tasks-26.1.3-SNAPSHOT.jar:?]
      at org.opennms.core.tasks.SyncTask$1.run(SyncTask.java:100) [org.opennms.core.tasks-26.1.3-SNAPSHOT.jar:?]
      at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1640) [?:1.8.0_265]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_265]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_265]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_265]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_265]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_265]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_265]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_265]

      Attachments

        Activity

          People

            zoe Zoë Knox
            zoe Zoë Knox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: