If a WBEMClient instance was closed using the close() method and afterwards an operation (e.g. enumerateInstances()) is invoked, the client throws a WBEMException "CIM_ERR_FAILED: Internal error". This is wrong because CIM_ERR_FAILED indicates a message from the CIMOM and moreover "internal error" is very inexplicit.
I suggest chaging the WBEMClientCIMXML so that it tracks the initialization and closure state. Whenever an operation is invoked on a non initialized or already closed client a specific IllegalStateException is thrown that contains a meaningful message.
Patch
Logged In: YES
user_id=1363884
Originator: YES
File Added: patch_1714853.txt
Logged In: YES
user_id=1363884
Originator: YES
The patch was picked up by release 2.0.2 and will be closed.