java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)

Spring JIRA | lajos papp | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    im trying to use the cloud foundry addon, against a micro CF and agains a custom cloud foundry (installed from source on amazon ec2, with real DNS) when i try to log in i get the following error in both case: roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted) java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:469) at com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:479) it seems that in the login method, it was using the UaaAwareAppCloudClient always connectiong to constants CLOUD_FOUNDRY_URL (http://api.cloudfoundry.com) instead using the 'cloudControllerUrl' parameter applying the attached patch does make it able to connect to custom CF instances: roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info Credentials saved. Logged in successfully with email address 'foo@bar.com' cheers, lalyos

    Spring JIRA | 6 years ago | lajos papp
    java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)
  2. 0

    im trying to use the cloud foundry addon, against a micro CF and agains a custom cloud foundry (installed from source on amazon ec2, with real DNS) when i try to log in i get the following error in both case: roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted) java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:469) at com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194) at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:479) it seems that in the login method, it was using the UaaAwareAppCloudClient always connectiong to constants CLOUD_FOUNDRY_URL (http://api.cloudfoundry.com) instead using the 'cloudControllerUrl' parameter applying the attached patch does make it able to connect to custom CF instances: roo> cloud foundry login --email foo@bar.com --password XXXXXX --cloudControllerUrl http://api.lalyos.info Credentials saved. Logged in successfully with email address 'foo@bar.com' cheers, lalyos

    Spring JIRA | 6 years ago | lajos papp
    java.lang.IllegalStateException: Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Operation could not be completed: com.vmware.appcloud.client.AppCloudException: 403 Forbidden (Operation not permitted)

      at org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login()
    2. org.springframework.roo
      UaaAwareAppCloudClient.login
      1. org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.login(UaaAwareAppCloudClient.java:469)
      1 frame
    3. com.vmware.appcloud
      AppCloudClient.loginIfNeeded
      1. com.vmware.appcloud.client.AppCloudClient.loginIfNeeded(AppCloudClient.java:194)
      1 frame
    4. org.springframework.roo
      UaaAwareAppCloudClient.loginIfNeeded
      1. org.springframework.roo.addon.cloud.foundry.UaaAwareAppCloudClient.loginIfNeeded(UaaAwareAppCloudClient.java:479)
      1 frame