
|
If you were logged in you would be able to see more operations.
|
|
|
RHQ Project
Created: 16/Sep/08 07:33 AM
Updated: 18/Dec/08 08:25 AM
|
|
| Component/s: |
Plugins
|
| Affects Version/s: |
1.0,
1.0.1,
1.1pre
|
| Fix Version/s: |
1.2
|
|
|
Environment:
|
Copied over from JBNADM-3481
|
|
Issue Links:
|
Relation
|
|
|
|
This issue Is Related To:
|
|
RHQ-627
Apache plugin operations show success even when they fail due to lack of SNMP support
|
|
|
|
|
RHQ-625
Apache plugin ControlScriptPath property not defaulting
|
|
|
|
|
|
|
| Resolution Date: |
28/Nov/08 01:27 PM
|
| Date of First Response: |
18/Dec/08 08:25 AM
|
| Tester: |
Corey Welton
|
| VCS Revision: |
2,131
|
|
Manually taking an apache instance into inventory with a NPE, when only the server root is given, but not the path to the httpd.
This is possibly due to the fact that my httpd 2.0.x is called httpd and not apache2
Caused by: java.lang.NullPointerException
at org.rhq.plugins.apache.ApacheServerComponent.getExecutablePath(ApacheServerComponent.java:278)
at org.rhq.plugins.apache.ApacheServerComponent.start(ApacheServerComponent.java:136)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:446)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
Binary info is null here on first manual add:
if (systemInfo.getOperatingSystemType() != OperatingSystemType.WINDOWS) // UNIX
{
if (this.binaryInfo.getVersion().startsWith("2.")) { // <<<<<------- HERE
executableFile = new File(serverRoot, "bin/apache2");
} else {
executableFile = new File(serverRoot, "bin/httpd");
}
Later on, this code block fails again, as a httpd2 does not necessarily need to be called apache2
Workaround: give the full data for Server Root, Executable Path and Control Script Path
|
|
Description
|
Manually taking an apache instance into inventory with a NPE, when only the server root is given, but not the path to the httpd.
This is possibly due to the fact that my httpd 2.0.x is called httpd and not apache2
Caused by: java.lang.NullPointerException
at org.rhq.plugins.apache.ApacheServerComponent.getExecutablePath(ApacheServerComponent.java:278)
at org.rhq.plugins.apache.ApacheServerComponent.start(ApacheServerComponent.java:136)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:446)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
Binary info is null here on first manual add:
if (systemInfo.getOperatingSystemType() != OperatingSystemType.WINDOWS) // UNIX
{
if (this.binaryInfo.getVersion().startsWith("2.")) { // <<<<<------- HERE
executableFile = new File(serverRoot, "bin/apache2");
} else {
executableFile = new File(serverRoot, "bin/httpd");
}
Later on, this code block fails again, as a httpd2 does not necessarily need to be called apache2
Workaround: give the full data for Server Root, Executable Path and Control Script Path |
Show » |
|