obsolete since com.vmware.ui.lists.ColumnSetContainer Sdk 5.5 not supported in HTML plugins. that the way to view the list of objects

com.vmware.ui.lists.ColumnSetContainer obsolete since the Sdk 5.5 not supported in HTML. plugins that display in the object list. I tried the sample HTML plugins. ChassisA and chassiB but, but the workspace object is empty


Looking forward to a quick response.


Thanks in advance.

Kind regards

Rouault.

The plugin.xml samples of chassisA or chassisB show how to set the object lists without using the deprecated ColumnSetContainer.  Make sure that you follow closely these samples and it should work for your own plugin.  Otherwise, you will need to provide a way for us to reproduce your problem. Thank you.

Tags: VMware

Similar Questions

  • How to customize a column to display an icon and text in the com.vmware.ui.lists.ColumnContainer?

    Hello

    I have a ColumnContainer that looks like the following (from the example of chassis)

    < com.vmware.ui.lists.ColumnContainer >

    < uid > < / uid >

    < dataInfo >

    < com.vmware.ui.lists.ColumnDataSourceInfo >

    <!-table of the properties of the subject of this column, usually one->

    < requestedProperties >

    < string > name < / String >

    < / requestedProperties >

    <!--use sortProperty to allow the column to sort on header click-->

    < Proprietetri > name < / sortProperty >

    <! - exportProperty of use to export data from column - >

    < exportProperty > name < / exportProperty >

    < /com.vmware.ui.lists.ColumnDataSourceInfo >

    < / dataInfo >

    < item >

    < mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < headerText > #{name} < / headerText >

    <!--dataField must match a property requested, its text value will be inserted-->

    < dataField > name < / dataField >

    < /mx.controls.advancedDataGridClasses.AdvancedDataGridColumn >

    < / component >

    < /com.vmware.ui.lists.ColumnContainer >

    The cell needs display an icon and text side by side. How to make an image in the cell? Outside the environment of plugin, I was able to successfully create an AdvancedDataGrid with a custom "itemRenderer"? Unfortunately, I'm not able to do the same thing here and do appear correctly on the screen. I was wondering how I can associate the AdvancedDataGridColumn with an itemRenderer?

    Any help is appreciated.

    Thank you

    Shankar

    There must be something wrong with your code.  The best way to get help for this sort of thing is to modify one of our samples to reproduce the problem so that we can reproduce it and focus on the thing that it does not.

    BTW, in version 5.5 the com.vmware.ui.lists.ColumnSetContainer API is still supported but has been deprecated, we recommend that you set the extensibility of the column directly in plugin.xml such as shown in samples of chassis-app 5.5 (you don't need all component Flex, but cannot display text). This is to ensure compatibility with future major version.

  • I have windows xp.all programs come with this version of windows only is not supported what the answer

    I had to restart my computer.since then all the programs I try to download come up with this version of windows is not supported. what I do about this .cheers

    Could you give example of some of these programs.

    You have the same problem with other programs?

    When to start this problem?

  • OEM Apple nVidia GeForce 7300 GT is on the list of Adobe to not support GPU for rendering of the Open GL...

    My Mac Pro Radeon X 1900 XT is retired to my yard serious computer in my basement, but that goes back to the OEM Apple nVidia GeForce 7300 GT, brought encouraging results delivered with my Mac Pro.

    When I got the Mac Pro 2007, in 2009, I was running it in Mac OS 10.4.4.11 Tiger and Photoshop CS4 (11.0.0) would turn off the Open GL rendering when it detected the GeForce 7300 GT card stock, which was on the list of unsupported graphics nVidia GPU Adobe.   So, I bought a refurbished nine Apple Radeon X 1900 XT.  This card allowed to Photoshop CS4 and Bridge CS4 allow Open GL rendering.  Last year, the Radeon X 1900 XT graphics card created scratches on my screen when it is running hot and sometimes dual turns off just as I was working.  In addition, the computer was material freezes about once a day.   This morning the Mac Pro close its dual display, while I was working, and I had to make another cold cut in order to restart.  I then manually shut down the computer and doing a manual start so that Snow Leopard would use disk maintenance.

    I turned off the computer and pulled the Radeon X 1900 XT card and re-inserted the OEM Apple nVidia GeForce 7300 GT card.  Now I'm in Mac OS 10.6.8 Snow Leopard with Photoshop CS4 (11.0.2) instead of Photoshop CS4 (11.0.0).

    Now, the update to Photoshop CS4, under the most recent operating system, allowing rendering Open GL instead of disable. Physical limitation of this graphics card is now fixed, so I see no reason to buy the ATI Radeon HD 5770 Graphics Upgrade Kit for my Mac Pro:

    http://eShop.MacSales.com/item/Apple/6615718/

    Some of those who bought the Apple ATI Radeon HD 5770 will say that they always got the striping on their screen when the Radeon HD 5770 card was running hot, just like with the Radeon X 1900 XT.

    So far, Apple OEM nVidia GeForce 7300 GT works fine and I get no striping on my poster without shut-off or material display freezes.

    I'm happy to have made of Open GL to Adobe enabled with an OEM GPU graphic that works cool and requires no fan cooling anchored.  Apple OEM nVidia GeForce 7300 GT, for the Mac Pro, is on the list of Adobe to not support GPU for rendering of the Open GL under Photoshop CS4, so why is he now supported?  That is just one of the benefits of the Photoshop CS4 11.0.2 update?

    Also FYI, Adobe is not always announce or specify bug fixes in versions of update of an application, although sometimes they do.

  • MSG come insert automatic system recovery disk windows & ihave not this type of dick that how can I do?

    How can I start my pc when msg came "bootmgr is missing" I have no any drive

    Hello

    1st thing to try is a restoration of the system in safe mode

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    If that does not read this information

    the link below is how to download and get a vista disk startup repair, which you can start from the

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    Here's how to use startup repair system restore command prompt, etc. to bleepingcomputers link below

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

    and if all else fails and you need to reinstall vista are the normal methods for computers preinstalled vista portable

    Contact the computer manufacturer and ask them to send vista recovery discs

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F10 or F11 or Alt + F10, 0 at startup to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

  • question: webworks upgraded to 1.0.3.8 SDK version, "file not found" error on cmd at the launch on Dev-alpha 10.0.6

    Hi all

    I have updated the Webworks SDK to its new version 1.0.3.8. The applications have been installed successfully in the previous version... now, when I'm working on that, I am faced with a question saying failed to create the application process: no such file or directory. at the command prompt (start the emulator of the ripple, once packed and signed with success).

    I checked the credentials files, debugtoken file, bar etc. The script src that I am referring is also correct.

    Thank you.

    Is resolved now. I upgraded my bb device - 10.0.9 and everything works fine

  • com VMware.Onyx is missing

    How do you get charged com.vmware.onyx actions?

    I see a lot of messages to use the onyx code directly in vco. However, mine always fails due to lack of the api?

    y at - it a plugin or something that must be loaded to onyx?

    Hello! See also the Readme in onyx. You must manually create the package and import a single action of the onyx installation folder.

    Cheers, joerg

    Am the 26.03.2011 um 23:46 wrote 'mcfadyenj' [email protected]<>[email protected]>:

    Http://communities.vmware.com/index.jspaVMware communities >

    com VMware.Onyx is missing

    created by mcfadyenjhttp://communities.vmware.com/people/mcfadyenj> in Orchestrator - see the discussion complete onhttp://communities.vmware.com/message/1724490#1724490

  • I upgraded to 7 45 Java, but even after restart of firefox doesn't recognize her, he said that is not installed. It appears in the list of windows programs

    After installing the java update and restart the java update don't watch not in the list of the modules and to the formula1.com ex timing live does not start. He said that the program is not installed. The last update happened, just don't forget what I did then to make it work. Thanx.

    Make sure that you have installed the version of Java 32 bits.

    It is possible that something was wrong with the update registry keys that Firefox uses to find the Java plugin.

    • HKLM\Software\Wow6432Node\MozillaPlugins\@Java.com/JavaPlugin,version=10.XX.XX
  • java.io.NotSerializableException: com.vmware.vcloud.sdk.Task

    Hello

    I have a workflow creates a task waiting because it has the performance to help

    trigger = System.getModule("com.vmware.library.vCloud.common").createEndOfTaskTriggerForTask (task);

    and then a workflow element "event pending."

    Unfortunately, the workflow is now stuck in State "waiting sign" and I see the following exception which crosses the catalina.out app-server

    INFO: Response - <? XML version = "1.0" encoding = "UTF-8"? >

    " < task xmlns =" " http://www.VMware.com/vCloud/v1.5 "status = 'success' startTime ="2014-08 - 07 T 15: 25:29.853 + 02:00"serviceNamespace ="com.vmware.vcloud ' operationName = operation"vappUpdateVm"=" updated Virtua "

    "Machine node1 (f088e966-1a17-4d46-99ea-2395c3f3a618) l' expiryTime =" "2014-11 - 05 T 15: 25:29.853 + 01:00" endTime = "2014-08 - 07 T 15: 25:36.623 + 02:00" a cancelRequested = "false" name = 'task' id = "urn: vcloud:task:c2e0".

    "" " b564-d7f8-468f-b602-f9e8ee495c44" type="application/vnd.vmware.vcloud.task+xml" href = " https://VCD.He.foobar.info/API/task/c2e0b564-d7f8-468F-B602-f9e8ee495c44 "" xmlns: xsi = " http://www.w3.org/2001/XML "

    -L'instance of the schema "xsi: schemaLocation =" http://www.VMware.com/vCloud/v1.5 http://vcd.he.foobar.info/api/v1.5/schema/master.xsd' > .

    "" < type="application/vnd.vmware.vcloud.vm+xml owner" name = "Node1" href = " https://VCD.He.foobar.info/API/vApp/VM-f088e966-1a17-4d46-99ea-2395c3f3a618 "/ > "

    "" < user type="application/vnd.vmware.admin.user+xml" name = "vco" href = " https://VCD.He.foobar.info/API/Admin/user/777db7f3-1f41-4934-85A4-346efd78a8c1 "/ > "

    "" < type="application/vnd.vmware.vcloud.org+xml organization" name = 'Production' href = ' https://VCD.He.foobar.info/API/org/c594d7a6-2c9b-4853-b0d0-74bdb107e23c "/ > "

    < details / >

    < / task >

    15:41:52.195 07-08-2014 + 0200 [1c47251c586f3e4a7ef329bcdc4da3b9abbfa3d46eda3164d3ffd7537285b3.data] ERROR {c.becker:Wait for a task: 508080808080808080808080808080809980808001266312685778e677578588f:f}

    { f808081476970030147b0a5347a00ae} [DiskStorageFactory] Disk writing of https://vcd.he.foobar.info/api/task/c2e0b564-d7f8-468f-b602-f9e8ee495c44 failed:

    java.io.NotSerializableException: com.vmware.vcloud.sdk.Task

    at java.io.ObjectOutputStream.writeObject0 (unknown Source)

    at java.io.ObjectOutputStream.defaultWriteFields (unknown Source)

    the impossible (unknown Source)

    at net.sf.ehcache.Element.writeObject(Element.java:835)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at java.io.ObjectStreamClass.invokeWriteObject (unknown Source)

    at java.io.ObjectOutputStream.writeSerialData (unknown Source)

    at java.io.ObjectOutputStream.writeOrdinaryObject (unknown Source)

    at java.io.ObjectOutputStream.writeObject0 (unknown Source)

    at java.io.ObjectOutputStream.writeObject (unknown Source)

    at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:97)

    at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405)

    at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ DiskWriteTask.call (DiskStorageFactory.java:485)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ PersistentDiskWriteTask.call (DiskStorageFactory.java:1088)

    to net.sf.ehcache.store.disk.DiskStorageFactory$ PersistentDiskWriteTask.call (DiskStorageFactory.java:1072)

    at java.util.concurrent.FutureTask.run (unknown Source)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.access$ 201 (unknown Source)

    to java.util.concurrent.ScheduledThreadPoolExecutor$ ScheduledFutureTask.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Does anyone has an idea what is the cause?

    We use vCO 5.5.1 and the workflow even worked before on a different node with the same version - we just moved by export of package and it imported into the new facility.

    From what I recall, it is a known problem with the vCD plug-in that was resolved with a technical preview that was posted on the document tab.

  • Error ' com.vmware.vcloud.sdk.VCloudException: resource not found "for vdc.instantiateVappTemplate API call with vCD server 5.1.


    I get the error message "com.vmware.vcloud.sdk.VCloudException: resource not found" for vdc.instantiateVappTemplate API call with vCD Server 5.1.I tried with two customer VCDs 1.5 and 5.1. Please notify.

    Here is the code snippet

    Parameters InstantiateVAppTemplateParamsType = new InstantiateVAppTemplateParamsType();

    parameters.setName (vappName);
    parameters.setSource (vappTemplate.getReference ());
    parameters.setInstantiationParams (networkParams);
    vdc.instantiateVappTemplate (parameters);

    Reqauest URI and body:

    https://vCD5.1_Server/API/Admin/VDC/6ce10d02-746C-4C7E-a66b-c172d5990a28/action/instantiateVAppTemplate

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
    " < ns6:InstantiateVAppTemplateParams xmlns =" http://www.VMware.com/vCloud/versions "xmlns:ns2 =" http://schemas.dmtf.org/OVF/Envelope/1 "xmlns:ns3 =" http://schemas.dmtf.org/wbem/wscim/1/Common "xmlns:ns4 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_VirtualSystemSettingData "xmlns:ns5 =" http://schemas.dmtf.org/wbem/wscim/1/CIM-Schema/2/CIM_ResourceAllocationSettingData "xmlns:ns6 =" http://www.VMware.com/vCloud/v1.5 "xmlns:ns7 =" http://www.VMware.com/Schema/OVF "xmlns:ns8 =" http://schemas.dmtf.org/OVF/Environment/1 "xmlns:ns9 =" http://www.VMware.com/vCloud/extension/v1.5 "name ="vApp_amit-2"> " "" "" "" ""
    < ns6:InstantiationParams >
    < ns6:NetworkConfigSection >
    < ns2:Info / >
    < ns6:NetworkConfig networkName = "1" >
    < ns6:Configuration >
    "" < ns6:ParentNetwork type="application/vnd.vmware.admin.network+xml" name = "Network1" href = " https://vCD5.1_Server/API/Admin/network/44fea373-8c51-4403-b97e-3dbc4b770eda "/>
    Bridge of < ns6:FenceMode > < / ns6:FenceMode >
    < / ns6:Configuration >
    < / ns6:NetworkConfig >
    < / ns6:NetworkConfigSection >
    < / ns6:InstantiationParams >
    " < ns6:Source type="application/vnd.vmware.vcloud.vAppTemplate+xml "name ="Win2008R2"id =" "urn: vcloud:vapptemplate:a47ada7e-24b6-457f-9578-f1d2f2304dec" href =" " https://vCD5.1_Server/API/vAppTemplate/vappTemplate-a47ada7e-24b6-457f-9578-f1d2f2304dec "/>
    < / ns6:InstantiateVAppTemplateParams >

    Hello

    Instead of queryReferences(), use the queryIdRecords() method.

    RefRes ReferenceResult = queryService.queryIdRecords (QueryRecordType.ADMINORGVDC);

    {for (RecordResult RV: {refRes.getRecords ())}
    If (vr.getName () .equals (vdcName)) {}
    VCC = Vdc.getVdcById (admin, vr.getId ());

    }

    In this way don't worry about whether the returned reference (containing href, mediatype and name) is API-API/Admin user.

    ORGVDC - request user Org/tenant - this will not work if you are a user/Admin Org.

    ADMINORGVDC - query the system Admin user - this will not work if you are a system administrator.

    Kind regards

    Rajesh Kamal.

  • java.lang.ClassNotFoundException: com.vmware.vise.usersession.UserSessionService

    I want to use the class UserSessionService my java service project which the project of the UI uses via the proxy.

    My budle - context.xml contains

    < name of the bean = "TestInterfaceImpl" class = "com.acme.TestInterfaceImpl" >

    < Ref constructor-arg = "userSessionService" / >

    < / bean >

    and the context bundle - osgi.xml contains

    < osgi:service id="TestInterface" Ref='TestInterfaceImpl' interface='com.acme.TestInterface' / >

    <osgi:reference id='userSessionService' interface='com.vmware.vise.usersession.UserSessionService' />

    I am getting following error

    Caused by: java.lang.ClassNotFoundException: com.vmware.vise.usersession.UserSessionService

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:134)

    I even tried to add the vsphere client - lib.jar server folder and pickup. Still the same error.

    EDIT: The mistake of higher level, that I think is

    Departure failed to bundle '< my bundle name >' release ' 1.0.0 '. org.springframework.beans.factory.BeanCreationException: error creating bean with name 'userSessionService': initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: could not convert the value of property of type "java.lang.String" necessary "java.lang.Class []" type for the property "interfaces"; nested exception is java.lang.IllegalArgumentException: cannot find the [com.vmware.vise.usersession.UserSessionService] class

    See this article in docs/FAQ.html, it looks that you add com.vmware.vise.usersession to the list of import-package in your package MANIFEST. MF.

    How to solve most of the ClassNotFoundException or similar errors?

    In most cases a ClassNotFoundException or similar "not found" error, is caused by incorrect packets or missing in import-package your bundle manifest. For example if your java service uses all the packagecom.vmware.vise.data.query SDK API, this package should be listed in the manifest (that's how Virgo manages dependencies between dynamic libraries). We recommend using a tool like bundlor to generate the manifest with your build, you will avoid a lot of mistakes!

    If the 'not found' error always happens when you call a remote web service of your java plugin, another thing to try is to add the packet missing in the plugin UI initial call MANIFEST to your java plugin. For example if you get a popup with the com.ctc.wstx.stax.WstxInputFactory provider not found error, you must add com.ctc.wstx.stax to the import-Packages of the MANIFESTO of the plugin of your user interface (in addition to your Java plugin).

  • A Package Import could not be resolved. Caused by the constraint that is missing in the bundle constraint: Import-Package: com.vmware.vim25.mo; version = "0.0.0" &gt;

    For vSphere Client Web plugin, I created a Service of java, I try to create a store of data to the ESX host using JAVA VI... I have included

    import com.vmware.vim25.*;
    import com.vmware.vim25.mo.*;
    

    the files in the service implementation and included external JARS to STS environment and created a function to list all hosts

    public List<String> listVcHosts() throws Exception{
        ManagedEntity[] hosts = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem");
      List<String> listHosts = new ArrayList<String>(); 
       for( ManagedEntity me : hosts ) {
           HostSystem host = (HostSystem) me;
           //Adding the list of hosts in List
           listHosts.add(host.getName().toString());
       }
      return listHosts;
    
       }
    

    When will execute as JAVA Application of STS his works fine without the caveats...

    I copied JARS in file server/Pick-up and try to deploy services in VIRGIN...

    His throw

    An Import-Package could not be resolved. Caused by missing constraint in bundle <com.xx.xxx.xxxx_1.0.0>
                 constraint: <Import-Package: com.vmware.vim25.mo; version="0.0.0">
    

    As I said above "it is covered by the use of 3rd party java libraries.

  • Last upgrade vCenter 4.1-5--&gt; com.vmware.converter

    Hello

    I have improved the vCenter 4.1 to 5 and I now in vCenter Service status of alert for com.vmware.converter

    So, since there is no built-in vCenter converter 5 more I uninstalled it but Service status still says «unable to retrieve health...» »

    How can I remove the converter vCenter Service status?

    Kind regards

    Peter

    I fixed mine today

    http://blog.alanrocks.com/?p=171

  • What is: com.vmware.scripting.javascript.allow - native object

    Hello!

    When you play with Java.util classes (see http://communities.vmware.com/message/1808053#1808053 ), I recognized after the journal entry in server.log (server value loglevel 'ALL'):

    2011-08-09 12:22:35.532+0200 DEBUG [MainScriptingObject] Found 'com.vmware.scripting.javascript.allow-native-object' property to false, java class usage removed from scripting

    Any ideas what this means?

    BTW: If you set it to true in vmo.properties, the journal entry changes, but the only change in behavior I found when you work with objects java.io.File.

    Thanks in advance!

    Kind regards

    Joerg

    This property is used to filter the Java classes that are visible to scripts. For more information, try Googling for ClassShutter (for example, the javadoc for this interface is listed here http://www.jarvana.com/jarvana/view/rhino/js/1.6R6-candidate2/js-1.6R6-candidate2-javadoc.jar! /org/mozilla/javascript/ClassShutter.html )

    Logical in our code is the following:

    if (property "com.vmware.scripting.javascript.allow-native-object" is false)
    {
        if (property "com.vmware.scripting.rhino-class-shutter-file" defines a valid file name) {
            load shutters from this file
        } else {
            load shutters from file 'PatternClassShutter.list' // currently, this file contains one line - java.util.*
        }
        Context.getCurrentContext().setClassShutter(shutters loaded above);
    } else {
        // no shutters defined
    }
    

    Hope this helps,

    Ilian

  • com VMware.vim25.InvalidRequest?

    OK im trying to access a data store by using this code:

    ...
    
    datastores = server.getHostSystemReference().getDatastores();
    
    for (Datastore ds : datastores)
    {
         Object resultObject       = null;
         ESXServerDataStore dsView = null;
                   
         try
         {
              DatastoreSummary summary = ds.getSummary();
                        
              dsView = new ESXServerDataStore(null, null, summary.getName(), 
                                  summary.getCapacity(), summary.getFreeSpace());
                        
              HostDatastoreBrowser browser = ds.getBrowser();
              HostDatastoreBrowserSearchSpec hdbss = new HostDatastoreBrowserSearchSpec();
              FileQueryFlags fqf = new FileQueryFlags();
              fqf.setFileType(true);
                 hdbss.setDetails(fqf);
              hdbss.setSearchCaseInsensitive(false);
              hdbss.setSortFoldersFirst(true);
              
              if(storageType.equals(StorageType.FILE))
              {
                   hdbss.setQuery(new FileQuery [] {new FolderFileQuery(), new FileQuery()});
              }
              else
              {
                   hdbss.setQuery(new FileQuery [] {new FolderFileQuery()});
              }
              
              hdbss.setSortFoldersFirst(true);          
              Task task = browser.searchDatastoreSubFolders_Task(dsView.getPath(), hdbss);
              task.waitForTask();
              resultObject = task.getTaskInfo().getResult();
    ...
    

    OK so the thing is that the task = browser.searchDatastoreSubFolders_Task (dsView.getPath (), hdbss); works well for ESX 3.5 but I get in vSphere (4.0)

    com.vmware.vim25.InvalidRequest
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at com.vmware.vim25.ws.XmlGen.fromXml(XmlGen.java:201)
         at com.vmware.vim25.ws.XmlGen.parseSoapFault(XmlGen.java:80)
         at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:132)
         at com.vmware.vim25.ws.VimStub.searchDatastoreSubFolders_Task(VimStub.java:2435)
         at com.vmware.vim25.mo.HostDatastoreBrowser.searchDatastoreSubFolders_Task(HostDatastoreBrowser.java:81)
    ...
    

    Any ideas? any help is welcome.

    Thank you!

    An error of InvalidRequest is launched in response to a query malformed to the server which fails in the transport layer, for example, the XML SOAP request was invalid.

    In your example, the searchSpec does contain all the parameters required to impersonate HostDatastoreBrowserSearchSpec. You are currently facing problems in the following snippet of code:

    HostDatastoreBrowserSearchSpec hdbss = new HostDatastoreBrowserSearchSpec();

    Fqf FileQueryFlags = new FileQueryFlags();

    fqf.setFileType (true);

    hdbss.setDetails (fqf);

    hdbss.setSearchCaseInsensitive (false);

    hdbss.setSortFoldersFirst (true);

    This is because not all required arguments to the FileQueryFlags have been forwarded. These arguments include: fileOwner, size of the file, file type, changing (all type boolean). Please refer to the reference guide for more details on the API SearchDatastoreSubFolders_Task (): http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/index.html

    I hope this helps.

    -Swati

Maybe you are looking for