On Jan 18, 2010, at 3:44 PM, Bryan Kearney wrote:
Thanks for the update, Bryan, but the problem still persists. In my setup (Xen hosts): Domain.getSchedulerParameters() still raises a NPE. In libvirt.h, _virSchedParameter is defined as follows using a union for the value: struct _virSchedParameter { char field[VIR_DOMAIN_SCHED_FIELD_LENGTH]; /* parameter name */ int type; /* parameter type */ union { int i; /* data for integer case */ unsigned int ui; /* data for unsigned integer case */ long long int l; /* data for long long integer case */ unsigned long long int ul; /* data for unsigned long long integer case */ double d; /* data for double case */ char b; /* data for char case */ } value; /* parameter value */ }; I believe the Java mapping of virSchedParameterValue should be a Union instead of a Structure: public class virSchedParameterValue extends Union {...} Regards, Frederic ------------------ Orange Labs 38-40 rue du General Leclerc 92794 Issy Moulineaux Cedex 9 FRANCE ********************************* 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. ******************************** |
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list