'spacewalk-api' command is failing with "Fault returned from XML RPC Server Could not find translator for class java.lang.String to class java.lang.Integer"
Issue
spacwalk-apicommand fails with below message:
[root@mysatellite ~]# spacewalk-api --server=satellite.test.internal.com --user=***** --password=****** system.listPackages %session% system_id
Fault returned from XML RPC Server, fault code -1: com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to class java.lang.Intege
- The Satellite API script fails with below error,
/Ruby21-x64/lib/ruby/2.1.0/xmlrpc/client.rb:271:in `call': com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to class java.lang.Integer (XMLRPC::FaultException)
from ./set-rhs-software-channel.rb:17:in `<main>'
Environment
- Red Hat Satellite 5.x
- spacwalk-api
- Red Hat Satellite 5.x API script
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.