#4551 [HHQ-4514] ActiveMQ plugin - cannot execute control action s

Bug
open
None
5
2012-10-09
2010-12-15
No

http://jira.hyperic.com/browse/HHQ-4514
ActiveMQ plugin - cannot execute control action start on ActiveMQ broker.



After successfully stopping the ActiveMQ broker through the control actions, issusing a start control action fails and reports Error:



Method 'start' invocation error [org.apache.activemq:Type=Broker,BrokerName=localhost]: java.io.IOException: State.Name.sw=java,Args.*.eq=-Dactivemq.home=/opt/activemq/apache-activemq-5.4.2 org.hyperic.sigar.SigarException: Query did not match any processes



The agent.log reports:


2010-12-14 16:40:55,749 DEBUG [Thread-62] [ActionThread] Adding job 10505 to 3:19948 queue


2010-12-14 16:40:55,749 DEBUG [Thread-62] [ActionThread] Running job 10505


2010-12-14 16:40:55,749 DEBUG [Thread-62] [MxControlPlugin] invoking start []


2010-12-14 16:40:55,754 ERROR [Thread-62] [MxControlPlugin] Method 'start' invocation error [org.apache.activemq:Type=Broker,BrokerName=localhost]: java.io.IOException: State.Name.sw=java,Args..eq=-Dactivemq.home=/opt/activemq/apache-activemq-5.4.2 org.hyperic.sigar.SigarException: Query did not match any processes


org.hyperic.hq.product.PluginException: Method 'start' invocation error [org.apache.activemq:Type=Broker,BrokerName=localhost]: java.io.IOException: State.Name.sw=java,Args.
.eq=-Dactivemq.home=/opt/activemq/apache-activemq-5.4.2 org.hyperic.sigar.SigarException: Query did not match any processes


at org.hyperic.hq.product.jmx.MxUtil.error(MxUtil.java:194)


at org.hyperic.hq.product.jmx.MxUtil.invoke(MxUtil.java:683)


at org.hyperic.hq.product.jmx.MxControlPlugin.invokeMethod(MxControlPlugin.java:126)


at org.hyperic.hq.product.jmx.MxControlPlugin.invokeMethod(MxControlPlugin.java:115)


at org.hyperic.hq.product.jmx.MxControlPlugin.doAction(MxControlPlugin.java:90)


at org.hyperic.hq.product.ControlPlugin.doAction(ControlPlugin.java:94)


at org.hyperic.hq.product.ControlPluginManager.doAction(ControlPluginManager.java:157)


at org.hyperic.hq.control.agent.server.ActionThread.run(ActionThread.java:110)


Caused by: java.io.IOException: State.Name.sw=java,Args.*.eq=-Dactivemq.home=/opt/activemq/apache-activemq-5.4.2 org.hyperic.sigar.SigarException: Query did not match any processes


at org.hyperic.hq.product.jmx.MxUtil.getUrlFromPid(MxUtil.java:399)


at org.hyperic.hq.product.jmx.MxUtil.getMBeanConnector(MxUtil.java:439)


at org.hyperic.hq.product.jmx.MxUtil.invoke(MxUtil.java:649)


... 6 more


2010-12-14 16:40:55,755 DEBUG [Thread-62] [ActionThread] Removed job 10505 from the queue



Expected Result:


Control actions function successfully when they are presented.



Actual Result:


Control action start fails and reports error when executed.



Steps to Reproduce:


1. Install and start agent on platform running ActiveMQ


2. Log into Hyperic.


3. Add ActiveMQ platform in to inventory from auto-discovery


4. Select ActiveMQ platform -> ActiveMQ server -> ActiveMQ broker


5. Select Control tab


6. Select Start from Control Action drop down list


7. Click Execute (play) button


8. Note Start operation fails and reports error

Discussion


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks