Bug 534836 (RHQ-1594)

Summary: NPE when starting apache component
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: PluginsAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED NEXTRELEASE QA Contact: Pavel Kralik <pkralik>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: 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
NPE in Start() -- making RHQ-1182 untestable for the moment. Probably triggered by the latest SNMP-session closing code.


Comment 1 Heiko W. Rupp 2009-02-18 11:02:38 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.

Comment 2 Heiko W. Rupp 2009-02-18 12:02:19 UTC
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.

Comment 3 Pavel Kralik 2009-03-06 14:40:09 UTC
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

Comment 4 Red Hat Bugzilla 2009-11-10 20:36:18 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1594