'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"

Solution Verified - Updated -

Issue

  • spacwalk-api command 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.