collection:collect command fails with ClassCastException
Description
Since the refactoring done as part of , invoking the SnmpCollector via the collection:collect command in the Karaf shell fails with a ClassCastException.
We need to address this so that the command works again.
Also, this same error message previously appeared when the collector was invoked without specifying a node id. We could also take advantage of this opportunity to fail with a clearer exception.
While that was the original intent, there were some code changes made in the scope of - see the links to the PRs in the issue for details.
Markus von Rüden March 26, 2018 at 11:47 AM
I am confused by the relation to as the issue is supposed to be an "investigation or evaluation issue". Can you elaborate ?
Jesse White February 21, 2018 at 2:04 PM
Work to address this was initially performed in the jira/HZN-1202-fix-agent branch, but as discussed in https://github.com/OpenNMS/opennms/pull/1831/files I'd like to take a different approach that doesn't involve implementing the CollectionAgentFactory in the command itself.
Since the refactoring done as part of , invoking the
SnmpCollector
via thecollection:collect
command in the Karaf shell fails with aClassCastException
.We need to address this so that the command works again.
Also, this same error message previously appeared when the collector was invoked without specifying a node id. We could also take advantage of this opportunity to fail with a clearer exception.