|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-cim
Re: [Xen-cim] RE: Null pointer exception 
| > When it looks for some property value like so propertyvalue = > > CMGetProperty(vssd, "OnReboot", status) And that property
 > value does
 > > not exist, I am getting an error like this.
 
 I would think you'd get a compile error/warning, but in case not, you should be passing in a pointer to the status var. eg
 
 {
 CMPIStatus status = {CMPI_RC_OK, NULL};
 ...
 propertyvalue = CMGetProperty(instance, "Arch", &status);
 if ((status.rc != CMPI_RC_OK) || CMIsNullValue(propertyvalue)) ...
 }
 
 - G
 
 
  "Subrahmanian, Raj" <raj.subrahmanian@xxxxxxxxxx> 
 
 
 
| 
"Subrahmanian, Raj" <raj.subrahmanian@xxxxxxxxxx> Sent by: xen-cim-bounces@xxxxxxxxxxxxxxxxxxx
 03/02/07 01:09 PM |  |  > > I think I understand why I am getting the null pointer exception.
 > > The VSManagement service parses the Virtual Systems Setting
 > Data, in
 > > the function vssd2xenconfig.
 > > When it looks for some property value like so propertyvalue =
 > > CMGetProperty(vssd, "OnReboot", status) And that property
 > value does
 > > not exist, I am getting an error like this.
 > > RequestHandlerIFCXML::doProcess caught
 > > Exception:OW_COWIntrusiveReference.cpp: 62
 > > NULLCOWIntrusiveReferenceException: NULL COWReference dereferenced
 > > Clearly this shouldn't be happening.
 > > Any idea how I can debug this?
 > Have you updated your schema?  E.g. 'owmofc
 > Xen_ComputerSystemSettingData.mof'.  Or easier, 'make
 > postinstall' to ensure all classes are updated in the cimom.
 Yeah, still happens.
 
 The issue is not with OnReboot exactly.
 Let's say I am using a bootloader and I don't enter the Kernel parameter
 in the python file.
 When it runs the CMGetProperty for the 'Kernel' option, it dies with
 that same exception.
 
 Raj
 
 _______________________________________________
 Xen-cim mailing list
 Xen-cim@xxxxxxxxxxxxxxxxxxx
 http://lists.xensource.com/xen-cim
 
 
 
 _______________________________________________
Xen-cim mailing list
Xen-cim@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-cim
 | 
 |  | 
  
    |  |  |