Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all 2218 articles
Browse latest View live

Using vimPort to createTask failed , reporting task type not correct.

$
0
0

Hi,

Im trying to use VimPortType 's createTask function to create a custome task. the calling is like:

taskInfo = _vimPort.createTask(taskManagerMoref, hostMoref, taskId,null, false, null, null);

the taskManagerMoref is Mof of TaskManager,  taskId is a string , why it throw this taskType not correct exception? is there any restriction of the taskId? thanks.

 

[2018-05-18T02:37:30.135Z] [ERROR] http-bio-5090-exec-7          com.huawei.esdk.storage.model.task.TaskProcessor                  com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: A specified parameter was not correct: taskType Please see the server log to find more detail regarding exact cause of the failure.
        at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
        at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:124)
        at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
        at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
        at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
        at com.sun.proxy.$Proxy701.createTask(Unknown Source)

[2018-05-18T02:37:30.135Z] [ERROR] http-bio-5090-exec-7          com.huawei.esdk.storage.model.task.TaskProcessor                  com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: A specified parameter was not correct: taskType Please see the server log to find more detail regarding exact cause of the failure.
        at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
        at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:124)
        at com.sun.xml.internal.ws.client.sei.StubHandler.readResponse(StubHandler.java:238)
        at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:189)
        at com.sun.xml.internal.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:276)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:104)
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:77)
        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:147)
        at com.sun.proxy.$Proxy701.createTask(Unknown Source)

 

 

 

Is the html bridge still supported in the 6.7 SDK

$
0
0
I am trying to show a html plugin built with the 6.7 sdk in a 6.5 vcenter using the flash client, is this possible?  The same plugin built with the 6.5 sdk was working.

Does HTML client SDK(6.5U2 and above) support and for of extensions?

How to determine if htmlSdk.modal api can be used.

$
0
0

Hi,

we had a problem with the new HTML Client.  In one of our views, we start a wizard, in which a user has to make choises about some settings.  These settings are quite involved, and have to be displayed correctly for the user to be able to choose.  Since our wizard could only be as big as the IFRAME which contains our views, we had problems displaying the values...

 

THANKS to the modal in the htmSdk, we have much more room to show everything, and it is now usable.  The modal is very easy to use, and works quite well!!!  I can recommend it.

 

Just the one question though...

Our plug-in works in both the FLEX and the HTML Client, so we have to determine when the htmlSdk.modal can be used, and when not.  If I understand correctly, it should only be used if the Client has version 6.5 U2 and greater...

I've used the following to make the decision:

 

var useSDKModal = WEB_PLATFORM.getClientType() != "flex";

 

But I don't think that this is good enough - can you suggest a better way?  What if the user has WebClient version 6.5 U1??

thanks for the info

Cathy

How to store a config file that can be read by UI and client plugin at the same time?

$
0
0

As is mentioned in the title, we have developped a plugin, which need to store some device configuation data in the local filesystem(I am really willing to store these kind of plugin dedicated data to some vimport service interface, but, I havent find any function support this).

If we want the plugin can read the same file no matter running in Client or UI virgo server, the most reasonable path should be /usr/lib,  but, If every plugin stores data in the lib folder, it would be a mess.  

So, I want to ask, is there any other way to achieve this? 

Issue in WEB_PLATFORM.sendNavigationRequest API Behavior on HTML UI

$
0
0

Hi,

 

I have created a web client plugin using [SDK 6.0.0] build version[2559277] referring to sample ChassisB available as part of SDK sample.

 

 

I am trying to navigate from vCenter views to my custom object [Datastore to my custom object(chassis)] workspace using WEB_PLATFORM.sendNavigationRequestAPI.

 

as suggested in Re: Use sendNavigationRequest to navigate to native vsphere views using htmlbridge?

 

With the mentioned API I am able to achieve the desired behavior in FLEX UI, however, the same API is not functioning properly in HTML5 UI.

Details of Issue:-

 

When Using the API to navigate to the summary details Page for a particular object (Say chassis ) the Left tree in the Object Navigator does not change and the related objects of the intended Object (targetted chassis) are not functioning.

 

However same is working fine in the Flex UI.

 

During the investigation of the mentioned issue where related objects tabs are not loaded properly in HTML UI navigation.

We have identified few error logs in the browser console related to parent container [Platform scripts] which are not there in case of Flex UI.

 

Following is the screenshot of web console comparing navigation calls in HTML5 UI and Flex

 

 

 

Can you check the error log as it belongs to parent SDK javascript code and suggest the workaround to fix the issue..

 

Thanks,

Abhishek

 

 

 

Plugin issues when running in local Dev environment using Eclipse Virgo

$
0
0

I recently updated to 6.7 client SDK and my plugin is facing some issues when I run using localhost. The home page shows some issues while fetching plugins-icon.css file from VMWARE

 

Is there a known issue for the same? Has dev setup process changed or is different in 6.7 SDK as compared to 6.5?

 

In network tab, call to https://localhost:9443/ui/vropspluginui/assets/css/plugin-icons.css  returns 404 and below message shows in eclipse console logs

 

No mapping found for HTTP request with URI [/ui/vropspluginui/assets/css/plugin-icons.css] in DispatcherServlet with name 'spring'

 

Message was edited by: bhavya bansal

Legacy Script Plugin in vSphere Client 6.7

$
0
0

Hi!  We have a legacy script plugin which works fine in 6.0/6.5 with scriptPlugin.enable=true in webclient.properties.

However, the plugin doesn't show up in 6.7 (both vsphere-client and vsphere-ui clients), and there is no error messages in vsphere_client_virgo.log.

Can anyone from VMware confirm if the legacy script plugin still works in 6.7?

 

Thanks a lot,

-Po


web-platform.js deprecated - how to get a string?

$
0
0

I'm starting to remove the functions that use WEB_PLATFORM and replace them with the htmlsdk api ones.  One thing I have not found documented, is how to get a localized string.  Until now we have been using WEB_Platform.getString(myKey) - it returned the correct string with the correct language.  Can you please tell me how to do this without WEB_Platform?

 

I tried to find something in the html sample, but am having difficulty in general with the sample, for I am not familiar with angular - Maybe it would be possible sometime to include a simple sample in just html and javascript which shows the api functionality..

Plugin Version Caching Issue

$
0
0

Hello,

I'm having some strange issue with deploying an HTML5 plugin to my vCenter Server.

vSphere Client version 6.5.0.10000 running on Windows Server 2012r2

According to docs if redeploying the same version it's necesary to unregister the plugin and delete the cached files in:

C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\vc-packages\vsphere-client-serenity\

I've also deleted the files in:

C:\ProgramData\VMware\vCenterServer\cfg\vsphere-ui\vc-packages\vsphere-client-serenity

I use the unregisterPlugin argument with extension-registration-jar-with-dependencies.jar and get a succesful response... the extension no longer shows in the moid extension manager portal either.

The problem is I can't succesfully redeploy using the same version. If I deploy again using registerPlugin (same jar) it gives a succesful response and shows back up in the moid portal but doesn't appear in my vCenter. Nothing shows up in virgo log indicating the plugin is being downloaded either. If I bump the version number of my plugin it will download and deploy succesfully.

 

Are there some additional cached files I need to remove? or something I'm missing here? It's a pain to have to bump the version number each time I want to test remote deployment.

com.sun.xml.internal.ws.fault.ServerSOAPFaultException - vCenter webclient

$
0
0

Hi,

 

In a vCenter, we are getting this error for few hosts in a cluster at this line of code:

 

vimPort.hasMonitoredEntity(serviceContent.getHealthUpdateManager(),

  PROVIDER_ID_FROM_VSPHERE, host)

 

This is the error that we got from logs:

Internal Error com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: The session is not authenticated. Please see the server log to find more detail regarding exact cause of the failure.

    at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)

 

We are not getting what is causing this.

 

Accessing Workstation 14 using the vSphere 6.5 Client SDK

$
0
0

I asked this over in the Workstation forum and realized it may be better answered here...

 

I have a stand alone client that I wrote that accesses a workstation and performs various actions on the VM (start/stop, copy file, execute program) using the VIX implementation.  Recently, I was asked to transition the VIX implementation over to a vSphere 6.5 SDK implementation.  I'm able to handle the power operations just fine, but I can't get any of the guest operations to work using the vSphere Client SDK 6.5.  All of the examples I've found say to get the guestOperationsManager managed object reference.  However, when I attempt to do that, it comes back null and there isn't a way to create one that I've found.

 

Are there things missing in Workstation that exist in vSphere?  Is what they are asking for even possible?

Not Getting Option to turn on Proactive HA in Vmware vcenter web client

$
0
0

Hi,

 

I need to turn on proactive HA functionality but I am not getting option to turn it ON.

I have followed the following steps:-

1. I have created the datacenter and  cluster

2. Added hosts inside cluster.

3.Turn on vsphere DRS.

4. click on cluster->vsphere Availablity->edit

But here I am getting only 4 options(failures and Response, Admission control,Heartbeat datastores,Advanced options) here.

 

I am using vsphere 6.5 HTML verison.

Error on deploying a plugin on vSphere 6.5.0.13000

$
0
0

Hello,

I'm trying to deploy a html plugin in vsphere and I used plugin-seed 0.9.8 to create the structure of my plugin.

With this plugin we try to connect on a VRO 7.3 REST API.

For that we use RestTemplate in the service (com.springframework.web version 3.1.4) and we got this error :

 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'WorkflowClientAccountService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'WorkflowClientAccountServiceImpl' defined in URL [bundleentry://333.fwk1820650863/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/http/client/ClientHttpRequestFactory

 

Here my MANIFEST.MF file

Manifest-Version: 1.0 Bundle-Vendor: VMware Bundle-Version: 1.0.0 Tool: Bundlor 1.1.0.RELEASE Bundle-Name: vhm-service Bundle-ManifestVersion: 2 Bundle-SymbolicName: com.orange.vhm.vhm-service Bundle-Classpath: ., "lib/httpclient-4.5.5.jar", "lib/httpcore-4.4.9.jar", "lib/jackson-annotations-2.0.1.jar", "lib/spring-security-core-4.1.0.RELEASE.jar", "lib/spring-flex-core-1.5.2.RELEASE.jar" Export-Package: com.orange.vhm.services;version="1.0.0", com.orange.vhm.mvc;version="1.0.0" Import-Package: org.apache.commons.logging;version="1.1.1", com.vmware.vise.data;version="0", com.vmware.vise.data.query;version="0", com.vmware.vise.data.uri;version="0", com.vmware.vise.usersession;version="0", com.vmware.vise.security;version="0", com.vmware.vise.vim.data;version="0", com.google.gson;version="2.3.1", javax.servlet.http;version="3.0", javax.net.ssl;version="0", org.springframework.beans.factory.annotation;version="3.1.4", org.springframework.http;version="3.1.4", org.springframework.stereotype;version="3.1.4", org.springframework.web.bind.annotation;version="3.1.4", org.springframework.core;version="3.1.4", org.springframework.util;version="3.1.4", org.springframework.web;version="3.1.4"

 

Someone can explain what I'm doing wrong.

 

Thanks

 

Mickael DABERNAT

CORS support for javascript SDK

$
0
0

I am trying to run an AJAX call for verifying Vcenter credentials and read somewhere in the Javascript SDK:

### Browser

 

 

The browser samples launch a simple local server that hosts all required static

files and provides an HTTP proxy which is required due to the lack of CORS

support in the target services. Such a proxy is not needed when the samples are

hosted in the same origin as the API endpoint which is the case with the

official ESXi client.

 

Is there a way CORS support can be provided so that we can make Ajax calls?


plugin can't display in vsphere-client-sdk 6.7

$
0
0
Hello,
When I change the version of vsphere-client-sdk from 6.5 to 6.7,I found a problem,I have no idea to solve it,can you help me?
Our plug-in can be normal operation in version 6.5,but in version 6.7,the plugin can't display,and there are followwing errors,
I don't Know how to deal with these problems,please help me.
When I change the version of vsphere-client-sdk from 6.5 to 6.7,I found a problem,I have no idea to solve it,can you help me?
Our plug-in can be normal operation in version 6.5,but in version 6.7,the plugin can't display,and there are followwing errors,
I don't Know how to deal with these problems,please help me.Hello,
When I change the version of vsphere-client-sdk from 6.5 to 6.7,I found a problem,I have no idea to solve it,can you help me?
Our plug-in can be normal operation in version 6.5,but in version 6.7,the plugin can't display,and there are followwing errors,
I don't Know how to deal with these problems,please help me.

vSphere Web Client HTML: view not updating when calling WEB_PLATFORM.sendModelChangeEvent

$
0
0

Hi,

I have a view in my HTML plugin that shows a list of objects on the LHS and a more detailed list with multiple columns in the center. I have an add button, that opens a dialog which allows the user to enter a "username", "password" (and some other fields). When the user clicks on "submit" a request is made to my service-layer and an object is created in the back-end. Now I want my lists to update accordingly. Here's my problem:

 

At first I used WEB_PLATFORM.callActionsController(url,json) to make the call to the service layer. The two lists are getting updated nicely and everything works fine. However, I can't use WEB_PLATFORM.callActionsController(url,json) because this is sending a password as a URL parameter.

 

Next, I used "$post(url, json, ..." to make the call to the service layer. This way the password is sent in the body of the request which is better. In the response handler, I used "WEB_PLATFORM.sendModelChangeEvent(responseStr["result"],"add");" to update the UI after the request was successful (responseStr["result"] contains the ID of the newly created object). However, this only updates the LHS list and not the list in the center.

 

Note:

The LHS list is added in the plugin.xml as a <templateInstance> with <templateId> "vsphere.core.inventory.objectViewTemplate" and a <namespace> with value "x.y.z" . The list in the center is an extension with <extended point> "x.y.z.list.columns".

 

After a manual refresh of the browser, both lists get updated perfectly.. but of course I would like things to get updated automatically.

 

Another note: The UI I'm working on is basically the same as the sample/chassisA-html example when going to "Global Inventory"->"Chassis A". Referring to the sample, I'm trying to add a chassis with password input, where I don't want the password to be sent as a URL parameter. So another way to reproduce this problem is: In the JavaScript code to add a Chassis (editChassisAction.js), replace "WEB_PLATFORM.callActionsController(url,json)" with $.post(url,json,response_handler) and in the response_handler call "WEB_PLATFORM.sendModelChangeEvent(responseStr["result"],"add");" in order to update the UI. Only the LHS list will get updated but not the one in the center.

 

Thanks for your help!

labs.vmware.com not accessible to download html fling

$
0
0

When I try to open labs.vmware.com, I get an error saying

 

 

labs.vmware.com -

Connection failed

 

 

Error code 20

The proxy failed to connect to the web server, due to TCP connection timeout.

 

 

Is there any other option to download html5 plugin seed?

custom object id is not showing up in 6.7 vCenter

$
0
0

Hi,

 

We have plugin upgraded from 6.5u1 sdk  to 6.7 sdk fixing all the virgo and spring jar updates.

 

Now when we deployed the plugin in 6.7 vc,

click on shortcut and click on our custom object which will navigate to a custom page.

In that custom page, we are not able to see the object id which is next to the global actions.

Attached is the screenshot.

 

Please suggest on fixing this as user can't work  on global actions for that custom object.

build-artifactory.eng.vmware.com not accessible to download string_decoder-1.0.3.tgz

Viewing all 2218 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>