Comments (9)
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.
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.
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.
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.
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.
Output of lein deps :tree
in my project: https://gist.github.com/sickill/edebec48f0880ef2966370894cbcb40d
from clj-aws-s3.
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.
+1 on having to do what @sdegutis mentioned after some odd XML errors brought me sniffing around here
from clj-aws-s3.
Closing as I no longer use this library. If anyone wants to reopen, feel free.
from clj-aws-s3.
Related Issues (20)
- S3 500-level errors render clj-aws-s3 unusable? HOT 3
- using different domain and force PathStyleAccess. HOT 2
- any thoughts on adding ability to create folders?
- Please provide clear example of how to put-object with permission HOT 2
- Support for IAM roles HOT 3
- Should there be a support to get an object for a particular version? HOT 2
- Please update jar in clojars HOT 3
- Create bucket with LocationConstraint
- What is the format for uploading a public file? HOT 1
- Support loading credentials from standard config / environment (via AWSCredentialsProvider) HOT 8
- AmazonS3Exception Status Code: 400, Please use AWS4-HMAC-SHA256 HOT 4
- add progress listener as option to put-object? HOT 2
- support use of AmazonS3EncryptionClient (client side encryption for storing data securely in s3)
- No way to set S3 connection to use PathStyleAccess HOT 1
- Dependencies out of date
- byte range requests
- Dependency conflict
- Retrieving large lists from an s3 bucket.
- put-object throw an IllegalArgumentException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-aws-s3.