Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.11.94
-
Fix Version/s: 17.0.0
-
Component/s: Architecture
-
Security Level: Default (Default Security Scheme)
-
Labels:None
-
Environment:Ubuntu 10.04 with OpenJDK 6
Description
Found this exception in the misc.log. It appears that statsd searched for RRD data using the storeByForeignSource strategy even though it is not enabled in opennms.properties. Strange thing is that it only happened for this one node.
2013-08-06 01:21:20,765 ERROR [Statsd_Worker-1] ErrorLogger: Job (DEFAULT.Top 20 ifInOctets across all nodes threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'runReport' on target class [class org.opennms.netmgt.statsd.Statsd] failed; nested exception is org.springframework.orm.ObjectRetrievalFailureException: Object of class [java.io.File] with identifier [No directory exists for nodeSource BD-Operations:1361526956615]: not found]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'runReport' on target class [class org.opennms.netmgt.statsd.Statsd] failed; nested exception is org.springframework.orm.ObjectRetrievalFailureException: Object of class [java.io.File] with identifier [No directory exists for nodeSource BD-Operations:1361526956615]: not found
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
Caused by: org.springframework.orm.ObjectRetrievalFailureException: Object of class [java.io.File] with identifier [No directory exists for nodeSource BD-Operations:1361526956615]: not found
at org.opennms.netmgt.dao.support.NodeSnmpResourceType.isResourceTypeOnNodeSource(NodeSnmpResourceType.java:139)
at org.opennms.netmgt.dao.support.NodeSourceResourceType$NodeSourceChildResourceLoader.getResourceTypesForNodeSource(NodeSourceResourceType.java:171)
at org.opennms.netmgt.dao.support.NodeSourceResourceType$NodeSourceChildResourceLoader.load(NodeSourceResourceType.java:157)
at org.opennms.core.utils.LazyList.load(LazyList.java:156)
at org.opennms.core.utils.LazyList.iterator(LazyList.java:60)
at org.opennms.netmgt.dao.support.ResourceTreeWalker.walk(ResourceTreeWalker.java:62)
at org.opennms.netmgt.dao.support.ResourceTreeWalker.walk(ResourceTreeWalker.java:64)
at org.opennms.netmgt.dao.support.ResourceTreeWalker.walk(ResourceTreeWalker.java:53)
at org.opennms.netmgt.statsd.UnfilteredReportInstance.walk(UnfilteredReportInstance.java:93)
at org.opennms.netmgt.statsd.Statsd$1.doInTransactionWithoutResult(Statsd.java:222)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.opennms.netmgt.statsd.Statsd.runReport(Statsd.java:219)
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:616)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
... 3 more