Bug 727201 - NPE in RHQ Agent log trying to interact with down AS5 resource
Summary: NPE in RHQ Agent log trying to interact with down AS5 resource
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent
Version: 4.1
Hardware: All
OS: All
medium
low
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-01 14:28 UTC by Mike Foley
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
RHQ Agent Log (219.64 KB, application/octet-stream)
2011-08-01 14:28 UTC, Mike Foley
no flags Details

Description Mike Foley 2011-08-01 14:28:01 UTC
Created attachment 516152 [details]
RHQ Agent Log

Description of problem:  NPE in RHQ Agent log trying to interact with down AS5 resource.  Negative test.




Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1.  AS5 installed and inventoried.  but AS5 is not started.
2.  start agent.
3.  review agent log.
  
Actual results:
NPE


Expected results:
should never throw NPEs.  


Additional info:
2011-08-01 09:45:15,213 ERROR [ResourceContainer.invoker.daemon-2] (org.rhq.plugins.jbossas5.ApplicationServerComponent)- Failed to obtain metric 'MCBean|ServerConfig|*|partitionName'.
java.lang.NullPointerException
	at org.rhq.plugins.jbossas5.util.ManagedComponentUtils.getSimplePropertyValue(ManagedComponentUtils.java:67)
	at org.rhq.plugins.jbossas5.ApplicationServerComponent.getMetric(ApplicationServerComponent.java:562)
	at org.rhq.plugins.jbossas5.ApplicationServerComponent.getValues(ApplicationServerComponent.java:249)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	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:537)
	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)


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