You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by George Kousiouris <gk...@mail.ntua.gr> on 2014/02/04 21:43:27 UTC

error when trying to get a simple list of nodes

hi all,

I am trying to run a simple piece of code to get the list of nodes from 
an aws account (actually the example from here: 
http://jclouds.apache.org/documentation/userguide/compute/), however i 
get the following error:
Exception in thread "main" com.google.inject.CreationException: Guice 
creation errors:

1) No implementation for 
com.google.common.base.Optional<org.jclouds.compute.extensions.SecurityGroupExtension> 
was bound.
   while locating 
com.google.common.base.Optional<org.jclouds.compute.extensions.SecurityGroupExtension>
     for parameter 32 at 
org.jclouds.aws.ec2.compute.AWSEC2ComputeService.<init>(AWSEC2ComputeService.java:110)
   at 
org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceDependenciesModule.configure(AWSEC2ComputeServiceDependenciesModule.java:93)


I read in a previous email that there might be a java related bug in the 
new version (7u51)? that's the one i'm using also. Should i try a 
previous version?

thanks,
george

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


Re: error when trying to get a simple list of nodes

Posted by George Kousiouris <gk...@mail.ntua.gr>.
On 2/5/2014 6:51 PM, Andrew Phillips wrote:
>> forgotten some jars (jclouds 1.6) i had imported manually before the
>> maven dependencies. I deleted them and it worked fine.
>
> Good to hear. Looks like Ignasi was right on the money about the deps 
> there... ;-)
>
> ap
>
>
yep, actually that was what triggered me to check the build path in 
detail. thanks Ignasi!


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


Re: error when trying to get a simple list of nodes

Posted by Andrew Phillips <an...@apache.org>.
> forgotten some jars (jclouds 1.6) i had imported manually before the
> maven dependencies. I deleted them and it worked fine.

Good to hear. Looks like Ignasi was right on the money about the deps  
there... ;-)

ap

Re: error when trying to get a simple list of nodes

Posted by George Kousiouris <gk...@mail.ntua.gr>.
Hi all,

thanks for your interest, turns out it was probably a jar issue. I  used 
jdk 7 u40, but this on its own did not solve the problem. I had 
forgotten some jars (jclouds 1.6) i had imported manually before the 
maven dependencies. I deleted them and it worked fine.

thanks again!
BR,
George

On 2/4/2014 11:19 PM, Andrew Phillips wrote:
>> I read in a previous email that there might be a java related bug in
>> the new version (7u51)? that's the one i'm using also. Should i try a
>> previous version?
>
> If you can use an older JDK version, that would be an easy option, 
> yes. Otherwise, you can use the latest snapshot of your choice. See 
> [1] for more details.
>
> Regards
>
> ap
>
> [1] http://apache.markmail.org/thread/637ayb6d6uz36bam
>
>



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


Re: error when trying to get a simple list of nodes

Posted by Andrew Phillips <an...@apache.org>.
> I read in a previous email that there might be a java related bug in
> the new version (7u51)? that's the one i'm using also. Should i try a
> previous version?

If you can use an older JDK version, that would be an easy option,  
yes. Otherwise, you can use the latest snapshot of your choice. See  
[1] for more details.

Regards

ap

[1] http://apache.markmail.org/thread/637ayb6d6uz36bam

Re: error when trying to get a simple list of nodes

Posted by Ignasi Barrera <ig...@gmail.com>.
Hi George,

I think it shouldn't be the JVM issue. Could you share the jclouds
dependencies you are using?

I.
El 04/02/2014 21:43, "George Kousiouris" <gk...@mail.ntua.gr> escribió:

> hi all,
>
> I am trying to run a simple piece of code to get the list of nodes from an
> aws account (actually the example from here: http://jclouds.apache.org/
> documentation/userguide/compute/), however i get the following error:
> Exception in thread "main" com.google.inject.CreationException: Guice
> creation errors:
>
> 1) No implementation for com.google.common.base.
> Optional<org.jclouds.compute.extensions.SecurityGroupExtension> was bound.
>   while locating com.google.common.base.Optional<org.jclouds.compute.
> extensions.SecurityGroupExtension>
>     for parameter 32 at org.jclouds.aws.ec2.compute.
> AWSEC2ComputeService.<init>(AWSEC2ComputeService.java:110)
>   at org.jclouds.aws.ec2.compute.config.AWSEC2ComputeServiceDependenci
> esModule.configure(AWSEC2ComputeServiceDependenciesModule.java:93)
>
>
> I read in a previous email that there might be a java related bug in the
> new version (7u51)? that's the one i'm using also. Should i try a previous
> version?
>
> thanks,
> george
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>
>