using cognitect’s aws api for the first time, and getting an error: Exception in thread "async-dispatch-1" java.lang.NoClassDefFoundError: org/eclipse/jetty/util/thread/NonBlockingThread
when attempting to invoke (def s3 (aws/client {:api :s3}))
per the example in the readme. if anyone has any ideas what could be causing that, I’m all ears
what are your deps?
using a lein project.clj, which I assume is the root of the issue
first time using a lib that declares its deps using deps.edn afaik, so if I’m missing something about how those might fit together that’s likely it
@mss lein is fine, paste your deps --- you'll need three
[com.cognitect.aws/api "0.8.301"]
[com.cognitect.aws/endpoints "1.1.11.537"]
[com.cognitect.aws/s3 "714.2.430.0"]
that seems correct
yeah no weird exclusions that I can tell either
can you paste the output of lein deps :tree
get the same error regardless of whether I add the ring/jetty-io exclusion or not
are you sure?
lemme sanity check it just to be sure. gimme a sec
it looks like ring-jetty-adapter is forcing an older version of jetty (9.2)
thank you for the help btw!
n.p.
aws-api needs jetty 9.3 IIRC
fwiw, if I bump my ring version to 1.7.1 (latest IIRC) and it defaults to using the cognitect jetty-io version, I get a different error about thread pool exhaustion
lemme run through the with/without exclusion on ring 1.6.3 and I can get you the error message on ring 1.7.1
jetty should be at "9.3.7.v20160115" when you'll have everything working correctly
yep, just went ahead and added that specific version to my deps and all is well
thanks for the help troubleshooting
my pleasure