Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples KeystoneCreateTenant Exception null #179

Open
benxiaohai1212 opened this issue Jan 22, 2015 · 2 comments
Open

examples KeystoneCreateTenant Exception null #179

benxiaohai1212 opened this issue Jan 22, 2015 · 2 comments

Comments

@benxiaohai1212
Copy link

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?

@benxiaohai1212
Copy link
Author

OpenStackRequest [endpoint=http://192.168.1.200:35357/v3, method=POST, path=/auth/tokens, headers={Accept=[application/json]}, entity=com.woorea.openstack.base.client.Entity@4ec4396a, returnType=class com.woorea.openstack.keystone.model.Access]
OpenStackClientConnector connector;
connector.request(request);
connector == null
How to solve? thank you!!!

@meirlaker
Copy link
Contributor

Take a look at the solution I posted at
#165.

On Thu, Jan 22, 2015 at 11:14 AM, benxiaohai1212 [email protected]
wrote:

OpenStackRequest [endpoint=http://192.168.1.200:35357/v3, method=POST,
path=/auth/tokens, headers={Accept=[application/json]},
entity=com.woorea.openstack.base.client.Entity@4ec4396a, returnType=class
com.woorea.openstack.keystone.model.Access]
OpenStackClientConnector connector;
connector.request(request);
connector == null
How to solve? thank you!!!


Reply to this email directly or view it on GitHub
#179 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants