Quantcast

Associators in java code.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Associators in java code.

deykunov@live.com

Hi guys! Im trying to call a WHQ query ASSOCIATORS from java code using your lib:

 

        ClientOptions clientOptions = new ClientOptions();

        dumpRequestsOnDemand(clientOptions);

 

        List<XmlNode> retList = new ArrayList<>();

        Filter filter = new Filter();

        filter.wql("ASSOCIATORS OF {Sndk_FSCacheVolume.tag="4902529245284"} WHERE AssocClass=Sndk_FSCacheVolumeSections ");

 

        XmlDoc result = m_client.enumerate(clientOptions, filter, OpenWSManConstants.CIM_ALL_AVAILABLE_CLASSES);

        if (result == null || result.isFault()) {

            String faultStr = "Failed to get an enumeration context: " + ((result != null) ? result.fault().reason() : "?");

            m_logger.debug(faultStr);

            throw new CimException(faultStr);

        }

 

And ‘result’ is always returning error with the following reason: “The data source could not process the filter. The filter might be missing or it might be invalid. Change the filter and try the request again.”

 

What I do wrong? Could you explain me how to use associators correctly. Please add an example to GitHub in “bindings/java/test” directory.

 

Thanks,

Andrey

 

 

 

Sent from Mail for Windows 10

 


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...