Skip to content

Instantly share code, notes, and snippets.

@arohner arohner/gist:338257
Created Mar 19, 2010

Embed
What would you like to do?
(ns winston.s3
(:require [org.jclouds.blobstore :as blob]))
(def account [{:service :s3 :account redacted :key redacted}])
(def blobstore (blob/blobstore "s3" (:account account) (:key account)))
user=> (require 'winston.s3)
java.lang.RuntimeException: error instantiating org.jclouds.aws.s3.S3ContextBuilder (s3.clj:6)
user=> (.printStackTrace *e)
java.lang.RuntimeException: error instantiating org.jclouds.aws.s3.S3ContextBuilder (s3.clj:6)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2848)
at clojure.lang.Compiler$DefExpr.eval(Compiler.java:346)
at clojure.lang.Compiler.eval(Compiler.java:5363)
at clojure.lang.Compiler.load(Compiler.java:5768)
at clojure.lang.RT.loadResourceScript(RT.java:328)
at clojure.lang.RT.loadResourceScript(RT.java:319)
at clojure.lang.RT.load(RT.java:397)
at clojure.lang.RT.load(RT.java:369)
at clojure.core$load__5057$fn__5064.invoke(core.clj:4332)
at clojure.core$load__5057.doInvoke(core.clj:4331)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at clojure.core$load_one__4998.invoke(core.clj:4160)
at clojure.core$load_lib__5013.doInvoke(core.clj:4197)
at clojure.lang.RestFn.applyTo(RestFn.java:143)
at clojure.core$apply__3605.invoke(core.clj:480)
at clojure.core$load_libs__5029.doInvoke(core.clj:4231)
at clojure.lang.RestFn.applyTo(RestFn.java:138)
at clojure.core$apply__3605.invoke(core.clj:480)
at clojure.core$require__5051.doInvoke(core.clj:4299)
at clojure.lang.RestFn.invoke(RestFn.java:409)
at user$eval__10117.invoke(NO_SOURCE_FILE:3)
at clojure.lang.Compiler.eval(Compiler.java:5358)
at clojure.lang.Compiler.eval(Compiler.java:5326)
at clojure.core$eval__4174.invoke(core.clj:2139)
at clojure.main$repl__6192$read_eval_print__6200.invoke(main.clj:183)
at clojure.main$repl__6192.doInvoke(main.clj:200)
at clojure.lang.RestFn.invoke(RestFn.java:422)
at clojure.main$repl_opt__6227.invoke(main.clj:254)
at clojure.main$main__6253.doInvoke(main.clj:346)
at clojure.lang.RestFn.invoke(RestFn.java:483)
at clojure.lang.Var.invoke(Var.java:381)
at clojure.lang.AFn.applyToHelper(AFn.java:182)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at jline.ConsoleRunner.main(ConsoleRunner.java:69)
Caused by: java.lang.RuntimeException: error instantiating org.jclouds.aws.s3.S3ContextBuilder
at org.jclouds.rest.RestContextFactory.createContext(RestContextFactory.java:179)
at org.jclouds.rest.RestContextFactory.createContext(RestContextFactory.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:90)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
at org.jclouds.blobstore$blobstore__9907.doInvoke(blobstore.clj:42)
at clojure.lang.RestFn.invoke(RestFn.java:446)
at clojure.lang.AFn.applyToHelper(AFn.java:171)
at clojure.lang.RestFn.applyTo(RestFn.java:133)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:2843)
... 38 more
Caused by: com.google.inject.CreationException: Guice creation errors:
1) No implementation for java.lang.String annotated with @javax.inject.Named(value=jclouds.aws.accesskeyid) was bound.
while locating java.lang.String annotated with @javax.inject.Named(value=jclouds.aws.accesskeyid)
for parameter 1 at org.jclouds.aws.s3.filters.RequestAuthorizeSignature.<init>(RequestAuthorizeSignature.java:80)
at org.jclouds.aws.s3.config.S3RestClientModule.configure(S3RestClientModule.java:92)
2) No implementation for java.lang.String annotated with @javax.inject.Named(value=jclouds.aws.secretaccesskey) was bound.
while locating java.lang.String annotated with @javax.inject.Named(value=jclouds.aws.secretaccesskey)
for parameter 2 at org.jclouds.aws.s3.filters.RequestAuthorizeSignature.<init>(RequestAuthorizeSignature.java:80)
at org.jclouds.aws.s3.config.S3RestClientModule.configure(S3RestClientModule.java:92)
3) No implementation for java.lang.String annotated with @javax.inject.Named(value=jclouds.aws.accesskeyid) was bound.
at org.jclouds.aws.s3.config.S3ContextModule.provideContext(S3ContextModule.java:60)
3 errors
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:375)
at com.google.inject.internal.InjectorBuilder.initializeStatically(InjectorBuilder.java:155)
at com.google.inject.internal.InjectorBuilder.build(InjectorBuilder.java:108)
at com.google.inject.Guice.createInjector(Guice.java:93)
at com.google.inject.Guice.createInjector(Guice.java:70)
at org.jclouds.rest.RestContextBuilder.buildInjector(RestContextBuilder.java:101)
at org.jclouds.blobstore.BlobStoreContextBuilder.buildBlobStoreContext(BlobStoreContextBuilder.java:49)
at org.jclouds.blobstore.BlobStoreContextFactory.build(BlobStoreContextFactory.java:69)
at org.jclouds.blobstore.BlobStoreContextFactory.build(BlobStoreContextFactory.java:40)
at org.jclouds.rest.RestContextFactory.createContext(RestContextFactory.java:177)
... 50 more
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.