<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 18, 2010, at 3:44 PM, Bryan Kearney wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I have just released 0.4.1 of libvirt java. There are 2 main items in this release:<br><br>- Better null checking in for Scheduled Parameters which should fix the issues reported on the list.<br>- Error Callbacks to provide better handling of errors encountered by libvirt (virConnSetErrorFunc and virSetErrorFunc).<br><br>You can access the latest version via the following means:<br><br>Source Code: <a href="http://www.libvirt.org/git/?p=libvirt-java.git;a=summary">http://www.libvirt.org/git/?p=libvirt-java.git;a=summary</a><br>Bundled Source (tarball and SRPM): <a href="http://libvirt.org/sources/java/">http://libvirt.org/sources/java/</a><br>Maven: <a href="http://libvirt.org/maven2/">http://libvirt.org/maven2/</a><br>RPMS are making their way through F-11 and F12 build systems<br><br>Thank you!<br><br>-- bk<br><br>--<br>libvir-list mailing list<br><a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a><br>https://www.redhat.com/mailman/listinfo/libvir-list<br></div></blockquote></div><div><br></div><div>Thanks for the update, Bryan, but the problem still persists. In my setup (Xen hosts):  Domain.getSchedulerParameters() still raises a NPE.</div><div><br></div><div>In libvirt.h, _virSchedParameter is defined as follows using a union for the value:</div><div><br></div><div><div>struct _virSchedParameter {</div><div>    char field[VIR_DOMAIN_SCHED_FIELD_LENGTH];  /* parameter name */</div><div>    int type;   /* parameter type */</div><div>    union {</div><div>        int i;                          /* data for integer case */</div><div>        unsigned int ui;        /* data for unsigned integer case */</div><div>        long long int l;        /* data for long long integer case */</div><div>        unsigned long long int ul;      /* data for unsigned long long integer case */</div><div>        double d;       /* data for double case */</div><div>        char b;         /* data for char case */</div><div>    } value; /* parameter value */</div><div>};</div><div><br></div></div><div>I believe the Java mapping of virSchedParameterValue should be a Union instead of a Structure:</div><div>public class virSchedParameterValue extends Union {...}</div><div><br></div><div>Regards,</div><div>Frederic</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><span class="Apple-style-span" style="font-size: medium;">------------------<br class="Apple-interchange-newline"></span>Orange Labs</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">38-40 rue du General Leclerc</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">92794 Issy Moulineaux Cedex 9</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">FRANCE</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div><br></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><PRE>*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************
</PRE></body></html>