[Spacewalk-list] Clone channel method throwing error with Boolean

John Hodrien J.H.Hodrien at leeds.ac.uk
Tue Dec 1 14:37:18 UTC 2009


On Tue, 1 Dec 2009, Frey, Evan wrote:

> I am trying to clone a channel and am getting the error:
>
> Could not find translator for class java.lang.Integer to class java.lang.Boolean
>
> The XML being sent is
>
> <methodCall>
> <methodName>channel.software.clone</methodName>
> <params>
> <param><value><string>27371x472419c658e704bb6bda7359b27c67e8</string></value></param>
> <param><value><string>rh3as-i386</string></value></param>
> <param><value><struct>
> <member><name>summary</name><value><string>CentOS3</string></value></member>
> <member><name>name</name><value><string>CentOS3</string></value></member>
> <member><name>label</name><value><string>CentOS3</string></value></member>
> </struct></value>
> </param>
> <param><value><i4>1</i4></value></param>
> </params>
> </methodCall>
>
> I have tried 1, 0, true, false.  With true/false I get
>
> Could not find translator for class java.lang.String to class java.lang.Boolean
>
> How can I specify that the 1 is a Boolean?  I am using the Perl frontier module.

Snipped from a different bit of code...:

$client is the Frontier client.


my $isDir = 0;
$client->call('configchannel.createOrUpdatePath',$session,$label,$path,$client->boolean($isDir),
\%filestruct);


HTH,

jh




More information about the Spacewalk-list mailing list