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

Frey, Evan evan.frey at us.mizuho-sc.com
Tue Dec 1 15:04:40 UTC 2009


That worked perfectly, thanks! 

-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of John Hodrien
Sent: Tuesday, December 01, 2009 9:37 AM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Clone channel method throwing error with
Boolean

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></m
> ember> 
> <member><name>name</name><value><string>CentOS3</string></value></memb
> er> 
> <member><name>label</name><value><string>CentOS3</string></value></mem
> ber>
> </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,$clien
t->boolean($isDir),
\%filestruct);


HTH,

jh

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
CONFIDENTIAL: This e-mail, including its contents and attachments,
if any, are confidential. It is neither an offer to buy or sell,
nor a solicitation of an offer to buy or sell, any securities or
any related financial instruments mentioned in it. If you are not
the named recipient please notify the sender and immediately delete
it. You may not disseminate, distribute, or forward this e-mail
message or disclose its contents to anybody else. Unless otherwise
indicated, copyright and any other intellectual property rights in
its contents are the sole property of Mizuho Securities USA Inc.
     E-mail transmission cannot be guaranteed to be secure or
error-free. The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as
a result of e-mail transmission.  If verification is required
please request a hard-copy version.
     Although we routinely screen for viruses, addressees should
check this e-mail and any attachments for viruses. We make no
representation or warranty as to the absence of viruses in this
e-mail or any attachments. Please note that to ensure regulatory
compliance and for the protection of our customers and business, we
may monitor and read e-mails sent to and from our server(s).
#####################################################################################




More information about the Spacewalk-list mailing list