Bug 1522731 - Attempt to execute disablePlugin, enablePlugin or deletePlugin methods (PluginManager) fails due to method is not supplied
Summary: Attempt to execute disablePlugin, enablePlugin or deletePlugin methods (Plugi...
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: CLI
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified vote
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Mike Foley
Depends On:
Blocks: 1522728
TreeView+ depends on / blocked
Reported: 2017-12-06 10:33 UTC by bkramer
Modified: 2020-04-27 01:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description bkramer 2017-12-06 10:33:20 UTC
Attempt to disablePlugin using RHQ CLI fails. I tried to do the following:

$ ./rhq-cli.sh -u rhqadmin -p rhqadmin -s test.usersys.redhat.com -t 7080
RHQ Enterprise Remote CLI 4.12.0.JON330GA Update 09
Remote server version is: 3.3.0.GA Update 09 (fcb34f1:80f74f5)
Login successful
rhqadmin@test.usersys.redhat.com:7080$  var pluginCriteria = PluginCriteria();
rhqadmin@test.usersys.redhat.com:7080$ pluginCriteria.addFilterDisplayName("IIS");
rhqadmin@test.usersys.redhat.com:7080$ var plugins = PluginManager.findPluginsByCriteria(pluginCriteria); 
rhqadmin@test.usersys.redhat.com:7080$ var myPlugin = plugins.get(0);
rhqadmin@test.usersys.redhat.com:7080$ var pluginID = myPlugin.getId()
rhqadmin@test.usersys.redhat.com:7080$ var allPluginIDs = []
rhqadmin@test.usersys.redhat.com:7080$ allPluginIDs.push(pluginID);
rhqadmin@test.usersys.redhat.com:7080$ pretty.print(allPluginIDs);
one row
rhqadmin@test.usersys.redhat.com:7080$ PluginManager.disablePlugins(allPluginIDs);
org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)

and the following was logged in the server.log file:

15:49:37,153 ERROR [org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler] (http- Failed to invoke remote request: java.lang.IllegalArgumentException: InvocationRequest did not supply method.
	at org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler.invoke(RemoteSafeInvocationHandler.java:93) [rhq-server.jar:4.12.0.JON330GA-redhat-9]

15:49:37,159 DEBUG [org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler] (http- Remote request [null] execution time (ms): 6

The same happens when trying to invoke enablePlugin or deletePlugin methods. 

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

How reproducible:

Steps to Reproduce:

Actual results:
Plugins are not disabled and error is logged in the server.log file.

Expected results:
Selected plugins are disabled and no error is logged in the server.log file. 

Additional info:

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