Skip to content

examples KeystoneCreateTenant Exception null #179

Description

@benxiaohai1212

public static final String KEYSTONE_AUTH_URL = "http://xxx.xxx.xxx.xxx:35357/v3";
public static final String KEYSTONE_USERNAME = "admin";
public static final String KEYSTONE_PASSWORD = "********";

Keystone keystone = new Keystone(ExamplesConfiguration.KEYSTONE_AUTH_URL);
//access with unscoped token
Access access = keystone.tokens().authenticate(
new UsernamePassword(ExamplesConfiguration.KEYSTONE_USERNAME, ExamplesConfiguration.KEYSTONE_PASSWORD))
.execute();

Exception in thread "main" java.lang.NullPointerException
at com.woorea.openstack.base.client.OpenStackClient.request(OpenStackClient.java:51)
at com.woorea.openstack.base.client.OpenStackClient.execute(OpenStackClient.java:66)
at com.woorea.openstack.base.client.OpenStackRequest.execute(OpenStackRequest.java:98)
at com.woorea.openstack.examples.keystone.KeystoneCreateTenant.main(KeystoneCreateTenant.java:21)

why?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions