Hi Carlos,<div><br></div><div> Could you explain more on this </div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="background-color: rgb(255, 0, 0);"> </span><span class="Apple-style-span" style="background-color: rgb(255, 0, 0);">you are using a different library version from the one included in our source</span></div>
<div><br></div><div>Regards,</div><div>Srivatsan J.<br><br><div class="gmail_quote">2011/9/21 Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org">cmartin@opennebula.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>I've tried to reproduce it feeding your xml string to the <a href="http://host.info" target="_blank">host.info</a> method, but it still works for me.<br>That "Unknown type: string" error seems to come from the Apache XML-RPC library.<br>
The only thing I can think of is that maybe you are using a different library version from the one included in our source.<div class="im"><br><br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">2011/9/20 srivatsan jagannathan <span dir="ltr"><<a href="mailto:srivatsanjn@gmail.com" target="_blank">srivatsanjn@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div><br></div><div><font color="#ff0000">OpenNebula version 2.2</font></div><div><div><font color="#ff0000">onehost list</font></div><div> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT</div>
<div> 18 cloud9 default <a href="tel:0%20%C2%A0%202400%20%C2%A0%202400" value="+4624002400" target="_blank">0 2400 2400</a> 2400 63G 61.6G on</div><div><font color="#ff0000">onehost show 18 -x</font></div>
<div><HOST></div><div> <ID>18</ID></div>
<div> <NAME>cloud9</NAME></div><div> <STATE>2</STATE></div><div> <IM_MAD>im_kvm</IM_MAD></div><div> <VM_MAD>vmm_kvm</VM_MAD></div><div> <TM_MAD>tm_nfs</TM_MAD></div>
<div> <LAST_MON_TIME>1316541929</LAST_MON_TIME></div><div> <CLUSTER>default</CLUSTER></div><div> <HOST_SHARE></div><div> <HID>18</HID></div><div> <DISK_USAGE>0</DISK_USAGE></div>
<div> <MEM_USAGE>0</MEM_USAGE></div><div> <CPU_USAGE>0</CPU_USAGE></div><div> <MAX_DISK>0</MAX_DISK></div><div> <MAX_MEM><a href="tel:66097408" value="+4666097408" target="_blank">66097408</a></MAX_MEM></div>
<div> <MAX_CPU>2400</MAX_CPU></div>
<div> <FREE_DISK>0</FREE_DISK></div><div> <FREE_MEM>64609184</FREE_MEM></div><div> <FREE_CPU>2400</FREE_CPU></div><div> <USED_DISK>0</USED_DISK></div><div> <USED_MEM>1488224</USED_MEM></div>
<div> <USED_CPU>0</USED_CPU></div><div> <RUNNING_VMS>0</RUNNING_VMS></div><div> </HOST_SHARE></div><div> <TEMPLATE></div><div> <ARCH><![CDATA[x86_64]]></ARCH></div>
<div> <CPUSPEED><![CDATA[2100]]></CPUSPEED></div><div> <FREECPU><![CDATA[2400.0]]></FREECPU></div><div> <FREEMEMORY><![CDATA[64609184]]></FREEMEMORY></div><div>
<HOSTNAME><![CDATA[cloud9]]></HOSTNAME></div><div> <HYPERVISOR><![CDATA[kvm]]></HYPERVISOR></div><div> <MODELNAME><![CDATA[AMD Opteron(tm) Processor 6172]]></MODELNAME></div>
<div> <NETRX><![CDATA[2998354]]></NETRX></div><div> <NETTX><![CDATA[4807146]]></NETTX></div><div> <TOTALCPU><![CDATA[2400]]></TOTALCPU></div><div> <TOTALMEMORY><![CDATA<a href="tel:%5B66097408" value="+4666097408" target="_blank">[66097408</a>]]></TOTALMEMORY></div>
<div> <USEDCPU><![CDATA[0.0]]></USEDCPU></div><div> <USEDMEMORY><![CDATA[1488224]]></USEDMEMORY></div><div> </TEMPLATE></div><div></HOST></div></div><div><br></div><div>
<font color="#ff0000"><br></font></div><div><font color="#ff0000"><br></font></div><div>once again i reran the program, still getting same error.....</div><div><font color="#ff0000">JAVA API code</font></div>
<div><font color="#ff0000"><br></font></div><div><div><div>OneResponse or = Host.info(Client, 18);</div><div>if(or.isError()){</div><div> System.out.println(" Check for error "+or.getErrorMessage());</div>
<div> }</div><div>else{</div><div> System.out.println(or.getMessage());</div><div> }</div></div></div><div><br></div><div><br></div><div>the response for this code <font color="#ff0000">error Failed to parse servers response: Unknown type: string</font></div>
<div><font color="#ff0000"><br></font></div><div>I am thinking OneResponse return TRUE, because "Check for error" is missing in the output</div><div><br></div><div><br></div><div>Regards,</div>
<div>Srivatsan J.</div><div><div></div><div><div><br><div class="gmail_quote">2011/9/20 Carlos Martín Sánchez <span dir="ltr"><<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I can't reproduce this problem. Can you provide more information?<br><br>What OpenNebula version are you using?<br>
What's the output of "onehost show <id> -x"?<br>Any trace?<br><br>Regards<br clear="all">
<span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote"><div><div></div><div>On Mon, Sep 19, 2011 at 11:59 AM, srivatsan jagannathan <span dir="ltr"><<a href="mailto:srivatsanjn@gmail.com" target="_blank">srivatsanjn@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hi Team,<div><br></div><div>I am trying to use JAVA API to perform operation on host.</div><div><br></div><div>All these operation succeed, </div><div>Host.allocate(Client, hostname, im, vmm, tm)</div><div>Host.enable(Client, id, true)</div>
<div>Host.enable(Client, id, false)</div><div>Host.delete(Client, id)</div><div><br></div><div>But</div><div>Host.info(Client, id)</div><div>gives error Failed to parse servers response: Unknown type: string</div><div><br>
</div><div>in CLI onehost list & onehost show works properly</div><div><br></div><div>no error in oned.log</div><div><br></div><div><br></div><div>Regards,</div><div>Srivatsan J.</div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>