Seen in the agent log: 2010-03-23 13:21:55,082 WARN [ConfigurationManager.threadpool-1] (rhq.core.pc.configuration.ConfigurationCheckExecutor)- Unable to check for updated configuration java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at org.rhq.plugins.apache.ApacheIfModuleComponent.getNode(ApacheIfModuleComponent.java:119) at org.rhq.plugins.apache.ApacheIfModuleComponent.loadResourceConfiguration(ApacheIfModuleComponent.java:86) 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)
This can probably happen when the parent directive of IfModule was deleted in configuration file. I will add error handeling.
commit f3aca43b79d01ee27555d9426ec31f7a1631f8db
Repro steps?
Steps to Reproduce: 1. Login to RHQ. 2. Navigate to an any apache httpd IfModule resource 3. Navigate to the 'Configuration' tab of main server. 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.
These steps seem confusing to me. 2. Navigate to an any apache httpd IfModule resource 3. Navigate to the 'Configuration' tab of main server. * Are we saying we navigate to an IfModule first and then the configuration tab of the main server? What does this do if we're not doing anything to the IfModule itself * What is the main server Is it the inventory item named "Main", or the <server>:80? * I don't see a 'Change Properties' button in either Main or <server>:80. There is an edit button however.
Sorry there had to be - configuration of the IfModule resource. Please test also the nested IfModules. Repro steps: 1) In httpd configuration file(/etc/httpd/conf/httpd.conf) create nested IfModule. For example : <IfModule prefork.c> MaxRequestsPerChild 10000 <IfModule test.c> StartServers 64 MinSpareServers 48 </IfModule> </IfModule> 2) Run command discovery -f on the agent 3) Login to server 4) find the IfModule resource with name test.c /this is the name from example/ 5) Navigate to the 'Configuration' tab of resource 6) Click on 'Change Properties' button 7) Change any property of the configuration 8) Click on 'Save' button. 9) Check if the value is saved or not.
QE Verified.
Mass-closure of verified bugs against JON.