Created
May 13, 2012 19:08
-
-
Save carlossg/2689798 to your computer and use it in GitHub Desktop.
Test the jclouds stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iterable<Module> modules = ImmutableSet.<Module> of( new SshjSshClientModule() ); | |
ContextBuilder builder = ContextBuilder.newBuilder( "stub" ).credentials( "x", "y" ).modules( modules ); | |
builder.buildView( ComputeServiceContext.class ).getComputeService(); | |
com.google.inject.CreationException: Guice creation errors: | |
1) A binding to org.jclouds.predicates.SocketOpen was already configured at org.jclouds.sshj.config.SshjSshClientModule.configure(SshjSshClientModule.java:48). | |
at org.jclouds.compute.stub.config.StubComputeServiceDependenciesModule.socketOpen(StubComputeServiceDependenciesModule.java:116) | |
1 error | |
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435) | |
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154) | |
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) | |
at com.google.inject.Guice.createInjector(Guice.java:95) | |
at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:321) | |
at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:261) | |
at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:521) | |
at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:501) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment