-
Notifications
You must be signed in to change notification settings - Fork 198
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
OpenStack throws NullPointerException when connecting #165
Comments
Make sure your maven dependencies include one of the 3 Connector projects Note: I am currently using the resteasy connector, but have not seen any Also, port 35357 is the default admin port for Keystone. I believe it is On Sun, Sep 21, 2014 at 1:34 PM, sinharnab [email protected] wrote:
|
Yes, it works. Thanks! |
Yes, I added the first library out of the three listed below and it worked. Thank alot. |
I'm glad it worked. As I wrote, I happen to use resteasy, but only because I tried it first (I liked the name!) and it worked. Can anyone explain why there are multiple implementations? Are there specific environments or scenarios where one is preferred? |
Actually OpenStack Java SDK is generic library so you can choose the JAX-RS client provider. |
I'm trying to connect OpenStack for access before creating tenant. It gives a NullPointerException from OpenStackClient.request() in the "openstack-client-3.2.1.jar".
The code and the beginning of stack trace are as below:
The stacktrace is:
[java] java.lang.NullPointerException [java] at com.woorea.openstack.base.client.OpenStackClient.request(OpenStackClient.java:51) [java] at com.woorea.openstack.base.client.OpenStackClient.execute(OpenStackClient.java:66) [java] at com.woorea.openstack.base.client.OpenStackRequest.execute(OpenStackRequest.java:98) [java] at vep.openstack.OpenStackConnector.addUser(OpenStackConnector.java:624)
I looked at the source files of the package and tracing from the stack, the exception occurs while executing the line 51 in com.woorea.openstack.base.client.OpenStackClient: return connector.request(request); The variable 'connector' of type 'OpenStackClientConnector connector' doesn't get initialized (remains null). Is there anything I might need to do to initialize it?
Any help would be highly appreciated. Thank you.
The text was updated successfully, but these errors were encountered: