Bug 534836 (RHQ-1594) - NPE when starting apache component
Summary: NPE when starting apache component
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-1594
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 1.2
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact: Pavel Kralik
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks: RHQ-1182
TreeView+ depends on / blocked
 
Reported: 2009-02-18 10:24 UTC by Heiko W. Rupp
Modified: 2013-04-30 23:32 UTC (History)
1 user (show)

Fixed In Version: 1.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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



Note You need to log in before you can comment on or make changes to this bug.