-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class Not Found Exception #85
Comments
What version are you using? Can you post your code, and a trace? |
Downgrading to 0.2.29 seems to let me move forward. |
I'll go back to 0.2.30 and get you a trace |
going back to just 0.2.30, all I've done is try to run tests, and it's just requiring the sqs package that causes this error.
|
I have a similar issue with 0.3.1 which downgrading to 0.3.0 solved. In the ns:
from my project.clj:
I was getting the error message:
There doesn't seem to be a problem building an uberjar or under lein repl, but it won't compile the ns clause inside Lighttable unless I downgrade. I'm cool for now, but I put this here as a data point. Thanks! |
@caryfitzhugh and @alilee I think the problem in both your cases is a version conflict with Jackson. The >=1.9 Java SDK bumped the version from 2.1 to 2.3. So for instance, I had a slightly older version of cheshire in a project which would reproduce the NoClassDef error (for the ClientConfiguration). The fix was either upgrading cheshire to 5.3.1 or excluding jackson like so:
Can you give that a try and let us know if that works? |
I don’t use cheshire. And so those changes didn't help me. And I’m also a beginner, so maybe I’m mistaken. But - in the lib jackson-core-asl-1.8.9.jar jackson-mapper-asl-1.8.9.jar I’m not sure how to discover who is including that - or if I need it… Or On Fri, Nov 28, 2014 at 2:58 PM, Michael Cohen notifications@github.com
|
If you're using leiningen, in the root of your project you can type |
Ahh... Rotary is including it (I'm converting over from rotary to Thanks! On Fri, Nov 28, 2014 at 7:10 PM, Michael Cohen notifications@github.com
|
@alilee I think the problem manifests when using LightTable because they have a dependency on fetch, which pulls in jackson 2.0.0 via cheshire 4.0.0 via lib-noir via noir. Maybe you can ask the LightTable devs how to specify exclusions in the IDE deps. |
Thanks for the comment.. will think about what I can do. |
@alilee the cheshire is added to classpath implicitly - my way to go was to explicitly add repl deplendencies as stated here: but, I've added exclusion for jackson: (defproject amazonica-test "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[lein-light-nrepl "0.1.0" :exclusions [[com.fasterxml.jackson.core/jackson-core]]]
[amazonica "0.3.19"]]
:repl-options {:nrepl-middleware [lighttable.nrepl.handler/lighttable-ops]}) |
java.lang.ClassNotFoundException: com.amazonaws.auth.profile.ProfileCredentialsProvider
I am trying to use amazonica but get this failure when I require any amazonica.aws.* package.
Does anyone have ideas?
The text was updated successfully, but these errors were encountered: