Bug 576155

Summary: [apache] NPE during configuration update check in ApacheDirectoryComponent
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: PluginsAssignee: Filip Drabek <fdrabek>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: low    
Version: 3.0.0CC: fdrabek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:58:33 UTC 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: 577313    

Description Lukas Krejci 2010-03-23 12:31:09 UTC
Seen in the agent log:

2010-03-23 13:21:56,220 WARN  [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Unable to check for updated configuration
java.lang.NullPointerException
        at org.rhq.plugins.apache.mapping.ApacheAugeasMapping.updateConfiguration(ApacheAugeasMapping.java:58)
        at org.rhq.plugins.apache.ApacheDirectoryComponent.loadResourceConfiguration(ApacheDirectoryComponent.java:91)
        at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:636)

Comment 1 Corey Welton 2010-04-22 18:40:43 UTC
Repro steps?

Comment 2 Charles Crouch 2010-04-23 13:08:02 UTC
Filip to add repro steps

Comment 3 Filip Drabek 2010-05-11 19:59:15 UTC
1. Login to RHQ.
2. Navigate to an any Apache Directory resource
3. Navigate to the 'Configuration' tab of that resource
4. Click on 'Change Properties' button
5. Change any property of the configuration.
6. Click on 'Save' button.
7. Check if the value is saved or not.

Comment 4 Corey Welton 2010-05-13 13:09:49 UTC
QA Verified.  Tried adding/removing/setting these props, and they all get appropriately added to file.

Comment 5 Corey Welton 2010-08-12 16:58:33 UTC
Mass-closure of verified bugs against JON.