vSphere

Expand all | Collapse all

Exception thrown by SsoUtil: SSO admin service failure

Diego Barahona

Diego BarahonaApr 18, 2016 10:54 AM

htlotjrkryk5

htlotjrkryk5May 08, 2017 07:37 AM

  • 1.  Exception thrown by SsoUtil: SSO admin service failure

    Posted Feb 22, 2016 03:55 PM

    I'm diagnosing an issue in an Enhanced Linked Mode environment running 6.0 update 1 (2 vCenters, same domain) where I'm getting the following exception when calling UserSessionService.getUserSession():

    [ERROR] data-service-pool-2704       70000426 100010 200005 c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:179)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

      at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy503.getUserSession(Unknown Source)

    Does anyone have any pointers on diagnosing this?  I could not find much information about this error in the SDK docs.  Thank you

    - Mike



  • 2.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 02, 2016 06:33 PM

    *bump*

    Has nobody ever seen this in enhanced linked mode? 



  • 3.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 08, 2016 01:00 AM

    Seeing this in a couple of 6.0 test systems *not* in linked mode. The issue we have is also intermittent. I.e. you cannot log in for some time, then all of the sudden, login works, then log out, and try to log in again, only for it to fail again. No idea yet what the actual cause is though...



  • 4.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 10, 2016 12:47 AM

    Btw, this seems to be an issue for us only in VCSA 6.0 U1B. VCSA 6.0 U1 seems to be fine in this regard.



  • 5.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 11, 2016 10:15 PM
    I am seeing this on the vcenter appliance 6u1. No idea how to fix it though.


  • 6.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 14, 2016 07:38 PM

    Virat1234 -- are you seeing the reference to extractSystemDomains in your stacktrace, or something else entirely?



  • 7.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 21, 2016 11:40 PM

    Virat1234 -- are you seeing the reference to extractSystemDomains in your stacktrace, or something else entirely?

    That is exactly what I am seeing



  • 8.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Mar 11, 2016 11:29 PM

    After a few days of attempting to work around this issue by making multiple changes to our code, attempting to absolutely minimize any calls to UserSessionService.getUserSession, we've pretty much exhausted everything we can try. At this point I believe that all we can do is recommend to any users of our product plugin to not upgrade to 6.0 U1B.

    Can any vmware folks weigh in on this issue, any recommendations?



  • 9.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Apr 18, 2016 10:54 AM

    Finally, could you solve this issue?

    Thanks



  • 10.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted May 27, 2016 04:52 PM

    Has anyone had any luck in resolving this issue?  Or perhaps any pointers on where to look? I checked that both forward and reverse DNS is configured for all vCenters and the PSC and also checked that all system clocks are synced.  



  • 11.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 13, 2016 02:49 PM

    Can you, please, post the full stack trace, including the 'Caused By' sections? I wish to see if it's the same issue as in https://communities.vmware.com/message/2602308.



  • 12.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 14, 2016 02:35 PM

    Would you like us to create a fixed class file for release 6.0 Update 1 just like we did for release 6.0 Update 2 at "SSO admin service failure" exception in vSphere 6.0.2?



  • 13.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 21, 2016 02:01 PM

    [2016-02-17T08:45:41.702-05:00] [ERROR] data-service-pool-283711     70033948 100252 200143 c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:179)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

      at sun.reflect.GeneratedMethodAccessor688.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy587.getUserSession(Unknown Source)

      [ sensitive packages removed ]

      at sun.reflect.GeneratedMethodAccessor1042.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy661.getInfo(Unknown Source)

      [ sensitive packages removed (my implementation of property provider adapter) ]

      at com.vmware.vise.data.query.impl.DataManager.getDataFromPropertyProvider(DataManager.java:1312)

      at com.vmware.vise.data.query.impl.DataManager.getResultFromPropertyProvider(DataManager.java:1283)

      at com.vmware.vise.data.query.impl.DataManager.access$000(DataManager.java:67)

      at com.vmware.vise.data.query.impl.DataManager$1.run(DataManager.java:858)

      at com.vmware.vise.util.concurrent.ExecutorUtil$2.run(ExecutorUtil.java:187)

      at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingRunnable.run(ExecutorUtil.java:584)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:134)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:110)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 68 common frames omitted

    Caused by: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      at sun.reflect.GeneratedConstructorAccessor461.newInstance(Unknown Source)

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

      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      at java.lang.Class.newInstance(Class.java:383)

      at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:173)

      at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:31)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:141)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.unmarshall(UnmarshallerImpl.java:102)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:89)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:84)

      at com.vmware.vim.vmomi.client.common.impl.SoapFaultStackContext.setValue(SoapFaultStackContext.java:41)

      at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:112)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:273)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:230)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:144)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:51)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:186)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:115)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:581)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:562)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:348)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:308)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:182)

      at com.sun.proxy.$Proxy602.retrieveServiceContent(Unknown Source)

      at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.getSsoAdminServiceContent(SsoUtilInternal.java:253)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:143)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:57)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 71 common frames omitted

     

     

    As you can see, the "Caused by" is : Caused by: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

     

    vesuvius_prime you said in the other thread 'perhaps the users create too many sessions but don't log out of them explicitly afterwards. And it takes a while for the sessions to expire by themselves. So, probably sometimes you (or your customer) hit the limit and you get the error.'

     

    Do you know if it's possible for an extension to flood the PSC with too many sessions? I thought an extension can only get the current active session from the VIM API, not create new sessions.  Just trying to rule out if this is our extension, the customer, or a VMware issue.

     

    Thanks again for your responsivness, you've been a big help.



  • 14.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 21, 2016 04:25 PM

    Hmmm, I checked the source. There's a problem with method UserSessionServiceImpl.extractSystemDomains() which is invoked by method UserSessionServiceImpl.getUserSession() and is in the stack trace that you posted. In short, an authentication to the SSO Admin Service is performed but after the work is done, there's no invocation of logout(), so the authenticated session remains. These sessions will eventually expire, but if people do lots of invocations of UserSessionServiceImpl.getUserSession() before the previous authenticated sessions to the SSO Admin Service can expire, then these session will pile up and will exceed the limit and then the errors will start to occur.

    I can prepare yet another hack for you. I can fix method UserSessionServiceImpl.extractSystemDomains() and I can invoke logout() explicitly and this will likely solve your problem, but I don't know if you (or your customer) will be okay with applying such patches. Also, I need to say the following:

    1. Before you put this fix in production, please, try it out on some non-production environment, just in case. I will test it too, but I don't have an extensive set of plug-ins with which to test, so my testing will be somewhat limited. Furthermore, this is a hack, not an official patch, so I cannot get our QAs deeply involved in all this. You have a real-life environment which can be invaluable in testing this. For example, you can let your plug-in invoke UserSessionService.getUserSession() several hundred times and you can see if you'll hit the problem.

    2. Please, either you or your customer should log an SR which will probably force an early hot patch for this issue. I'm not in control of releases, especially patches for past releases, but as I was already told, releasing a hot patch requires an SR from a customer. Of course, I suppose that an SR doesn't automatically mean that a hot patch will be released. The SR will be evaluated, different approaches/fixes/workarounds will be discussed and a decision will be made. But the SR is an important first step.



  • 15.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 21, 2016 05:40 PM

    Nice analysis.  Few questions:

    1. What is "work" when you say  "an authentication to the SSO Admin Service is performed but after the work is done, there's no invocation of logout()" - do you mean logout() is supposed to be called after the extension is finished with the session that is returned to it?


    2. Will an authenticated session to the admin service show up when you browse active vCenter sessions? Or is this something internal? ("These sessions will eventually expire...)


    3. Do you know the expiration time when a session is created with the admin service?


    4. Would calling UserSessionService.getUserSession() in a loop be a good attempt at reproducing this?


    I'll be more than glad to test this in house and let you know how it goes.



  • 16.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 21, 2016 07:27 PM

    Answers:


    1. What is "work" when you say  "an authentication to the SSO Admin Service is performed but after the work is done, there's no invocation of logout()" - do you mean logout() is supposed to be called after the extension is finished with the session that is returned to it?


    I mean that method UserSessionServiceImpl.extractSystemDomains() should invoke logout() when it's done. This should be transparent to you.


    By the way, the code in the upcoming release 6.5 is quite different and this is not an issue there. The actual problem appeared in release 6.0 Patch 2 and is also present in Update 1 and Update 2.


    2. Will an authenticated session to the admin service show up when you browse active vCenter sessions? Or is this something internal? ("These sessions will eventually expire...)


    No. These are not vCenter sessions, but sessions to the SSO Admin Service.


    3. Do you know the expiration time when a session is created with the admin service?


    I guess it's 30 minutes. But I sent an email to some of the SSO guys asking them to tell me what the expiration timeout is.


    4. Would calling UserSessionService.getUserSession() in a loop be a good attempt at reproducing this?


    Yes, it should be good. Please, first try doing the loop without a patch. If it ends in error, then great -- we have reproducibility. Then, after applying the patch, try the loop again. If it works without errors, great again -- the problem is fixed. I will post a patch very soon.



  • 17.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 21, 2016 07:54 PM

    Okay, attached the patch. I assumed that your vSphere Web Client build number is 3271482 -- at least that's what we determined in Re: "SSO admin service failure" exception in vSphere 6.0.2.



  • 18.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 21, 2016 08:01 PM

    Thanks for the quick turnaround. The vCenter we're using for development is running build 2559277 (Version 6.0.0 Build 2559277).  Can you make a patch for this build or does this build not contain the change that introduced this issue? 


    Let me know. If necessary I'll upgrade to Update 1 (or Update 2, whichever corresponds to 3271482) and try flooding the vCenter with getSession() calls.



  • 19.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 21, 2016 08:10 PM

    Build 2559277 is vanilla 6.0 release. It doesn't have the issue. The problem starts with Patch 02 which your customer has.



  • 20.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jul 15, 2016 03:27 PM

    Hey Vesuvius,

    You said a while back "Build 2559277 is vanilla 6.0 release. It doesn't have the issue. The problem starts with Patch 02 which your customer has."


    By patch 02 do you mean update 2?  I ask because I couldn't find it on the Build Number History page VMware vCenter Release and Build Number History | Virten.net.But looks like some posters here reported hitting this on update 1. Thanks again



  • 21.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jul 15, 2016 03:35 PM

    By Patch02 I mean the second patch for the vanilla 6.0 release. Update 2 is a bigger thing -- it's not just a patch but includes lots of upgrades. In post 50 above I have included fixes for both 6.0 Patch 02 and 6.0 Update 2. I have not included a fix for Update 1 but, yes, it's also affected by this problem. Would you like me to create a fix for Update 1?



  • 22.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jul 15, 2016 03:38 PM

    Nope, I'm all set at the moment.  We're just trying to figure out which release is 'safe' to downgrade as a last resort for our customers who are blocked. 



  • 23.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jul 15, 2016 03:45 PM

    Well, with regard to the "Failed to create session" problem, which is fixed by the changes to class UserSessionServiceImpl in post 50, the vanilla 6.0 release should be safe. But if you're getting class loading issues, which are fixed by the "class_loading_patch_...." archives in post 50, I'm afraid they might occur even in the vanilla 6.0 release. If you wish to avoid class loading problems in your plug-in without requiring the clients to do any patching, you might add the Require-Bundle clauses to your plug-in's MANIFEST.MF file. We discussed these clauses earlier. When you apply those changes, then your class loader will be able to "see" the necessary classes and there shouldn't be class loading problems. I only suggest this as a way to avoid patching your clients' environments. I know it's not a real 'solution', but a workaround, but it might be preferable in your case.



  • 24.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 21, 2016 08:06 PM

    Actually, let me update our vCenter to what the customer is running.  Do you know which update 3271482 corresponds to? (i.e. 1B or 1A)  I'll just upgrade to that. Probably best I have close to the same environment as possible.



  • 25.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 21, 2016 08:11 PM

    Build 3271482 corresponds to release 6.0 Patch 02.



  • 26.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 24, 2016 05:15 PM

    Hey,

    I've been trying to reproduce for about a day now.  I'm calling UserSessionService.getSession() in a loop every second. I also tried every half a second. Yesterday I specified no delay and just called getSession() in an infinite loop roughly 10,000 times in 10 minutes. I'll continue with this approach this afternoon but if you have other ideas I'm all ears.  The vCenter I'm using now is running update 2, which I hope still has this issue because that's all my IT department has for me :smileysad:

    (Version 6.0.0 Build 2997665)

    Thanks again



  • 27.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 24, 2016 06:40 PM

    You mean, you are trying to reproduce the problem without having applied the patch and you can't reproduce it? In other words, the same exception as before doesn't appear in the log? That's strange, because I'm reproducing it consistently exactly with a loop (a straight loop, without limiting it to once per second or half-second). I can see the exact same error in the log. However, when I apply the patch, the error no longer appears in the log. I deployed build 3271482 (release 6.0 Patch 02) and I'm testing on it, but you should get the same result in release 6.0 Update 2 because the code is the same there.

    Can you, please, describe the original problem? Were you not able to get the UserSession session at all? Or were you getting it but you were also seeing the exception in the log? I examined the code, and I can see that when the following method gets executed:

    at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:179)

    (as per the stack trace that you provided), the exception is caught and in this case an empty list of System Domains is returned, but this doesn't prevent the UserSession from being returned to the caller -- its 'systemDomains' field will be empty, but the rest should be okay. However, without the patch, the method certainly does leave authenticated sessions behind and this must be fixed because eventually the SSO server reaches the maximum number of sessions and it refuses to authenticate any further, which may cause problems in completely unrelated scenarios because the SSO server gets contacted in other places too and they may fail because of the exhaustion of authenticated sessions.

    So, again, can you describe the exact problem you're experiencing? What are the symptoms?



  • 28.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 24, 2016 06:47 PM

    The original problem was that UserSessionService.getUserSession() throws an SsoServiceException.  This prevented a user session from being returned to the caller (as you can see in the stack trace).

    To reproduce I have created a Java service where UserSessionService is passed in via OSGI (same as you do in the sample apps).  In the Flex client I have a toggle button which starts off an infinite loop. In the loop I call a method on my Java service which then calls UserSessionService.getUserSession().  If I get an exception I log it and throw it back to the Flex client.  I've run this loop about 20,000 times and still have not hit an exception when calling UserSessionService.getUserSession().  The only difference I can see is that my vCenter is running 6.0 update 2 and our customer is running 6.0 patch 2.


    Let me know if I misunderstood anything.



    EDIT: Correction - calling UserSessionService.getUserSession()


    Mike



  • 29.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 24, 2016 07:35 PM

    Okay, I'm looking at the code of method UserSessionService.getUserSession() and it basically does this:

    try {

       ...

    } catch (Exception e) {

       _logger.error("Failed to get the user session", e);

       return null;

    }

    Furthermore, method UserSessionServiceImpl.extractSystemDomains(), which is part of the stack trace you quoted earlier, does:

    try {

       ...

    } catch (Exception e) {

       _logger.error("There was an issue while extracting the list of system domains", e);

    }

    Neither of these can throw an exception that can propagate to the caller. (They can throw an Error or a plain Throwable, but we're not dealing with such here.) What you see in the log is just a message that there was an error, but in reality you will either get a null UserSession, or a UserSession in which field 'systemDomains' is empty.

    By the way, I reproduced the problem by directly placing a loop around the try-catch block in method extractSystemDomains() -- the block which I quoted above. I ran a loop of 1,000 iterations but the actual error started to appear after much fewer iterations. I didn't bother to record how many, but maybe after 200-300 iterations. Don't quote me on that, though -- I might be wrong.

    I'm quite surprised you can't reproduce the problem by doing remote invocations of UserSessionService.getUserSession(). And I'm even more surprised that you manage to get SsoServiceException thrown out of method getUserSession(). In fact, it's a checked exception and the method doesn't have any throws clause, so this makes the matter even more puzzling.



  • 30.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 24, 2016 08:12 PM

    Aha! So it looks like we call getUserSession() which causes an exception to be thrown, is caught by UserSessionServiceImpl which then returns null. I just checked the logs and I'm seeing the exception.  Gonna try your patch now.

    [2016-06-24T16:00:45.107-04:00] [ERROR] http-bio-9443-exec-5          c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:176)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

      at sun.reflect.GeneratedMethodAccessor495.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy550.getUserSession(Unknown Source)

      at com.xxx.callGetSession(YYYImpl.java:183)



  • 31.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 24, 2016 11:59 PM

    Ok. Good news: I reproduced the issue

    Bad news: Even with the patch you supplied for UserSessionServiceImpl and the patch you supplied on the other thread ("SSO admin service failure" exception in vSphere 6.0.2) for SSOUtilInternal I'm still getting failures in the logs after hammering UserSessionService.getUserSession().  I'm now seeing the following error:

    Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: interface com.vmware.vim.binding.sso.SessionManager is not visible from class loader

    Do you have any ideas?  To be clear, your patch seems to have resolved the last error I was seeing - which is great! If this is a new issue I can go and start a new discussion and mark your reply as the answer for this discussion.

    Here's the stack trace I'm seeing now:

    [2016-06-24T19:47:30.329-04:00] [ERROR] http-bio-9443-exec-4          c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl  There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

      at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy524.getUserSession(Unknown Source)

      [Our Extension Package] .callGetSession(MyService.java:183)

      at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy527.callGetSession(Unknown Source)

      at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$c774f9ac.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$c774f9ac.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: interface com.vmware.vim.binding.sso.SessionManager is not visible from class loader

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:134)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:110)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 89 common frames omitted

    Caused by: java.lang.IllegalArgumentException: interface com.vmware.vim.binding.sso.SessionManager is not visible from class loader

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:616)

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:592)

      at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:244)

      at java.lang.reflect.WeakCache.get(WeakCache.java:141)

      at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:455)

      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:738)

      at com.vmware.vim.vmomi.client.common.impl.ManagedObjectFactoryImpl.createManagedObject(ManagedObjectFactoryImpl.java:88)

      at com.vmware.vim.vmomi.client.http.impl.HttpClient.createStub(HttpClient.java:76)

      at com.vmware.vise.vim.commons.vmomi.ClientWithSharedHttpConfig.createStub(ClientWithSharedHttpConfig.java:66)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:145)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:57)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 92 common frames omitted



  • 32.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 05:29 PM

    Apparently something goes wrong with the thread's context class loaders in your environment. I don't get such things here. If it's okay by you, I'd like to do the following:

    I will prepare two sets of .jar files for you:

    1. Set #1 will just contain additional logging without any fix.

    2. Set #2 will contain a fix.

    You'll have to apply Set #1 before you apply the fix in Set #2. Set #1 will log the class loader which is being used when the error occurs. That is, when trying to load com.vmware.vim.binding.sso.SessionManager. I will prefix the special log messages with a triple tilde (~~~). Please, when the error occurs, locate these messages in the log and post them here (or send me a private message, if you prefer). Then, apply the fix from Set #2 and check if the problem will be fixed.

    Does this sound okay by you? Should I proceed with creating the sets?



  • 33.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 27, 2016 06:03 PM

    That's fine by me.  Go ahead and create the sets of jars. Also, let me know if you'd like me to enable debug logging prior to restarting the web client service, or if INFO is good enough.



  • 34.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 07:00 PM

    Okay, attached the sets. Set #1 contains only one jar, actually. You should copy the jars to directory [VIRGO_HOME]/repository/usr, then you should set the owner of the .jars to be user 'vsphere-client' and you should make the .jars readable by all users (e.g. access mode 'rwxr--r--'), just in case. Then you should restart the Web Client.

    The logging will contain a stack trace. It will look scary, but it's not an error, just logging. Please, locate the actual class loading error and then see the preceding message that contains "~~~" (without the quotes) -- this message should say which class loader is being used.



  • 35.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 27, 2016 07:21 PM

    Is this the message you're looking for?

    [2016-06-27T15:18:17.868-04:00] [INFO ] data-service-pool-148        70000107 100004 200001 com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl         ~~~ The thread context class loader is org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@22d10bf6 (com.vmware.vsphere.client.endpointsapp_6.0.0 [240]) java.lang.Exception: DummyException

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.logClassLoader(SsoAdminServiceImpl.java:574)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:146)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:58)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:512)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:496)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:135)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:111)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy499.getUserSession(Unknown Source)

      at com.xxxxxxxxxxx

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy503.getAllPolicies(Unknown Source)

      at com.simplivity.backuppolicy.BackupPolicyDataAdapter.getAllModelObjects(BackupPolicyDataAdapter.java:252)

      at com.simplivity.common.data.BaseDataProviderAdapter.processQuery(BaseDataProviderAdapter.java:143)

      at com.simplivity.common.data.BaseDataProviderAdapter.getData(BaseDataProviderAdapter.java:106)

      at com.vmware.vise.data.query.impl.DataAdapterUtil.getDataFromAdapter(DataAdapterUtil.java:205)

      at com.vmware.vise.data.query.impl.DataAdapterUtil.getResultFromAdapter(DataAdapterUtil.java:166)

      at com.vmware.vise.data.query.impl.DataAdapterUtil.access$000(DataAdapterUtil.java:40)

      at com.vmware.vise.data.query.impl.DataAdapterUtil$1.call(DataAdapterUtil.java:78)

      at com.vmware.vise.data.query.impl.DataAdapterUtil$1.call(DataAdapterUtil.java:75)

      at com.vmware.vise.util.concurrent.ExecutorUtil$3.call(ExecutorUtil.java:630)

      at com.vmware.vise.util.concurrent.ExecutorUtil$ThreadContextPropagatingCallable.call(ExecutorUtil.java:984)

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

      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:745)



  • 36.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 07:51 PM

    Yes, this is the type of logging that I added. Is this the message that immediately precedes the class loading error? If it is, things are getting strange -- endpoints-app-6.0.0.war should contain "DynamicImport-Package: *" in its MANIFEST.MF, so it should be able to see all classes. Can you, please, check if your endpoints-app-6.0.0.war contains any dynamic imports in its manifest? Also, please, apply the fix that I attached and see if it will solve the problem.



  • 37.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 07:56 PM

    Please, also check if both the diagnostic message (with the three tildes) and the error message are logged by the same thread. The diagnostic message is logged by thread "data-service-pool-148". If the error message is logged by a different thread, please, find the first preceding diagnostic message by the same thread. It will be strange if it turns out that the endpoints-app class loader can't see some classes in some situations.



  • 38.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 27, 2016 08:25 PM

    Well, I copied the message from the logs before I hit the class loader error (called getUserSession() once to get the logging output that you added)

    I see the following in the endpoints-app-6.0.0.war manifest file, which matches what you'd expect:

    Manifest-Version: 1.0

    Archiver-Version: Plexus Archiver

    Created-By: Apache Maven

    Built-By: mts

    Build-Jdk: 1.7.0_21

    DynamicImport-Package: *

    Bundle-Vendor: VMware

    Bundle-Version: 6.0.0

    Tool: Bundlor 1.0.0.RELEASE

    Bundle-Name: endpoints-app

    Bundle-ManifestVersion: 2

    Bundle-SymbolicName: com.vmware.vsphere.client.endpointsapp

    Web-ContextPath: vsphere-client/endpoints

    Import-Package: com.vmware.vise.messaging.endpoints,com.vmware.vise.me

    ssaging.remoting,com.vmware.vise.messaging.validators,com.vmware.vise

    .vim.messaging.context.support,com.vmware.vise.vim.messaging.websocke

    t,com.vmware.vise.vim.messaging.websocket.tomcat,flex.messaging.valid

    ators,org.eclipse.virgo.web.dm,org.osgi.framework,org.springframework

    .aop;version="[3.1.4.RELEASE,3.1.4.RELEASE]",org.springframework.aop.

    config,org.springframework.aop.framework,org.springframework.aop.scop

    e,org.springframework.beans.factory.config,org.springframework.flex.m

    essaging;version="[1.5.2.RELEASE,1.5.2.RELEASE]",org.springframework.

    flex.remoting;version="[1.5.2.RELEASE,1.5.2.RELEASE]",org.springframe

    work.flex.servlet;version="[1.5.2.RELEASE,1.5.2.RELEASE]",org.springf

    ramework.security.config;version="[3.1.4.RELEASE,3.1.4.RELEASE]",org.

    springframework.web.context,org.springframework.web.filter,org.spring

    framework.web.servlet,org.springframework.web.servlet.handler,org.spr

    ingframework.web.servlet.mvc

    I tried loading your patched jars but when I start the web client service I'm getting these errors:

    [2016-06-27T16:15:29.684-04:00] [ERROR] iLogServiceListener@60745678  org.osgi.service.log.LogService                                   Bundle org.eclipse.equinox.ds_1.4.0.v20120112-1400, [SCR] Unexpected exception occurred! java.lang.IllegalStateException: BundleContext is no longer valid

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.checkValid(BundleContextImpl.java:931)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.getServiceReferences(BundleContextImpl.java:498)

      at org.eclipse.equinox.internal.ds.Reference.hasProviders(Reference.java:127)

      at org.eclipse.equinox.internal.ds.Resolver.selectNewlyUnsatisfied(Resolver.java:600)

      at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:364)

      at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)

      at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)

      at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

      at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:225)

      at org.eclipse.equinox.internal.cm.Activator.stop(Activator.java:57)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)

      at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)

      at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)

      at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)

      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)

      at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)

      at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)

      at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692)

      at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)

      at org.eclipse.osgi.framework.internal.core.InternalSystemBundle$1.run(InternalSystemBundle.java:261)

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

    Any idea what might be going on?  I'm running the patched class in security-service from this thread (that you provided initially) , plus the patched vim-services and vim-commons-vsphere that you provided in this latest zip.   Let me know if you'd like me to revert all jars back and simply replace vim-commons-vsphere and vim-services per your latest comments.



  • 39.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 08:40 PM

    The error you're getting is usually preceded by some other error(s) which were deemed fatal by the Virgo server, so it decided to shut down. What is the first error that you see in the log after you start up the web client?

    The patch in security-service may stay. It shouldn't cause problems.

    I tried these jars over here on release 6.0 Patch 02 (build 3271482) and they work. Are you using the same release in your environment? If not, please, tell me your build number and I will create jars for that build. However, it might take me a couple of hours because I have something else I need to do first.



  • 40.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 27, 2016 08:52 PM

    I'm running web client: Version 6.0.0 Build 3617395

    Gonna go back and get answers to your question about if the message is logged on the same thread and what messages preceded the context bundle errors.



  • 41.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 27, 2016 08:55 PM

    Okay, so you're using release 6.0 Update 2. I will build jars for it but, please, give me a few hours.



  • 42.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 27, 2016 09:32 PM

    Looks like both the error and diagnostic message are logged by http-bio-9443-exec-6. It also looks like the diagnostic message immediately precedes the class loading error. (I did a search for SsoServiceException. This is the first occurrence; it immediately follows your diagnostic message)

    [2016-06-27T17:11:29.525-04:00] [INFO ] http-bio-9443-exec-6        70000120 100009 200001 com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl        ~~~ The thread context class loader is org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader@23444e80 (com.simplivity.federationui_1.1.9 [379]) java.lang.Exception: DummyException

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.logClassLoader(SsoAdminServiceImpl.java:574)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:146)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:58)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:512)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:496)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:135)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:111)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy518.getUserSession(Unknown Source)

      at com.simplivity.xxxxxxxxxxxxxx

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy521.callGetSession(Unknown Source)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$38860bad.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$38860bad.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    [2016-06-27T17:11:29.533-04:00] [ERROR] http-bio-9443-exec-6        70000120 100009 200001 c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl  There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:156)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy518.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy521.callGetSession(Unknown Source)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$38860bad.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$38860bad.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: interface com.vmware.vim.binding.sso.SessionManager is not visible from class loader

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:135)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:111)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 92 common frames omitted

    Caused by: java.lang.IllegalArgumentException: interface com.vmware.vim.binding.sso.SessionManager is not visible from class loader

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:616)

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:592)

      at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:244)

      at java.lang.reflect.WeakCache.get(WeakCache.java:141)

      at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:455)

      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:738)

      at com.vmware.vim.vmomi.client.common.impl.ManagedObjectFactoryImpl.createManagedObject(ManagedObjectFactoryImpl.java:88)

      at com.vmware.vim.vmomi.client.http.impl.HttpClient.createStub(HttpClient.java:76)

      at com.vmware.vise.vim.commons.vmomi.ClientWithSharedHttpConfig.createStub(ClientWithSharedHttpConfig.java:66)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:147)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:58)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:512)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:496)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 95 common frames omitted

    Regarding the bundle context error, here is the first error I found in the log (after restarting web client service with your patched vim-commons-vsphere and vim-services jars). Perhaps this is just due to a version mismatch since I'm running update 2.

    C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\cmCatalog\com.vmware.vim.smssms.zip:US: 2

    [2016-06-27T17:20:14.437-04:00] [INFO ] region-dm-6                  o.s.beans.factory.support.DefaultListableBeanFactory              Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@495eba79: defining beans [configurationService,dataServiceExtensionRegistry,metadataServiceRegistry,objectModelProviderRegistry,keystoreService,objectReferenceService,searchBasedAdapter,propertyCollectorDataAdapter,propertyCollectorPropertyProvider,ssoService,queryServiceIndex,searchServiceExtensionRegistry,dataService,org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean#0,org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean#1,extensionService,org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean#2,resourceModelTypeProviderRegistryService,serviceRegistry,searchThreadPoolName,workerThreadFactory,timeUnitMillis,dataAdapterReadTimeout,dataAdapterConnectionTimeout,serenityThreadPool,searchServiceExtensionRegistryImpl,vmodlProvider,descriptorSource,searchService,searchBasedAdapterImpl,iconsLabelsPropertyProviderAdapter,vcenterObjectProviderAdapter,dsaSearchMetadataRegistrar,resourceModelTypeProviderRegistry,dataAdaptersThreadPoolHealthReporter,org.springframework.beans.factory.config.MethodInvokingFactoryBean#0,queryServiceIndexImpl,queryServiceSharedHttpConfigPool,propertyCollectorDataAdapterImpl,dsaPcSearchMetadataRegistrar]; root of factory hierarchy

    [2016-06-27T17:20:14.438-04:00] [INFO ] region-dm-6                  .a.d.i.BlueprintEventPostingOsgiBundleApplicationContextListener  Sending event to topic 'org/osgi/service/blueprint/container/FAILURE' with properties '{bundle.version=6.0.0, bundle=com.vmware.vim.dataserviceadapters_6.0.0 [211], bundle.symbolicName=com.vmware.vim.dataserviceadapters, exception=org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchBasedAdapter': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchBasedAdapterImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'searchService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceIndexImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryServiceIndexImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceSharedHttpConfigPool' while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters], type=5, timestamp=1467062414438, bundle.id=211}'

    [2016-06-27T17:20:14.450-04:00] [ERROR] region-dm-6                  org.eclipse.virgo.medic.eventlog.default                        AG0000E Application context creation failure for bundle 'com.vmware.vim.dataserviceadapters' version '6.0.0'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchBasedAdapter': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchBasedAdapterImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'searchService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceIndexImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryServiceIndexImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceSharedHttpConfigPool' while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

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

      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:294)

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

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

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

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

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

      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)

      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)

      at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

      at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)

      at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)

      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:745)

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchBasedAdapterImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'searchService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceIndexImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryServiceIndexImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceSharedHttpConfigPool' while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

      at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)

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

      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:294)

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

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

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

      at org.eclipse.gemini.blueprint.service.exporter.support.OsgiServiceFactoryBean.afterPropertiesSet(OsgiServiceFactoryBean.java:198)

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

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

      ... 17 common frames omitted

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchService' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceIndexImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryServiceIndexImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceSharedHttpConfigPool' while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

      at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)

      at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:441)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)

      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.doGetBean(AbstractBeanFactory.java:313)

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

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)

      ... 31 common frames omitted

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryServiceIndexImpl' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]: Cannot resolve reference to bean 'queryServiceSharedHttpConfigPool' while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)

      at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)

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

      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:294)

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

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

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

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)

      ... 41 common frames omitted

    Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean] for bean with name 'queryServiceSharedHttpConfigPool' defined in URL [bundleentry://211.fwk1551486100/META-INF/spring/bundle-context.xml]; nested exception is java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1262)

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

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

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

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

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

      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)

      ... 53 common frames omitted

    Caused by: java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean not found from bundle [com.vmware.vim.dataserviceadapters]

      at org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:101)

      at org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:155)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

      at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)

      at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:417)

      at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1283)

      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1254)

      ... 59 common frames omitted

    Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean in KernelBundleClassLoader: [bundle=com.vmware.vim.dataserviceadapters_6.0.0]

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

      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

      at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)

      at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

      at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)

      at org.eclipse.gemini.blueprint.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:97)

      ... 65 common frames omitted

    Caused by: java.lang.ClassNotFoundException: com.vmware.vise.vim.commons.vmomi.vc.VcAwareSharedHttpConfigPoolFactoryBean

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

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

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

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

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

      ... 70 common frames omitted

    Let me know if I missed anything.  Thanks again for digging into this.



  • 43.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 28, 2016 05:02 PM

    Okie-dokie, here are my answers:

    1. Regarding the diagnostic message about the class loader:

    Your latest post is a lot more informative because the latest messages show that the class loader is com.simplivity.federationui_1.1.9, not com.vmware.vsphere.client.endpointsapp_6.0.0. So, there are two ways to solve the problem:

    1.1. Add the following to your federation-ui bundle's META-INF/MANIFEST.MF:

    Require-Bundle: com.vmware.sso.vmodl

    Since your own class loader is being used, if you make it able to see the necessary SSO classes, then there should be no exceptions.

    The upside of this approach is that you won't have to patch your customer's environment(s). The downside is that it's not 'clean' -- it breaks the separation of concern. Normally, your bundle shouldn't know about the existence of a bundle with symbolic name 'com.vmware.sso.vmodl'. But I guess it will be easier for you to use this approach, regardless if it's clean or not.

    By the way, if you don't like using the 'Require-Bundle' clause, you can opt to add the necessary individual packages to the 'Import-Package' clause. You will have to add each package which you see in the exceptions in the log (e.g. package com.vmware.vim.binding.sso). However, this is a bit brittle because you may miss some package.

    1.2. The second approach is to use the fixed classes which I have attached to this post. If you encounter some other errors, please, let me know and I will help.

    (This time I opted to give you classes, not jars, just in case. After all, replacing individual classes is less intrusive than replacing whole jars.)

    2. The server startup error is caused by the fact that I gave you jars for release 6.0 Patch 2, but you have release 6.0 Update 2. Some classes, which are present in Update 2, are missing in Patch 2.



  • 44.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 28, 2016 07:33 PM

    Alright, so bear with me as I try to explain what I tested :smileyhappy:

    1. First, I tried adding Require-Bundle: to federation-ui's MANIFEST file.  On the vCenter server (running update 2) I kept installed:

    1. The patched SSOUtilInternal (provided here Re: "SSO admin service failure" exception in vSphere 6.0.2)
    2. The patched UserSessionServiceImpl (provided here Re: Exception thrown by SsoUtil: SSO admin service failure)

    I then installed my extension with the updated MANIFEST, flooded UserSessionService.getUserSession() and received this exception:

    [2016-06-28T15:02:56.810-04:00] [ERROR] http-bio-9443-exec-6          c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl  There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:176)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

      at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy519.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

      at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy522.callGetSession(Unknown Source)

      at sun.reflect.GeneratedMethodAccessor302.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$7ff01d66.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$7ff01d66.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: interface com.vmware.vim.vmomi.client.common.Stub is not visible from class loader

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:134)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:110)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 89 common frames omitted

    Caused by: java.lang.IllegalArgumentException: interface com.vmware.vim.vmomi.client.common.Stub is not visible from class loader

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:616)

      at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:592)

      at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:244)

      at java.lang.reflect.WeakCache.get(WeakCache.java:141)

      at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:455)

      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:738)

      at com.vmware.vim.vmomi.client.common.impl.ManagedObjectFactoryImpl.createManagedObject(ManagedObjectFactoryImpl.java:88)

      at com.vmware.vim.vmomi.client.http.impl.HttpClient.createStub(HttpClient.java:76)

      at com.vmware.vise.vim.commons.vmomi.ClientWithSharedHttpConfig.createStub(ClientWithSharedHttpConfig.java:66)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:145)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:57)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 92 common frames omitted

    Next, I tried your second solution with the patched classes. I updated SsoUtilInternal and SsoAdminServiceImpl in vim-services.jar and I also kept the updated security-service-6.0.0.jar (UserSessionServiceImpl) installed.  I flooded UserSessionService.getUserSession() and received this error, which looks the same as what I got originally when I first posted months ago:

    [2016-06-28T15:17:34.956-04:00] [ERROR] http-bio-9090-exec-11        c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl  There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:176)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

      at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy521.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

      at sun.reflect.GeneratedMethodAccessor330.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy524.callGetSession(Unknown Source)

      at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$4c866486.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$4c866486.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:135)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:111)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 89 common frames omitted

    Caused by: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      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.Constructor.newInstance(Constructor.java:526)

      at java.lang.Class.newInstance(Class.java:383)

      at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:173)

      at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:31)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:141)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.unmarshall(UnmarshallerImpl.java:102)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:89)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:84)

      at com.vmware.vim.vmomi.client.common.impl.SoapFaultStackContext.setValue(SoapFaultStackContext.java:41)

      at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:112)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:273)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:230)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:144)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:51)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:186)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:115)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:581)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:562)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:348)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:308)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:182)

      at com.sun.proxy.$Proxy121.retrieveServiceContent(Unknown Source)

      at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.getSsoAdminServiceContent(SsoUtilInternal.java:258)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:144)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:58)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 92 common frames omitted

    Do you think using the patched UserSessionServiceImpl is a problem? Since your patch of that class was for 6.0 patch 2, not 6.0 update 2? Let me know if I missed anything.

    Best,

    Mike



  • 45.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 28, 2016 07:44 PM

    Also: When I tested your second solution (using patched classes) I removed Require-Bundle: from the MANIFEST file.  I read your post as try one or the other, but not both.



  • 46.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 28, 2016 09:08 PM

    1. In order to make class com.vmware.vim.vmomi.client.common.Stub visible to your class loader, you'll have to add one more bundle to the 'Require-Bundle' clause: com.vmware.vlsi.client

    2. Sorry, but I must ask: is it 100% certain that the patch for UserSessionServiceImpl is applied on this environment? It seems extremely unlikely that a version mismatch will result in this exception. I'd say that other exceptions would have been expected.

    I attached a patched UserSessionServiceImpl for release 6.0 Update 2.



  • 47.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 28, 2016 09:52 PM

    Just applied your UserSessionServiceImpl patch (along with SSOUtilInternal) and added the two Require-Bundle packages:

    (MANIFEST.MF)

    Require-Bundle: com.vmware.sso.vmodl,

    com.vmware.vlsi.client

    I'm now seeing this error after calling getUserSession() about 400 times. Is there a way to get more debug info?  Not sure if this is helpful

    [2016-06-28T17:49:05.033-04:00] [ERROR] http-bio-9090-exec-3          c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

      at sun.reflect.GeneratedMethodAccessor293.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy519.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

      at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy522.callGetSession(Unknown Source)

      at sun.reflect.GeneratedMethodAccessor294.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$de4753c3.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$de4753c3.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy592

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:134)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:110)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 89 common frames omitted

    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy592

      at sun.reflect.GeneratedConstructorAccessor237.newInstance(Unknown Source)

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

      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      at java.lang.reflect.Proxy.newInstance(Proxy.java:764)

      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:755)

      at com.vmware.vim.vmomi.client.common.impl.ManagedObjectFactoryImpl.createManagedObject(ManagedObjectFactoryImpl.java:88)

      at com.vmware.vim.vmomi.client.http.impl.HttpClient.createStub(HttpClient.java:76)

      at com.vmware.vise.vim.commons.vmomi.ClientWithSharedHttpConfig.createStub(ClientWithSharedHttpConfig.java:66)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:145)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:57)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 92 common frames omitted



  • 48.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 28, 2016 10:22 PM

    Offhand, it looks to me that some class's static initializer has failed while creating a dynamic proxy. Yes, some more logging would be necessary in order to find out which class has crashed. It's almost certain that some additional imports have to be added in order to resolve this problem. Are there any preceding error messages (by the same thread) in the log? If not, things will get ugly and I might have to create a Java agent which will instrument certain classes as they are loaded (the idea is to add some logging to them) and this will hopefully show where the error is. But I can't do this today because there's lots of other stuff I need to do. Maybe tomorrow...

    Can you, please, experiment with the patched classes? I'd like to see if that will solve the problem. It will be useful information, even if in the end you decide to go with the imports instead of the patch.



  • 49.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 28, 2016 10:30 PM

    Sure thing.  I'll give that a try tonight and let you know how it goes. Also I did a search for the first occurrence of this exception. Looks like it may be related to com.vmware.vim.vmomi.core.Future? All exceptions after that do list this Future class.  If you want I'll PM you the full log if you think that will help.

    [2016-06-28T17:48:56.127-04:00] [INFO ] http-bio-9090-exec-9         70000103 100008 200001 com.vmware.vise.util.session.SessionUtil                          Associated sessionId 100008 with clientId 200001. Context path: /vsphere-client/com.simplivity.federation-ui

    [2016-06-28T17:48:56.159-04:00] [ERROR] http-bio-9090-exec-9         70000103 100008 200001 c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:180)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy519.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy522.callGetSession(Unknown Source)

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

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$de4753c3.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$de4753c3.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: com.vmware.vim.vmomi.core.Future

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:134)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:110)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 92 common frames omitted

    Caused by: java.lang.NoClassDefFoundError: com.vmware.vim.vmomi.core.Future

      at com.sun.proxy.$Proxy592.<clinit>(Unknown Source)

      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.Constructor.newInstance(Constructor.java:526)

      at java.lang.reflect.Proxy.newInstance(Proxy.java:764)

      at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:755)

      at com.vmware.vim.vmomi.client.common.impl.ManagedObjectFactoryImpl.createManagedObject(ManagedObjectFactoryImpl.java:88)

      at com.vmware.vim.vmomi.client.http.impl.HttpClient.createStub(HttpClient.java:76)

      at com.vmware.vise.vim.commons.vmomi.ClientWithSharedHttpConfig.createStub(ClientWithSharedHttpConfig.java:66)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:145)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:57)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 95 common frames omitted



  • 50.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 28, 2016 10:39 PM

    If class com.vmware.vim.vmomi.core.Future cannot be found, and if we assume that your class loader is being used, then you'd have to add bundle 'com.vmware.vlsi.core' to the 'Require-Bundle' clause in the manifest. I don't dare to guess how many more bundles will need to be added. Maybe not many, but I can't be sure.



  • 51.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 29, 2016 01:40 PM

    Adding com.vmware.vlsi.core to my Require-Bundle packages seems to have fixed the problem.

    I tested again running your fix for SsoUtilInternal‌, your fix for UserSessionServiceImpl, and put the following in my manifest:

    Require-Bundle: com.vmware.sso.vmodl,

    com.vmware.vlsi.client,

    com.vmware.vlsi.core

    I called getUserSession() about 2500 times in a loop and have not hit any error :smileyhappy:

    Also, to cover all bases, I reset the jars for the two patched classes above and applied your patch (set 2__fix.zip) from a few days ago.   This resulted in the same message as initially, regardless of whether I put Require-Bundle in the manifest:

    [2016-06-29T09:28:24.383-04:00] [ERROR] http-bio-9090-exec-8          c.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl   There was an issue while extracting the list of system domains com.vmware.vise.vim.security.sso.exception.SsoServiceException: SSO admin service failure

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:256)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.extractSystemDomains(UserSessionServiceImpl.java:176)

      at com.vmware.vsphere.client.usersession.impl.UserSessionServiceImpl.getUserSession(UserSessionServiceImpl.java:153)

      at sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy518.getUserSession(Unknown Source)

      at com.simplivity.federation.FederationServiceImpl.callGetSession(FederationServiceImpl.java:183)

      at sun.reflect.GeneratedMethodAccessor309.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)

      at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)

      at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      at com.sun.proxy.$Proxy521.callGetSession(Unknown Source)

      at sun.reflect.GeneratedMethodAccessor308.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:606)

      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)

      at com.vmware.vise.messaging.remoting.JavaAdapterEx.invoke(JavaAdapterEx.java:50)

      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)

      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)

      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1011)

      at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:573)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$b46b4c49.serviceMessage(<generated>)

      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)

      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)

      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)

      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)

      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)

      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)

      at com.vmware.vise.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$b46b4c49.service(<generated>)

      at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:109)

      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)

      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)

      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)

      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

      at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

      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:745)

    Caused by: java.util.concurrent.ExecutionException: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      at java.util.concurrent.FutureTask.report(FutureTask.java:122)

      at java.util.concurrent.FutureTask.get(FutureTask.java:188)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:89)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getClientMonitor(SsoAdminServiceImpl.java:135)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.<init>(SsoAdminServiceImpl.java:111)

      at com.vmware.vise.vim.security.sso.SsoUtil.getAdminService(SsoUtil.java:252)

      ... 89 common frames omitted

    Caused by: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

      at sun.reflect.GeneratedConstructorAccessor272.newInstance(Unknown Source)

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

      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

      at java.lang.Class.newInstance(Class.java:383)

      at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:173)

      at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:31)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:141)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.unmarshall(UnmarshallerImpl.java:102)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:89)

      at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:84)

      at com.vmware.vim.vmomi.client.common.impl.SoapFaultStackContext.setValue(SoapFaultStackContext.java:41)

      at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:112)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:273)

      at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:230)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:144)

      at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:51)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:186)

      at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:115)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:581)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:562)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:348)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:308)

      at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:182)

      at com.sun.proxy.$Proxy121.retrieveServiceContent(Unknown Source)

      at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.getSsoAdminServiceContent(SsoUtilInternal.java:258)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.processLogin(SsoAdminServiceImpl.java:144)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.access$300(SsoAdminServiceImpl.java:58)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:497)

      at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl$SolutionUserAuthenticator.authenticate(SsoAdminServiceImpl.java:481)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:209)

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl$1.call(ClientMonitorImpl.java:206)

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

      at com.vmware.vise.util.concurrent.client.ClientMonitorImpl.authenticate(ClientMonitorImpl.java:74)

      ... 92 common frames omitted

    So, it seems I need the patched SsoUtilInternal, the patched UserSessionServiceImpl, and those 3 Require-Bundle packages in the Manifest in order to call getUserSession() frequently without hitting exceptions.

    Applying just your patch for SsoUtilInternal and SsoAdminServiceImpl did not help, even with the modified Manifest file.

    Does this make sense to you?  I was hoping to avoid modifying the manifest; that probably would not be a solution we'd want to keep long term.  Thanks again



  • 52.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 29, 2016 01:52 PM

    Thanks for the feedback.

    You shouldn't be applying the patch from set2__fix.zip, because it's for a different build of the Web Client. You should apply the following:

    1. The patched UserSessionServiceImpl.class (for release 6.0 Update 2) which I attached individually to a previous post

    2. The patch from SsoAdminServiceImpl_SsoUtilInternal_60u2_build3617395.zip

    This should fix the problem without any need for you to add Require-Bundle to your bundle's manifest.

    The patch in UserSessionServiceImpl fixes the problem with too many authenticated SSO sessions.

    The patch in SsoAdminServiceImpl and SsoUtilInternal fixes the class loading problem.

    The above two patches are unrelated. In other words, if you're still getting "Failed to create session", then there's something wrong with the patch in UserSessionServiceImpl, but it doesn't mean anything with regard to the patch in SsoAdminServiceImpl and SsoUtilInternal.

    Once we get a clear idea what works and what doesn't, and when we get all issues fixed, I will publish a bottom-line post in which I will attach the final fixes along with instructions. This should help other people who may have the same problem and may have found this thread and need just the bottom line without having to read the whole thread.



  • 53.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 29, 2016 02:16 PM

    Thanks for the clarification.  Okay - running:

    I am able to call UserSessionService.getUserSession() 3000 times in a loop, no errors. This is great news! :smileyhappy:

    (6.0 Update 2 - Version 6.0.0 Build 3617395)



  • 54.  RE: Exception thrown by SsoUtil: SSO admin service failure
    Best Answer

    Broadcom Employee
    Posted Jun 29, 2016 09:00 PM

    Cool! Now what remains is for you or your customer to file an SR. I already logged bugs for these fixes and the bugs are scheduled for Update 3, which will come in February 2017. If you wish to expedite the fix and get an official hot patch, please, log the SR.

    I'm attaching the latest patches:

    1. For release 6.0 Patch 2:

    UserSessionServiceImpl_class_60p02_build3271482.zip

    class_loading_patch_for_60p02_build3271482.zip

    2. For release 6.0 Update 2

    UserSessionServiceImpl_class_60u2_build3617395.zip

    class_loading_patch_for_60u2_build3617395.zip



  • 55.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jun 30, 2016 09:51 PM

    One more question if you have a moment.  We're going to ask the customer to file an SR from their support account, do you have any guidance on the wording they should use? I understand this probably isn't your speciality but this process is new to us and we want to make sure end user support understands the problem.  I was thinking something along the lines of...


    SimpliVity Web Client Extension, installed from VMware Solution Exchange is currently unusable on our vCenter.  We contacted the publisher, SimpliVity, who states this is a problem with vSphere Web Client.  SimpliVity has referenced this VMware community discussion (Re: Exception thrown by SsoUtil: SSO admin service failure) and the following log message as part of their root cause analysis:


    [ Stack Trace ]


    Thanks again.



  • 56.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jul 01, 2016 02:03 PM

    Hi Mike ,


    While raising the Request please mention my email Id dkarri@vmware.com and tell them we are in full context. If required ask them to assign the Support Request to me.


    Please let me know if there is anything further required.

    Regards,
    Durga



  • 57.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jul 01, 2016 02:04 PM

    The wording looks good btw.



  • 58.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jul 01, 2016 02:55 PM

    Thanks! I have instructed our support team to have the customer file an SR.  Thank you dkarri‌ and vesuvius_prime‌ for your time and dedication on this issue, much appreciated :smileyhappy:



  • 59.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Sep 02, 2016 02:48 PM

    Hello,

    I have had a customer log an SR as you recommended and we received notification back from VMWare support that the next release of "vcenter server is vcenter server update 2a ( patch 03) which might tentatively get released in the month of October".  Will this patch have these fixes included or do we have to wait until update 3?

    Thank you,



  • 60.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Jan 17, 2017 06:25 PM

    I would also like to know if this error is resolved in vcenter 6.0 U2a or in U3?



  • 61.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jan 19, 2017 09:36 AM


  • 62.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Apr 19, 2017 05:25 PM

    I just got this error in 6.0 U2a (Version 6.0.0, Build 4191365)

    [2017-04-19T17:04:21.028Z] [ERROR] http-bio-9090-exec-116       70070626 100724 ###### com.vmware.vsphere.client.security.websso.LogonProcessorImpl      Error when processing the success websso authn message com.vmware.vise.vim.security.sso.exception.SsoServiceException: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

            at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getConfigurationManagementService(SsoAdminServiceImpl.java:164)

            at com.vmware.vsphere.client.security.websso.LogonProcessorImpl.authenticationSuccess(LogonProcessorImpl.java:157)

            at com.vmware.identity.websso.client.endpoint.SsoResponseListener.consumeResponse(SsoResponseListener.java:93)

            at com.vmware.vsphere.client.security.websso.WebssoAssertionHandler.handleRequest(WebssoAssertionHandler.java:38)

            at org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:67)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)

            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:139)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at com.vmware.vise.security.websso.SecurityRequestWrapperFilter.doFilterInternal(SecurityRequestWrapperFilter.java:47)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

            at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)

            at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)

            at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

            at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at com.vmware.vise.security.SessionManagementFilter.doFilterInternal(SessionManagementFilter.java:82)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at com.vmware.vsphere.client.logging.MDCLogFilter.doFilterInternal(MDCLogFilter.java:41)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at com.vmware.vise.extensionfw.DeploymentFilter.doFilter(DeploymentFilter.java:35)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at com.vmware.vise.util.jsp.JspFilter.doFilterInternal(JspFilter.java:54)

            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

            at org.eclipse.virgo.web.tomcat.support.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:33)

            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)

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

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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

    Caused by: com.vmware.vim.binding.vmodl.RuntimeFault: Unable to dispatch request: Failed to create session

            at sun.reflect.GeneratedConstructorAccessor1497.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

            at java.lang.reflect.Constructor.newInstance(Unknown Source)

            at java.lang.Class.newInstance(Unknown Source)

            at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:173)

            at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)

            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext.<init>(ComplexStackContext.java:31)

            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.parse(UnmarshallerImpl.java:141)

            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$UnmarshallSoapFaultContext.unmarshall(UnmarshallerImpl.java:102)

            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:89)

            at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshalSoapFault(UnmarshallerImpl.java:84)

            at com.vmware.vim.vmomi.client.common.impl.SoapFaultStackContext.setValue(SoapFaultStackContext.java:41)

            at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:112)

            at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:273)

            at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:230)

            at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:144)

            at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:51)

            at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:186)

            at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:115)

            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:581)

            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:562)

            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:348)

            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:308)

            at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:182)

            at com.sun.proxy.$Proxy496.retrieveServiceContent(Unknown Source)

            at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.getSsoAdminServiceContent(SsoUtilInternal.java:254)

            at com.vmware.vise.vim.security.sso.impl.SsoAdminServiceImpl.getConfigurationManagementService(SsoAdminServiceImpl.java:158)

            ... 75 common frames omitted



  • 63.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Apr 19, 2017 05:17 PM

    Well, I got here after seeing this error in 6.0 Update 2a, so it's safe to assume the u2a does NOT fix this particular problem.



  • 64.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Aug 18, 2016 07:03 AM

    Hi,I meet the problem too,but could you tell me how can I reproduce the problem?Only one of my vCenter have the problem,But It's strange that on that vCenter,some of my controller for example "a"  "b" "c"  have not the problem,but  some of my controller for example "d"  "e" "f" have the problem  when invoke the UserSessionServiceImpl.getUserSession().

    Even I restart my vCenter many times,the "a"  "b" "c" are still ok,but the "d"  "e" "f" still have the problem.Could you tell my why?



  • 65.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted Aug 18, 2016 01:56 PM

    I don't know why you're seeing this on some vCenters and not all (assuming all vCenters are at the same version), but to reproduce I wrote an extension that calls UserSessionService.getUserSession() in a loop. After about 500 iterations I started seeing SsoServiceException in the logs.  Check out the attached sample projects, chassis-ui and chassis-service.  I added a toggle button to the Chassis Summary View that calls into ChassisService, which calls UserSessionService.getUserSession(). 



  • 66.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Broadcom Employee
    Posted Jun 13, 2016 08:22 AM

    This problem is currently under investigation by the vSphere Web Client team.

    A similar thread is: "SSO admin service failure" exception in vSphere 6.0.2

    Cheers,

    Vladi



  • 67.  RE: Exception thrown by SsoUtil: SSO admin service failure

    Posted May 08, 2017 07:37 AM

    Thanks for the info.

    maxbet