Re: novaApi.getKeyPairApi() for Openstack Liberty

2016-04-26 Thread Kai Liu
Thanks, Ignasi.

I just updated to the latest SNAPSHOT. I confirme it resolved my problems.



On Tue, Apr 26, 2016 at 2:49 PM, Ignasi Barrera 
wrote:

> Sure, that patch is the pull request I referenced. Expect it to be
> available in some hours.
> El 26/4/2016 8:42 p. m., "Kai Liu"  escribió:
>
> Thanks very much, my SNAPSHOT is too old.  I enforced to update the
> snapshot just now, All Apis work now excpet the routerApi:
>
> try {
> neutronApi.getRouterApi(region);
> } catch (Exception e) {
> LOGGER.error(e);
> }
>
> *2016-04-26 14:39:11 ERROR OpenstackAPI:364 -
> com.google.common.util.concurrent.UncheckedExecutionException:
> java.lang.NullPointerException: namespace*
>
> I found a related tickit:
>
>
> *https://issues.apache.org/jira/browse/JCLOUDS-1104
> *
>
> It mentioned a patch to solve this, could you please include the patch in
> the new snapshot?
>
> On Tue, Apr 26, 2016 at 2:36 PM, Ignasi Barrera  wrote:
>
>> The fix in this pull request might be relevant:
>> https://github.com/jclouds/jclouds/pull/948
>>
>> I plan to merge it later today so you should have a new SNAPSHOT to test
>> with shortly after that.
>> El 26/4/2016 7:21 p. m., "Kai Liu"  escribió:
>>
>>> Thanks, I am looking into the email thread. I was wondering if you use
>>> other APIs? I am using 2.0.0-snapshot, some APIs work fine like:
>>> ImageApi, ServerApi, NetworkApi; but other APIs do not work: KeypairApi,
>>> VolumeApi, RouteApi, SecurityGroupApi, ElasticIpApi
>>>
>>> On Tue, Apr 26, 2016 at 1:15 PM, Apoorva Deshpande 
>>> wrote:
>>>
 Recently I encountered similar error  [1] but 2.0.0-SNAPSHOT jar fixed
 it for me.
 You can follow the email thread for more information. It also mentions
 what could have possibly fixed it in 2.0.0-SNAPSHOT.

 http://www.mail-archive.com/dev@jclouds.apache.org/msg06427.html

 From: Kai Liu 
 Reply-To: "user@jclouds.apache.org" 
 Date: Tuesday, April 26, 2016 at 10:11 AM
 To: "user@jclouds.apache.org" 
 Subject: novaApi.getKeyPairApi() for Openstack Liberty

 Hi,

 I was wondering if anyone is using Openstack Liberty. I am using
 jclouds (2.0.0-snapshot) and tried to get KeyPairApi using the following
 code:

 try {
 Optional keyapi = api.getKeyPairApi(region);
 KeyPairApi keyPairApi = keyapi.get();
 } catch (Exception e) {
 LOGGER.error(e);
 }

 The following error occurs:

 *java.lang.IllegalStateException: Optional.get() cannot be called on an
 absent value*

 But the codes works for Openstack Kilo. Any help would be greatly
 appreciated

 Best regards,

 --

 Kai Liu
 Ph.D. student
 Department of Geography and GeoInformation Science
 George Mason University

>>>
>>>
>>>
>>> --
>>>
>>> Kai Liu
>>> Ph.D. student
>>> Department of Geography and GeoInformation Science
>>> George Mason University
>>>
>>
>
>
> --
>
> Kai Liu
> Ph.D. student
> Department of Geography and GeoInformation Science
> George Mason University
>
>


-- 

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University


Re: novaApi.getKeyPairApi() for Openstack Liberty

2016-04-26 Thread Kai Liu
Thanks very much, my SNAPSHOT is too old.  I enforced to update the
snapshot just now, All Apis work now excpet the routerApi:

try {
neutronApi.getRouterApi(region);
} catch (Exception e) {
LOGGER.error(e);
}

*2016-04-26 14:39:11 ERROR OpenstackAPI:364 -
com.google.common.util.concurrent.UncheckedExecutionException:
java.lang.NullPointerException: namespace*

I found a related tickit:


*https://issues.apache.org/jira/browse/JCLOUDS-1104
*

It mentioned a patch to solve this, could you please include the patch in
the new snapshot?

On Tue, Apr 26, 2016 at 2:36 PM, Ignasi Barrera  wrote:

> The fix in this pull request might be relevant:
> https://github.com/jclouds/jclouds/pull/948
>
> I plan to merge it later today so you should have a new SNAPSHOT to test
> with shortly after that.
> El 26/4/2016 7:21 p. m., "Kai Liu"  escribió:
>
>> Thanks, I am looking into the email thread. I was wondering if you use
>> other APIs? I am using 2.0.0-snapshot, some APIs work fine like:
>> ImageApi, ServerApi, NetworkApi; but other APIs do not work: KeypairApi,
>> VolumeApi, RouteApi, SecurityGroupApi, ElasticIpApi
>>
>> On Tue, Apr 26, 2016 at 1:15 PM, Apoorva Deshpande 
>> wrote:
>>
>>> Recently I encountered similar error  [1] but 2.0.0-SNAPSHOT jar fixed
>>> it for me.
>>> You can follow the email thread for more information. It also mentions
>>> what could have possibly fixed it in 2.0.0-SNAPSHOT.
>>>
>>> http://www.mail-archive.com/dev@jclouds.apache.org/msg06427.html
>>>
>>> From: Kai Liu 
>>> Reply-To: "user@jclouds.apache.org" 
>>> Date: Tuesday, April 26, 2016 at 10:11 AM
>>> To: "user@jclouds.apache.org" 
>>> Subject: novaApi.getKeyPairApi() for Openstack Liberty
>>>
>>> Hi,
>>>
>>> I was wondering if anyone is using Openstack Liberty. I am using jclouds
>>> (2.0.0-snapshot) and tried to get KeyPairApi using the following code:
>>>
>>> try {
>>> Optional keyapi = api.getKeyPairApi(region);
>>> KeyPairApi keyPairApi = keyapi.get();
>>> } catch (Exception e) {
>>> LOGGER.error(e);
>>> }
>>>
>>> The following error occurs:
>>>
>>> *java.lang.IllegalStateException: Optional.get() cannot be called on an
>>> absent value*
>>>
>>> But the codes works for Openstack Kilo. Any help would be greatly
>>> appreciated
>>>
>>> Best regards,
>>>
>>> --
>>>
>>> Kai Liu
>>> Ph.D. student
>>> Department of Geography and GeoInformation Science
>>> George Mason University
>>>
>>
>>
>>
>> --
>>
>> Kai Liu
>> Ph.D. student
>> Department of Geography and GeoInformation Science
>> George Mason University
>>
>


-- 

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University


Re: novaApi.getKeyPairApi() for Openstack Liberty

2016-04-26 Thread Ignasi Barrera
The fix in this pull request might be relevant:
https://github.com/jclouds/jclouds/pull/948

I plan to merge it later today so you should have a new SNAPSHOT to test
with shortly after that.
El 26/4/2016 7:21 p. m., "Kai Liu"  escribió:

> Thanks, I am looking into the email thread. I was wondering if you use
> other APIs? I am using 2.0.0-snapshot, some APIs work fine like:
> ImageApi, ServerApi, NetworkApi; but other APIs do not work: KeypairApi,
> VolumeApi, RouteApi, SecurityGroupApi, ElasticIpApi
>
> On Tue, Apr 26, 2016 at 1:15 PM, Apoorva Deshpande 
> wrote:
>
>> Recently I encountered similar error  [1] but 2.0.0-SNAPSHOT jar fixed it
>> for me.
>> You can follow the email thread for more information. It also mentions
>> what could have possibly fixed it in 2.0.0-SNAPSHOT.
>>
>> http://www.mail-archive.com/dev@jclouds.apache.org/msg06427.html
>>
>> From: Kai Liu 
>> Reply-To: "user@jclouds.apache.org" 
>> Date: Tuesday, April 26, 2016 at 10:11 AM
>> To: "user@jclouds.apache.org" 
>> Subject: novaApi.getKeyPairApi() for Openstack Liberty
>>
>> Hi,
>>
>> I was wondering if anyone is using Openstack Liberty. I am using jclouds
>> (2.0.0-snapshot) and tried to get KeyPairApi using the following code:
>>
>> try {
>> Optional keyapi = api.getKeyPairApi(region);
>> KeyPairApi keyPairApi = keyapi.get();
>> } catch (Exception e) {
>> LOGGER.error(e);
>> }
>>
>> The following error occurs:
>>
>> *java.lang.IllegalStateException: Optional.get() cannot be called on an
>> absent value*
>>
>> But the codes works for Openstack Kilo. Any help would be greatly
>> appreciated
>>
>> Best regards,
>>
>> --
>>
>> Kai Liu
>> Ph.D. student
>> Department of Geography and GeoInformation Science
>> George Mason University
>>
>
>
>
> --
>
> Kai Liu
> Ph.D. student
> Department of Geography and GeoInformation Science
> George Mason University
>


Re: novaApi.getKeyPairApi() for Openstack Liberty

2016-04-26 Thread Kai Liu
Thanks, I am looking into the email thread. I was wondering if you use
other APIs? I am using 2.0.0-snapshot, some APIs work fine like: ImageApi,
ServerApi, NetworkApi; but other APIs do not work: KeypairApi, VolumeApi,
RouteApi, SecurityGroupApi, ElasticIpApi

On Tue, Apr 26, 2016 at 1:15 PM, Apoorva Deshpande 
wrote:

> Recently I encountered similar error  [1] but 2.0.0-SNAPSHOT jar fixed it
> for me.
> You can follow the email thread for more information. It also mentions
> what could have possibly fixed it in 2.0.0-SNAPSHOT.
>
> http://www.mail-archive.com/dev@jclouds.apache.org/msg06427.html
>
> From: Kai Liu 
> Reply-To: "user@jclouds.apache.org" 
> Date: Tuesday, April 26, 2016 at 10:11 AM
> To: "user@jclouds.apache.org" 
> Subject: novaApi.getKeyPairApi() for Openstack Liberty
>
> Hi,
>
> I was wondering if anyone is using Openstack Liberty. I am using jclouds
> (2.0.0-snapshot) and tried to get KeyPairApi using the following code:
>
> try {
> Optional keyapi = api.getKeyPairApi(region);
> KeyPairApi keyPairApi = keyapi.get();
> } catch (Exception e) {
> LOGGER.error(e);
> }
>
> The following error occurs:
>
> *java.lang.IllegalStateException: Optional.get() cannot be called on an
> absent value*
>
> But the codes works for Openstack Kilo. Any help would be greatly
> appreciated
>
> Best regards,
>
> --
>
> Kai Liu
> Ph.D. student
> Department of Geography and GeoInformation Science
> George Mason University
>



-- 

Kai Liu
Ph.D. student
Department of Geography and GeoInformation Science
George Mason University


Re: novaApi.getKeyPairApi() for Openstack Liberty

2016-04-26 Thread Apoorva Deshpande
Recently I encountered similar error  [1] but 2.0.0-SNAPSHOT jar fixed it for 
me.
You can follow the email thread for more information. It also mentions what 
could have possibly fixed it in 2.0.0-SNAPSHOT.

http://www.mail-archive.com/dev@jclouds.apache.org/msg06427.html

From: Kai Liu >
Reply-To: "user@jclouds.apache.org" 
>
Date: Tuesday, April 26, 2016 at 10:11 AM
To: "user@jclouds.apache.org" 
>
Subject: novaApi.getKeyPairApi() for Openstack Liberty

Hi,

I was wondering if anyone is using Openstack Liberty. I am using jclouds 
(2.0.0-snapshot) and tried to get KeyPairApi using the following code:

try {
Optional keyapi = api.getKeyPairApi(region);
KeyPairApi keyPairApi = keyapi.get();
} catch (Exception e) {
LOGGER.error(e);
}

The following error occurs:

java.lang.IllegalStateException: Optional.get() cannot be called on an absent 
value

But the codes works for Openstack Kilo. Any help would be greatly appreciated

Best regards,

--

Kai Liu

Ph.D. student
Department of Geography and GeoInformation Science
George Mason University