Bug 1522731

Summary: Attempt to execute disablePlugin, enablePlugin or deletePlugin methods (PluginManager) fails due to method is not supplied
Product: [Other] RHQ Project Reporter: bkramer <bkramer>
Component: CLIAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1522728    

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.redhat.com:7080$  var pluginCriteria = PluginCriteria();
rhqadmin.redhat.com:7080$ pluginCriteria.addFilterDisplayName("IIS");
rhqadmin.redhat.com:7080$ var plugins = PluginManager.findPluginsByCriteria(pluginCriteria); 
rhqadmin.redhat.com:7080$ var myPlugin = plugins.get(0);
rhqadmin.redhat.com:7080$ var pluginID = myPlugin.getId()
rhqadmin.redhat.com:7080$ var allPluginIDs = []
rhqadmin.redhat.com:7080$ allPluginIDs.push(pluginID);
1.0
rhqadmin.redhat.com:7080$ pretty.print(allPluginIDs);
one row
10005
rhqadmin.redhat.com:7080$ PluginManager.disablePlugins(allPluginIDs);
org.jboss.remoting.CannotConnectException: Can not connect http client invoker after 1 attempt(s)
PluginManager.disablePlugins(allPluginIDs); 
^
*************************************************

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

*************************************************
15:49:37,153 ERROR [org.rhq.enterprise.server.remote.RemoteSafeInvocationHandler] (http-10.36.116.237:7080-1) 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-10.36.116.237:7080-1) 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:
Always

Steps to Reproduce:
1.
2.
3.

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: