VMware {code} Community
adaptives
Contributor
Contributor

Debugging vCloud Java SDK

I have a simple piece of code which logs in as administrator and creates and organization. It runs perfectly well when I run it as standalone code, but it gives me an "unauthorized" error when I run it in an OSGI container (Virgo). The strange thing is there are no logs from httpclient, which seems to tell me that there was an exception (most likely a classloading issue) which was somehow reported as an authorization problem.

Here is the stack trace of the lines relevant to vCloud

com.vmware.vcloud.sdk.exception.UnauthorizedAccessException: Unauthorized

    at com.vmware.vcloud.sdk.RestUtil.login(RestUtil.java:296)

    at com.vmware.vcloud.sdk.VcloudClient.login(VcloudClient.java:321)

Does  anyone have thoughts on how this issue can be debugged ?

Does VMWare publish the sources of the Java SDK ?

--

Thanks

Parag

Tags (2)
0 Kudos
0 Replies