Git Product home page Git Product logo

Comments (9)

sdegutis avatar sdegutis commented on August 16, 2024

Also:

=> (import com.amazonaws.ClientConfiguration)

NoSuchMethodError com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z  com.fasterxml.jackson.databind.ObjectMapper.<init> (ObjectMapper.java:445)
=> (import 'com.amazonaws.ClientConfiguration)

NoClassDefFoundError Could not initialize class com.amazonaws.ClientConfiguration  java.lang.Class.forName0 (Class.java:-2)
=> (import com.amazonaws.ClientConfiguration)

NoClassDefFoundError Could not initialize class com.amazonaws.ClientConfiguration  java.lang.Class.forName0 (Class.java:-2)

from clj-aws-s3.

sdegutis avatar sdegutis commented on August 16, 2024

Okay, found out it was incompatible versions. Datomic includes its own version of aws-java-sdk so I just had to exclude that.

BUT, this doesn't fully fix it. Your latest version, 0.3.10 requires com/amazonaws/aws-java-sdk/1.7.5, which gives me this error:

cleancoders.web.main=> (s3/list-objects cred bucket)

NoSuchMethodError com.fasterxml.jackson.core.JsonParser.getValueAsString()Ljava/lang/String;  com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize (StringDeserializer.java:24)

Whereas downgrading back to 0.3.3 fixes it. No other dependencies of mine use another aws library according to lein deps :tree so this is the only one.

from clj-aws-s3.

sdegutis avatar sdegutis commented on August 16, 2024

So, now I'm using [clj-aws-s3 "0.3.3" :exclusions [[commons-codec] [joda-time] [com.fasterxml.jackson.core/jackson-core]]] which uses [com.amazonaws/aws-java-sdk "1.3.18"] and everything is working great once again.

from clj-aws-s3.

sdegutis avatar sdegutis commented on August 16, 2024

So I think this bug report is basically that 0.3.10 seems to not work, when my lein deps :tree shows that there are no other libs in my code which require com.amazonaws.aws-java-sdk.

from clj-aws-s3.

ku1ik avatar ku1ik commented on August 16, 2024

With 0.3.10 when I first try to evaluate get-object I get:

NoSuchMethodError com.fasterxml.jackson.core.JsonFactory.requiresPropertyOrdering()Z  com.fasterxml.jackson.databind.ObjectMapper.<init> (ObjectMapper.java:445)

When I evaluate it for the second time (after getting the above error) I get:

NoClassDefFoundError Could not initialize class com.amazonaws.internal.config.InternalConfig$Factory  com.amazonaws.ServiceNameFactory.getServiceName (ServiceNameFactory.java:34)

No other lib includes aws-java-sdk in my project.

from clj-aws-s3.

ku1ik avatar ku1ik commented on August 16, 2024

Output of lein deps :tree in my project: https://gist.github.com/sickill/edebec48f0880ef2966370894cbcb40d

from clj-aws-s3.

ku1ik avatar ku1ik commented on August 16, 2024

I made 0.3.10 working by doing this:

[clj-aws-s3 "0.3.10" :exclusions [com.fasterxml.jackson.core/jackson-core com.fasterxml.jackson.core/jackson-annotations]]

Without above exclusions it wasn't working and I was also getting the following notices with lein deps :tree:

Possibly confusing dependencies found:
[clj-aws-s3 "0.3.10" :exclusions [joda-time]] -> [com.amazonaws/aws-java-sdk "1.7.5"] -> [com.fasterxml.jackson.core/jackson-core "2.1.1"]
 overrides
[ring-webjars "0.1.1"] -> [org.webjars/webjars-locator "0.27"] -> [com.fasterxml.jackson.core/jackson-databind "2.3.3"] -> [com.fasterxml.jackson.core/jackson-core "2.3.3"]

Consider using these exclusions:
[ring-webjars "0.1.1" :exclusions [com.fasterxml.jackson.core/jackson-core]]

[clj-aws-s3 "0.3.10" :exclusions [joda-time]] -> [com.amazonaws/aws-java-sdk "1.7.5"] -> [com.fasterxml.jackson.core/jackson-annotations "2.1.1"]
 overrides
[ring-webjars "0.1.1"] -> [org.webjars/webjars-locator "0.27"] -> [com.fasterxml.jackson.core/jackson-databind "2.3.3"] -> [com.fasterxml.jackson.core/jackson-annotations "2.3.0"]

Consider using these exclusions:
[ring-webjars "0.1.1" :exclusions [com.fasterxml.jackson.core/jackson-annotations]]

To me it looks like [aws-java-sdk "1.7.5"] doesn't work well with [com.fasterxml.jackson.core/jackson-annotations "2.1.1"] and [com.fasterxml.jackson.core/jackson-core "2.1.1"]...

This would confirm what @sdegutis wrote in his last comment.

from clj-aws-s3.

raymcdermott avatar raymcdermott commented on August 16, 2024

+1 on having to do what @sdegutis mentioned after some odd XML errors brought me sniffing around here

from clj-aws-s3.

sdegutis avatar sdegutis commented on August 16, 2024

Closing as I no longer use this library. If anyone wants to reopen, feel free.

from clj-aws-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.