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

Long processing results in Data Adapter timeout

$
0
0


In our plugin we have encountered a situation where when we have a large configuration of our objects it takes a long time to process resulting in hitting a time out situation.  I couldn't find anything in the forum that addresses this (although the search tools are rather poor and it seems they can only be searched for a word that occurs in the subject of the forum entries).


In the virgo log file I see:

The data service execution timed out java.util.concurrent.TimeoutException: Tasks didn't complete within the allotted timeout: 120000 MILLISECONDS.  The tasks that timed out are:


Further down in the virgo log I also see this related exception/error:


com.vmware.vise.data.query.DataServiceException: The data service timed out because a back-end task took more than 120 seconds. See the vsphere-client-virgo.log for more details.




 


In the case were we encounter this situation, we are determining the related information between datastores and our objects.  


We are doing a $.getJSON() call in our client side javascript to get the data with a URL parameter along the lines of + +"/vsphere-client/vcenterWebClient-ui/rest/data/properties/urn:vmomi:Datastore:datastore-14:bcfd5614-c4f9-4e5c-9d15-ac754e33c2f8?properties=System.fullInfo"


What can I do about this situation where we have to do a lot of processing/data gathering that exceeds this 120ms timeout?  


 


 


vSphere HTML Client SDK Version and Plug-Ins Compatibility

Persistent data storage options for Flex+HTML UIs and large/HA environments?

$
0
0

The SDK documentation section on storing persistent data for a plugin only covers a single method, which is to store it in a local file that is specific to the VCenter instance and UI variant (Flex/HTML) that is being used at the time.

 

This method gives a very inconsistent user experience - changing between the two clients, or doing a failover in a VCSA HA environment effectively resets the plugin to its initial state. I expect that using linked mode would suffer similar issues, but haven't tested that as yet.

 

The SDK documentation just says "you must use a separate back end server or database" for complex/large data sets. However, to do that, the plugin needs to store the URL/credentials of that back-end server to be able to connect to it - so that suffers exactly the same problem as above.

 

Is there a way for a plugin to store a small amount of private information in the VCenter object database itself - at least enough to connect to a back-end server? I can see a workaround using tags/custom attributes, but this seems extremely ugly, and would be visible to the user (so prone to editing/corruption/information disclosure).

Correct return object to render a Status column in global list view?

$
0
0

What is the correct return object to render a status column in a VMWare-controlled global list view? I'd like to be able to show a status icon next to the status text for my objects.

I believe that this should be possible using the <columnRenderer>status</columnRenderer> property in the list definition, but I can't figure out what my back-end service should return. I've tried returning both a "com.vmware.vim25.ManagedEntityStatus" object directly and a String (using the toString() method on a "com.vmware.vim25.ManagedEntityStatus" object), but it always shows up as "Unknown" with a question-mark icon.

Is this the right type at all? Is there any documentation for showing non-text columns in global list views?

vsphere-wssdk-provider sample code reports error when starts server

$
0
0

Hi,

 

When I run the vsphere-wssdk-provider sample code, it reports the following errors:

--------------------------------------------------------------------------------------------------------------------->

Application context creation failure for bundle 'com.sample.evwcpservice.EvwcpService' version '1.0.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EchoService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EchoServiceImpl' defined in URL [bundleentry://139.fwk30018216/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.sample.evwcpservice.EchoServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: com.vmware.vim25.VimPortType

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)

    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)

    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)

    at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:722)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EchoServiceImpl' defined in URL [bundleentry://139.fwk30018216/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.sample.evwcpservice.EchoServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: com.vmware.vim25.VimPortType

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

    at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:167)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

    ... 17 common frames omitted

Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.sample.evwcpservice.EchoServiceImpl]: Constructor threw exception; nested exception is com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: com.vmware.vim25.VimPortType

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)

    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)

    ... 27 common frames omitted

Caused by: com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: com.vmware.vim25.VimPortType

    at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:192)

    at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:652)

    at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:640)

    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:332)

    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:315)

    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:297)

    at javax.xml.ws.Service.getPort(Service.java:119)

    at com.vmware.vim25.VimService.getVimPort(VimService.java:56)

    at com.sample.evwcpservice.EchoServiceImpl.init(EchoServiceImpl.java:46)

    at com.sample.evwcpservice.EchoServiceImpl.<init>(EchoServiceImpl.java:40)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

    at java.lang.reflect.C

...

----------------------------------------------------------------------------------------------------------------------------------------->

I checked the codes which reports error,

------------------------------------------------------------------------------------------------------------------------------------------>

 

/** object for access to all of the methods defined in the vSphere API */

   private static VimPortType _vimPort = initializeVimPort();

 

   private static VimPortType initializeVimPort() {

      // Static initialization is preferred because it takes a few seconds.

      VimService vimService = new VimService();

      return vimService.getVimPort();

   }

 

----------------------------------------------------------------------------------------------------------------------------------------->

 

I have investigated this issue, and someone said that jdk version invokes that error.

That guy used jdk 1.6.22 and it worked. I'm sure whether it was right. Could someone help me figure out this issue.

 

Thanks a  lot

Stale Privileges

$
0
0

Hi,

 

We are using vCenter 6.5 and registering our plugin that adds privileges to the privilege list. On unregistering the plugin, we still see those privileges remain on the vcenter, is there any way to completely remove privileges that remain on vCenter. This is more noticible if the privileges are updated in a newer versions, the old privileges remain though they are not going to be used. I have looked through logs, and files on vCenter after SSh'ing into it, but no luck. Is there any way to clean this up?

 

Thanks,

Is it possible to deploy 3rd party plugin solution service layer on vcenter directly?

$
0
0

Hi, 

I'm looking at this section of vsphere 6.5 document : http://pubs.vmware.com/vsphere-65/index.jsp#com.vmware.wcsdk.pg.doc/GUID-88363ADC-4F14-4A99-937E-634015751B56.html

Wondering if we can directly  deploy 3rd party service layer(java, nodejs, etc) on a vcenter appliance. Or it has to be on a external server?  

I like the new vsphere SDK provided highly extensive html UI and new service platform to interact with vcenter (as a external actor), but if its' possible to have our own service layer deployed right within vcenter/container, it would be saving a lot of network and boxing overhead.  Please let me know if it's doable, and if any, point me to the resource/guide that I can refer to. 

Thanks.

 

Lee.H

OSGi specific best practices - must read :-)


Web Client Plugin Deployment Failure for vSphere 6.5

$
0
0

Hi laurentsd

Plugin Registration Failure.

 

 

Issue: Registration of vSphere web client plugin with vCenter 6.5 Server failed to deploy with Error:

VcExtensionManager Downloading plugin package from https://198.18.3.218:8443/root/mypackage.zip (no proxy defined)

Note: the same registration process is working fine with vSphere 6.0 U2 for the said plugin.

vSphere Web Client Version: 6.5.0 Build 4240472

 

Steps Taken:

  1. Register the plugin with vSphere vCenter server using extension manager API registerExtension()
  2. Set the certificate thumbprint at the time of registration, the certificate is encrypted using SHA1 encryption.
  3. The registration passed, and the plugin package is visible in the mob extension manager.
  4. Re-login to vSphere web client, the package is not visible.
  5. Virgo logs indicates that the download of the package failed with the error “Certificates does not conform to algorithm constraints”.

Please find the log snippet below:

[2016-09-27T07:24:04.577-07:00] [INFO ] vc-extensionmanager-pool-80  70000082 100007 200005 com.vmware.vise.vim.extension.VcExtensionManager Downloading plugin package from https://198.18.3.218:8443/root/mypackage.zip (no proxy defined)

[2016-09-27T07:24:04.599-07:00] [WARN ] vc-extensionmanager-pool-77  70000082 100007 200005 com.vmware.vise.extensionfw.impl.PackageManifestParser Plugin id mismatch between the registered extension key (com.vmware.vsan.health)

and the id specified in plugin-package.xml (com.vmware.vsphere.client.vsan). The registration id will be used but you should keep them in sync.

[2016-09-27T07:24:04.634-07:00] [ERROR] vc-extensionmanager-pool-80  70000082 100007 200005 com.vmware.vise.vim.extension.VcExtensionManager Package com.plugin.key was not installed!

Error downloading https://198.18.3.218:8443/root/mypackage.zip. Make sure that the URL is reachable then logout/login to force another download. javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)

at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)

at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)

at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)

at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)

at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)

at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)

at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)

at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)

at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)

at com.vmware.vise.util.http.ConnectionManager.connect(ConnectionManager.java:255)

at com.vmware.vise.util.http.SimpleHttpClient.connect(SimpleHttpClient.java:236)

at com.vmware.vise.util.http.SimpleHttpClient.executeMethodResponseAsStream(SimpleHttpClient.java:127)

at com.vmware.vise.vim.extension.VcExtensionManager.writePackageToFile(VcExtensionManager.java:940)

      at com.vmware.vise.vim.extension.VcExtensionManager.downloadPackage(VcExtensionManager.java:889)

at com.vmware.vise.vim.extension.VcExtensionManager$2.call(VcExtensionManager.java:703)

at com.vmware.vise.vim.extension.VcExtensionManager$2.call(VcExtensionManager.java:694)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at com.vmware.vise.util.concurrent.QueuingCachedThreadPool$QueueProcessor.run(QueuingCachedThreadPool.java:885)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

at sun.security.ssl.AbstractTrustManagerWrapper.checkAlgorithmConstraints(SSLContextImpl.java:1055)

at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:981)

at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:923)

at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)

... 27 common frames omitted

 

[2016-09-27T07:24:04.795-07:00] [INFO ] plugin-deploy11 70000082 100007 200005 com.vmware.vise.extensionfw.impl.PackagesDeployer Deploying plugin package 'com.vmware.vsan.health:6.5.0'.

[2016-09-27T07:24:04.795-07:00] [INFO ] plugin-deploy11 70000082 100007 200005 com.vmware.vise.extensionfw.impl.HotDeployBundleDeployer Copying using temp directory: C:\ProgramData\VMware\vCenterServer\runtime\vsphere-client\server\work\tmp, bundle: com.vmware.vsan.vmodl, to destination: C:\ProgramData\VMware\vCenterServer\runtime\vsphere-client\server\pickup\vsan-vmodl.jar

Query: is there any change in the vSphere plugin registration flow, specifically in terms of security/certificate.

virgo localhost for sdk 6.5 gives time sync error in logs

$
0
0

Hi,

 

To configure virgo server with any vCenter did the following:

For windows copied the webclient.properties, ds, store,jks in vsphere-client/cfg as in the documentation of 6.5

for VCSA followed the fully automated part of the documentation and webclientproperties got genereated in vsphere-clent/cfg.

started the server by running startup.bat in html-clientsdk/vpshere-client/server/bin/startup.bat

Checked the logs -it has the error:

<code>c.vmware.vise.vim.connections.SiteAffinityServerEndpointProvider  CDC is misconfigured. Will not use CDC. java.lang.UnsatisfiedLinkError: no libcdcjni in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)

at java.lang.Runtime.loadLibrary0(Runtime.java:849)

at java.lang.System.loadLibrary(System.java:1088)

at com.vmware.identity.cdc.CdcAdapter.<clinit>(CdcAdapter.java:18)

at com.vmware.identity.cdc.CdcSession.<init>(CdcSession.java:37)

at com.vmware.identity.cdc.CdcFactory.createCdcSessionViaIPC(CdcFactory.java:39)

at com.vmware.vise.vim.connections.SiteAffinityServerEndpointProvider.getCdcData(SiteAffinityServerEndpointProvider.java:201)

at com.vmware.vise.vim.security.sso.impl.SsoCmLocatorImpl.getCdcDataNoException(SsoCmLocatorImpl.java:111)

[ERROR] cm-catalog-manager-pool-5     com.vmware.vim.sso.client.impl.SoapBindingImpl                    SOAP fault javax.xml.ws.soap.SOAPFaultException: The time now Mon Jun 19 13:35:22 IST 2017 does not fall in the request lifetime interval extended with clock tolerance of 600000 ms: [ Mon Jun 19 03:28:08 IST 2017; Mon Jun 19 03:58:08 IST 2017). This might be due to a clock skew problem.

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

at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:117)

at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:184)

at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:203)

at com.vmware.vim.sso.client.impl.SoapBindingImpl.sendMessage(SoapBindingImpl.java:161)

at com.vmware.vim.sso.client.impl.SoapBindingImpl.sendMessage(SoapBindingImpl.java:114)

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.sendRequest(SecurityTokenServiceImpl.java:784)

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.executeRoundtrip(SecurityTokenServiceImpl.java:714)

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireTokenByCertificate(SecurityTokenServiceImpl.java:473)

 

 

 

 

 

[ERROR] cm-catalog-manager-pool-5     com.vmware.vise.vim.security.sso.impl.SsoUtilInternal             Time sync error: VC Server and local machine's clocks are out of sync by more than the accepted tolerance. 

[2017-06-18T15:08:09.233-07:00] [ERROR] cm-catalog-manager-pool-5     com.vmware.vise.vim.security.sso.impl.NgcSolutionUser             Solution user login failed. com.vmware.vim.sso.client.exception.TimeSynchronizationException: Server returned 'request expired' less than 0 seconds after request was issued, but it shouldn't have expired for at least 600 seconds.

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.checkTimeSyncronization(SecurityTokenServiceImpl.java:758)

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.executeRoundtrip(SecurityTokenServiceImpl.java:716)

at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireTokenByCertificate(SecurityTokenServiceImpl.java:473)

at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.acquireTokenByCertificate(SsoUtilInternal.java:716)

at com.vmware.vise.vim.security.sso.impl.NgcSolutionUser.login(NgcSolutionUser.java:229)

 

</code>

c.vmware.vise.vim.connections.SiteAffinityServerEndpointProvider  CDC is misconfigured. Will not use CDC. java.lang.UnsatisfiedLinkError: no libcdcjni in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at com.vmware.identity.cdc.CdcAdapter.<clinit>(CdcAdapter.java:18)
at com.vmware.identity.cdc.CdcSession.<init>(CdcSession.java:37)
at com.vmware.identity.cdc.CdcFactory.createCdcSessionViaIPC(CdcFactory.java:39)
at com.vmware.vise.vim.connections.SiteAffinityServerEndpointProvider.getCdcData(SiteAffinityServerEndpointProvider.java:201)
at com.vmware.vise.vim.security.sso.impl.SsoCmLocatorImpl.getCdcDataNoException(SsoCmLocatorImpl.java:111)
[ERROR] cm-catalog-manager-pool-5     com.vmware.vim.sso.client.impl.SoapBindingImpl                    SOAP fault javax.xml.ws.soap.SOAPFaultException: The time now Mon Jun 19 13:35:22 IST 2017 does not fall in the request lifetime interval extended with clock tolerance of 600000 ms: [ Mon Jun 19 03:28:08 IST 2017; Mon Jun 19 03:58:08 IST 2017). This might be due to a clock skew problem.
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:117)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:184)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:203)
at com.vmware.vim.sso.client.impl.SoapBindingImpl.sendMessage(SoapBindingImpl.java:161)
at com.vmware.vim.sso.client.impl.SoapBindingImpl.sendMessage(SoapBindingImpl.java:114)
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.sendRequest(SecurityTokenServiceImpl.java:784)
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.executeRoundtrip(SecurityTokenServiceImpl.java:714)
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireTokenByCertificate(SecurityTokenServiceImpl.java:473)
 
 
 
 
 
[ERROR] cm-catalog-manager-pool-5     com.vmware.vise.vim.security.sso.impl.SsoUtilInternal             Time sync error: VC Server and local machine's clocks are out of sync by more than the accepted tolerance. 
[2017-06-18T15:08:09.233-07:00] [ERROR] cm-catalog-manager-pool-5     com.vmware.vise.vim.security.sso.impl.NgcSolutionUser             Solution user login failed. com.vmware.vim.sso.client.exception.TimeSynchronizationException: Server returned 'request expired' less than 0 seconds after request was issued, but it shouldn't have expired for at least 600 seconds.
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.checkTimeSyncronization(SecurityTokenServiceImpl.java:758)
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.executeRoundtrip(SecurityTokenServiceImpl.java:716)
at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireTokenByCertificate(SecurityTokenServiceImpl.java:473)
at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.acquireTokenByCertificate(SsoUtilInternal.java:716)
at com.vmware.vise.vim.security.sso.impl.NgcSolutionUser.login(NgcSolutionUser.java:229)

Error during rest request

$
0
0

Hi,

My plugin is making rest requests to the remote server, the same server from where the plugin package was downloaded.

I have registered the plugin in my vCenter 6.5 via extension-registration.sh script form the html-client-sdk.

During http request from my java service i'm getting an error:

com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

 

How can I solve this problem ?

Error in webclient 6.5 - (fling sdk) setGlobalRefreshHandler is not a function

$
0
0

Hi,

using fling sdk and with the angular component file have the code 

this.gs.getWebPlatform().setGlobalRefreshHandler(this.refresh.bind(this), document);

When registred with VCSA 6.5 html client it says TypeError: this.gs.getWebPlatform(...).setGlobalRefreshHandler is not a function pointing to mainbundle.js

Browser - chrome and firefox.

Please help me on how to fix this. As per the documentation callback function needs to be passed as parameter so refresh is the callback function here.

Handling multiple types with a single DataProvider

$
0
0

Hi, 

I'm writing a DataProvider and would like it handle multiple types. The documentation says as follows:

For example, if you have a custom object of type WhatsIt, you annotate the class like the following example:

 

I would like to handle multiple types with the same data adapter, so as well as "samples:WhatsIt" objects, I'd also like to handle say "samples:Whatelse".
 
What is the syntax for the @type annotation so that multiple object types can be handled please?

 

Many thanks

 

SSL problems

$
0
0

My extension is making rest requst via https.

How can I know that ssl certificate of the backend server of my extension is installed on the vsphere client ?

If the certificate isn't installed what is the reason?

Disk space not considered

$
0
0

Hi,

 

I have several VM installed on VMware ESXi 6 and I have a nagios server on one of this VM. My problem is the that when I increase the disk space (20G --> 100G) of the VM where nagios is installed the new disk space is visible in VMware but for nagios there is still 20G in the disk.

I check with that command : df -h

VMNagios.PNG

I don't know if that is VMware issue but I create the discussion anyway.

 

Thank for your help.


Vsphere webclients action menu is cutting off from bottom.

$
0
0

Hello,

 

My actions are getting cut off from bottom. Please refer attached Image.

i119^pimgpsh_thumbnail_win_distr.jpg


Thanks in advance,

M

Change boot order with 6.5 web client

$
0
0

How do you change the boot order on a VM using the 6.5 web client ?

Disabled TLS 1.0 on vCenter 6.0U3

$
0
0

I have been attempting to utilize the new default TLS settings in vCenter version 6.0U3 as outlined in the release notes:

 

VMware vCenter Server 6.0 Update 3 Release Notes

 

The goal is to permit customers to connect external devices for use with our web client plugin without enabling TLS 1.0 of course. Unfortunately, no external devices can be connected without first enabling 1.0 on the external device. To check the TLS settings, I downloaded the TLS reconfiguration tool, ran a scan and compared the results to a scan of a functional 6.5 vCenter that indeed permits exclusion of TLS 1.0 device connections. The only difference was 6.0 permitted 1.0, 1.1, 1.2 for the web client service, and was limited to 1.1 and 1.2 for vCenter 6.5. I used the reconfiguration tool successfully remove 1.0 and retried the connections, which again were denied unless I enabled 1.0 on the external device. I have attached a screenshot of the reconfiguration tool scan command. Thanks in advance for any hints. Matt A.

 

Screen Shot 2017-06-23 at 3.39.23 PM.png

Problems with deploying third-party JAR (Can't find FAQ resource - link broken?)

$
0
0

Hi, 

I'm having problems deploying a third-party JAR to virgo, and getting an "java.lang.NoClassDefFoundError" issue. I've searched the forums, and found advice to read the FAQ on third-party JARs. I've found it at the following url:

https://code.vmware.com/article-detail/-/asset_publisher/8n011DnrSCHt/content/vsphere-web-client-sdk-faq

However, if I go to the link for "How to solve most java.lang.ClassNotFoundException errors?", the link is broken :(

Could you please let me know how I can access this information, as it is critically important to me at the moment.

Many thanks

Packaging 3rd party jar within your jar - help please?

$
0
0

Hi,

In another thread (https://communities.vmware.com/thread/513303) the following advice is provided, and looks to be extremely helpful for me:

"If you use this 3rd party jar in only one of your bundles, you can try to package it within your jar. This way you won't need to deal with import packages."

Could you please advise how this is achieved please? I'm working on the service layer, and need to include the third-party JAR. I am having problems (NoClassDefFoundError) with the 3rd party classes not being available within the Virgo server, so believe this could be the simplest solution. (The project is fine in Eclipse, it is only when attempting to instantiate an object of the third party class that errors are occurring).

Many thanks

Viewing all 2218 articles
Browse latest View live


Latest Images

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