Mark Reeves - 2005-02-02

Recent version of wbem services don't appear to allow enumeration of associations. Looking through the source I have tracked down the apparent problem to a couple of lines in the method getCIMObjectPath() in XMLParser.java. For both CIMXml.VALUE_REFERENCE and CIMXml.KEYBINDING the removeCurrent() method is used when walking the nodes. This method removes the nodes entirely and stops them from being parsed anywhere with the code (comments suggest getCIMProperty() should then parse them but it doesn't get the chance as they are no longer there). I have modified my version of wbem 1.02 to use nextNode() in both cases and this appears to work and causes no issues elsewhere. The question is, am I missing something or is this a problem with the code?

Thanks for any help.

Mark