VMware {code} Community
AmirB201110141
Contributor
Contributor

SDK isn't thread-safe?

I've encounter this error:

exception=com.vmware.vcloud.sdk.utility.VCloudException: Collection was
modified; enumeration operation may not execute.
   at com.vmware.vcloud.sdk.Vdc.GetVdcById(vCloudClient client, String
vCloudId)

[the line of code is: Vdc vdc = Vdc.GetVdcById(m_client, VcdId) ]

shouldn't the sdk be thread-safe?!

thank you

0 Kudos
2 Replies
rkamal
VMware Employee
VMware Employee

Hi,

Can you give more details.

What did you do to hit this issue?

Regards,

Rajesh Kamal.

0 Kudos
AmirB201110141
Contributor
Contributor

Actually I didn't do anything special - I've created and removed VApps and imported Vms from vcenter into my vapps.

0 Kudos