Bug 534836 (RHQ-1594)
Summary: | NPE when starting apache component | ||
---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Heiko W. Rupp <hrupp> |
Component: | Plugins | Assignee: | Heiko W. Rupp <hrupp> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Pavel Kralik <pkralik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.2 | CC: | mvecera |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://jira.rhq-project.org/browse/RHQ-1594 | ||
Whiteboard: | |||
Fixed In Version: | 1.2 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | --- | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 534380 |
Description
Heiko W. Rupp
2009-02-18 10:24:00 UTC
After the initial NPE has been eliminated:
Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=httpd,process|basename|nomatch|parent=httpd], name=[HttpdOnUnix]], process=[process: pid=[3287], name=[httpd], ppid=[1]]
An error occurred running the discovery. Cause: java.lang.reflect.UndeclaredThrowableException:null -> org.rhq.plugins.www.snmp.SNMPException:java.lang.IllegalStateException: Timer already cancelled. (while invoking: ping())
>
This comes from the fact that closing the session does not clean up the SessionCache map, which in turn returns an outdated Proxy object.
How to test: - plugin should not throw errors in inventory when configuring plugin config - 'discovery' command on agent command line should not abort (due to this plugin) - 'Time to ping metric' (see RHQ-1182) should show values after the plugin is correctly configured. Tested all the test steps specified above. RHEL5.3, x86_64, PostgreSQL8.2.4, java 1.6.0_11, httpd 2.2.3, JON RHQ SVN rev# 3238 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1594 |