<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Local Plugin: Sending an API call to another vCenter instance LinkedMode in vSphere Client SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Local-Plugin-Sending-an-API-call-to-another-vCenter-instance/m-p/2859995#M5934</link>
    <description>&lt;DIV class="signpost-wrap"&gt;&lt;DIV class="signpost-content-body"&gt;I am working on a defect for my company and we send API calls to the alternative vCenter if it is in linkedMode (pseudo code below). I am looking for ways to redirect or figure out CrossCall calls from one to the other, but it is failing with a 401 unauth before it even gets to the homebrewed authentication method.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;vCenter 7u2&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;YaviJava 6.0.05 GA&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;What the API call looks like and how redirection is essentially done.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;On vCenter A:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;@RequestMapping(method = POST, value = "/{vsphereAddress}/account")&lt;BR /&gt;public @ResponseBody Account createAccount(@PathVariable &lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/104229"&gt;@NOTNULL&lt;/a&gt; String vsphereAddress)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;...&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// homebrewed auth method&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;if (vsphere.isLocal(vsphereAddress)) {&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// DO ACTION&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;}&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;else {&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// Use Jersey Client to send exact same API call to vCenter B&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;}&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;To Resolve this, I added Spring Security to add 'permitAll' for noauth calling and the deployment seems to be timing out and failing to deploy.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error Deploying Plug-in. The Deployment operation timed out&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;&lt;STRONG&gt;In vCenter: Under Tasks:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;Error Deploying Plug-in. The Deployment operation timed out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;Under administration-&amp;gt; Client Plugins when I hover over my failed plugin status&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;Error deploying plug-in.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ng-star-inserted"&gt;java.lang.InterruptedException java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1041)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&lt;DIV class="signpost-content-body"&gt;Pom.XML excerpt&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;!-- Spring Security --&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.springframework.security&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spring-security-web&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;5.2.3.RELEASE&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.springframework.security&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spring-security-config&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;5.2.3.RELEASE&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;javax.servlet&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;javax.servlet-api&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;3.0.1&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Spring Security Configuration&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&amp;lt;security:http use-expressions="true" auto-config="true"&amp;gt;&lt;BR /&gt;&amp;lt;security:intercept-url pattern="/**" access="permitAll" /&amp;gt;&lt;BR /&gt;&amp;lt;/security:http&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Eventlog.log shows no errors&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.740Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.740Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.750Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.750Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.752Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.752Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] blueprint-postprocessor-34 Initializing context for bundle com.&amp;lt;COMPANY&amp;gt;-dataservice&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:22.066Z] [INFO ] blueprint-postprocessor-34 Initialization of an application context for bundle com.&amp;lt;COMPANY&amp;gt;-dataservice STARTED&lt;BR /&gt;[2021-07-30T02:06:22.068Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:22.079Z] [INFO ] blueprint-postprocessor-35 Initializing context for bundle com.&amp;lt;COMPANY&amp;gt;-war&lt;BR /&gt;[2021-07-30T02:06:22.080Z] [INFO ] blueprint-postprocessor-35 Initializing spring context for web bundle: com.&amp;lt;COMPANY&amp;gt;-war&lt;BR /&gt;[2021-07-30T02:08:22.196Z] [INFO ] http-nio-5090-exec-13 70000065 100006 200002 [BundleEvent] Bundle=org.apache.thrift:0.13.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:08:22.198Z] [INFO ] http-nio-5090-exec-13 70000065 100006 200002 [BundleEvent] Bundle=org.apache.thrift:0.13.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:16:21.266Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.267Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.270Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.272Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.283Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.284Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.326Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.351Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.354Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.355Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.368Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.385Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.397Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.401Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.402Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.412Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.415Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.423Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.430Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.430Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.431Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.431Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=UNINSTALLED&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Any ideas or thoughts?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Jul 2021 02:44:26 GMT</pubDate>
    <dc:creator>ICTKevinWong</dc:creator>
    <dc:date>2021-07-30T02:44:26Z</dc:date>
    <item>
      <title>Local Plugin: Sending an API call to another vCenter instance LinkedMode</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Local-Plugin-Sending-an-API-call-to-another-vCenter-instance/m-p/2859995#M5934</link>
      <description>&lt;DIV class="signpost-wrap"&gt;&lt;DIV class="signpost-content-body"&gt;I am working on a defect for my company and we send API calls to the alternative vCenter if it is in linkedMode (pseudo code below). I am looking for ways to redirect or figure out CrossCall calls from one to the other, but it is failing with a 401 unauth before it even gets to the homebrewed authentication method.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;vCenter 7u2&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;YaviJava 6.0.05 GA&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;What the API call looks like and how redirection is essentially done.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;On vCenter A:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;@RequestMapping(method = POST, value = "/{vsphereAddress}/account")&lt;BR /&gt;public @ResponseBody Account createAccount(@PathVariable &lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/104229"&gt;@NOTNULL&lt;/a&gt; String vsphereAddress)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;...&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// homebrewed auth method&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;if (vsphere.isLocal(vsphereAddress)) {&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// DO ACTION&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;}&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;else {&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;// Use Jersey Client to send exact same API call to vCenter B&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;}&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;To Resolve this, I added Spring Security to add 'permitAll' for noauth calling and the deployment seems to be timing out and failing to deploy.&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Error Deploying Plug-in. The Deployment operation timed out&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;&lt;STRONG&gt;In vCenter: Under Tasks:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;Error Deploying Plug-in. The Deployment operation timed out&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;STRONG&gt;Under administration-&amp;gt; Client Plugins when I hover over my failed plugin status&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;SPAN&gt;Error deploying plug-in.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ng-star-inserted"&gt;java.lang.InterruptedException java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1041)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-header lia-indent-padding-left-30px"&gt;&lt;DIV class="signpost-content-body"&gt;Pom.XML excerpt&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;P&gt;&amp;lt;!-- Spring Security --&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.springframework.security&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spring-security-web&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;5.2.3.RELEASE&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;org.springframework.security&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;spring-security-config&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;5.2.3.RELEASE&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;BR /&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&amp;lt;groupId&amp;gt;javax.servlet&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&amp;lt;artifactId&amp;gt;javax.servlet-api&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&amp;lt;version&amp;gt;3.0.1&amp;lt;/version&amp;gt;&lt;BR /&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;BR /&gt;&amp;lt;/dependency&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Spring Security Configuration&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&amp;lt;security:http use-expressions="true" auto-config="true"&amp;gt;&lt;BR /&gt;&amp;lt;security:intercept-url pattern="/**" access="permitAll" /&amp;gt;&lt;BR /&gt;&amp;lt;/security:http&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Eventlog.log shows no errors&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.739Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.740Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.740Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=RESOLVED&lt;BR /&gt;[2021-07-30T02:06:21.750Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.750Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.751Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:21.752Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:21.752Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] blueprint-postprocessor-34 Initializing context for bundle com.&amp;lt;COMPANY&amp;gt;-dataservice&lt;BR /&gt;[2021-07-30T02:06:22.065Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:06:22.066Z] [INFO ] blueprint-postprocessor-34 Initialization of an application context for bundle com.&amp;lt;COMPANY&amp;gt;-dataservice STARTED&lt;BR /&gt;[2021-07-30T02:06:22.068Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:06:22.079Z] [INFO ] blueprint-postprocessor-35 Initializing context for bundle com.&amp;lt;COMPANY&amp;gt;-war&lt;BR /&gt;[2021-07-30T02:06:22.080Z] [INFO ] blueprint-postprocessor-35 Initializing spring context for web bundle: com.&amp;lt;COMPANY&amp;gt;-war&lt;BR /&gt;[2021-07-30T02:08:22.196Z] [INFO ] http-nio-5090-exec-13 70000065 100006 200002 [BundleEvent] Bundle=org.apache.thrift:0.13.0 Type=STARTING&lt;BR /&gt;[2021-07-30T02:08:22.198Z] [INFO ] http-nio-5090-exec-13 70000065 100006 200002 [BundleEvent] Bundle=org.apache.thrift:0.13.0 Type=STARTED&lt;BR /&gt;[2021-07-30T02:16:21.266Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.267Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.270Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.272Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.283Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.284Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.285Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.326Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.351Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-war:4.8.0 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.354Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.355Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.javax.validation:1.0.0.GA Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.368Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.385Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.&amp;lt;COMPANY&amp;gt;-dataservice:4.8.0 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.397Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.401Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.hsqldb.hsqldb:2.5.2 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.402Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.412Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm.attrs:1.5.3 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.415Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.423Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=com.springsource.org.objectweb.asm:1.5.3 Type=UNINSTALLED&lt;BR /&gt;[2021-07-30T02:16:21.430Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=STOPPING&lt;BR /&gt;[2021-07-30T02:16:21.430Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=STOPPED&lt;BR /&gt;[2021-07-30T02:16:21.431Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=UNRESOLVED&lt;BR /&gt;[2021-07-30T02:16:21.431Z] [INFO ] plugin-deploy15 [BundleEvent] Bundle=org.osgi.service.subsystem.region.context.10:1.0.0 Type=UNINSTALLED&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="signpost-content-body"&gt;Any ideas or thoughts?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jul 2021 02:44:26 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Local-Plugin-Sending-an-API-call-to-another-vCenter-instance/m-p/2859995#M5934</guid>
      <dc:creator>ICTKevinWong</dc:creator>
      <dc:date>2021-07-30T02:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Local Plugin: Sending an API call to another vCenter instance LinkedMode</title>
      <link>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Local-Plugin-Sending-an-API-call-to-another-vCenter-instance/m-p/2861288#M5936</link>
      <description>&lt;P&gt;The plugin war bundle did not deploy successfully. You need to fix this before testing any further.&lt;/P&gt;&lt;P&gt;The cause of the InterruptedException that is thrown can be seen in full from the Task Console or the vsphere_client_virgo.log. Please check that to analyze the issue.&lt;/P&gt;&lt;P&gt;Other than that, you have a login to the SSO (session ID) which means access to all vCenters. Please verify if the requests to the first vCenter (in the local case) matches the request to the second vCenter (in the other case).&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vladi&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 12:12:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-Client-SDK-Discussions/Local-Plugin-Sending-an-API-call-to-another-vCenter-instance/m-p/2861288#M5936</guid>
      <dc:creator>_vladi_</dc:creator>
      <dc:date>2021-08-09T12:12:32Z</dc:date>
    </item>
  </channel>
</rss>

