[Spacewalk-list] failure calling actionchain.scheduleChain from XMLRPC

Gerald Vogt vogt at spamcop.net
Wed Oct 30 20:39:53 UTC 2019


On 30.10.19 20:31, Guy Matz wrote:
> I'm getting the same error using system.scheduleScriptRun using the date 
> '2019-10-30T15:26:54'
> Fault: <Fault -1: 
> 'com.redhat.rhn.common.translation.TranslationException: Could not find 
> translator for class java.lang.String to class java.util.Date'>

XMLRPC is typed. It generally doesn't automagically convert types. You 
are passing a string instead of dateTime.iso8601 type.
Compare http://xmlrpc.scripting.com/spec.html

Basically you pass a string 
'<value><string>2019-10-30T15:26:54<string></value>' instead of datetime 
value 
'<value><dateTime.iso8601>20191030T15:26:54><dateTime.iso8601></value>'.

How to pass the correct type of object depends on the client you use. 
For instance, if you use the python xmlrpc client you would have to use 
the python DateTime type for the parameter.
See https://docs.python.org/3/library/xmlrpc.client.html

I don't know which client language you use.

Cheers,

Gerald





More information about the Spacewalk-list mailing list