jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Daggett <jeremy.dagg...@RACKSPACE.COM>
Subject FW: Error in JCloud KeystoneApi getRoleAdminApi
Date Wed, 10 Dec 2014 17:33:26 GMT
Forwarding to user@Š

Hi Alka!

It could be one of the following scenarios you are running in to:

- the extension is not available in your OpenStack installation
- the user does not have an Admin role to access this specific API

Does the extension show up when executing this code?

  Set<Extension> extensions = keystoneApi.getExtensionApi().list();
  // iterate through to see what extensions are available...

Please let us know, thanks!


On 12/9/14, 9:27 PM, "Alka Beniwal" <beniwalalka@gmail.com> wrote:

>I am developing a code to retrieve list of roles in OpenStack.
> RoleAdminApi roleAdminApi=  keystoneApi.getRoleAdminApi().get();//error
>        FluentIterable<? extends Role> list1 = roleAdminApi.list();
>java.lang.IllegalStateException: Optional.get() cannot be called on an
>absent value
>Any help is appreciated.

View raw message