MonitorAdmin - Returning null on Monitorable.getStatusVariable(name) causes
IllegalArgumentException in MonitoringJob
---------------------------------------------------------------------------------------------------------------------
Key: FELIX-812
URL: https://issues.apache.org/jira/browse/FELIX-812
Project: Felix
Issue Type: Bug
Components: Sandbox
Reporter: Martin Thelian
I have not found a clear statement in the OSGi spec if a Monitorable is allowed
to return null on getStatusVariable(name).
But let's assume that there is a Monitorable returning null in situations where
e.g. no measurement could be done then a MonitoringJob that monitors this
variable dies due to an IllegalArgumentException in
MonitoringJobImpl.updated(...)
The code fragment:
------------
|> public void updated(String monitorableId, StatusVariable statusVariable)
|> throws IllegalArgumentException {
|> [...]
|> if (statusVariable == null)
|> throw new IllegalArgumentException("null statusVariable");
|>
|> [...]
|> }
------------
I think the MonitoringJobImpl should just log an error and continue to monitor
all other registered variables.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.