Comments (2)
New data point: I created a new empty lein app project and added [amazonica "0.1.22"] as the only project dependency. I then nuked my .m2 directory and ran lein deps
on my real project. After all of the dependencies had been resolved, I then ran lein deps
on the new empty project and sure enough it grabbed a different version of org.apache.httpclient and org.apache.httpcore.
Here are the org.apache libs pulled in by my app:
Retrieving org/apache/commons/commons-parent/5/commons-parent-5.pom from central
Retrieving org/apache/apache/4/apache-4.pom from central
Retrieving org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom from central
Retrieving org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom from central
Retrieving org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom from central
Retrieving org/apache/commons/commons-parent/11/commons-parent-11.pom from central
Retrieving org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar from central
Retrieving org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar from central
Retrieving org/apache/httpcomponents/httpclient/4.2/httpclient-4.2.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-client/4.2/httpcomponents-client-4.2.pom from central
Retrieving org/apache/httpcomponents/project/5/project-5.pom from central
Retrieving org/apache/httpcomponents/httpcore/4.2/httpcore-4.2.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-core/4.2/httpcomponents-core-4.2.pom from central
Retrieving org/apache/httpcomponents/project/6/project-6.pom from central
Retrieving org/apache/commons/commons-parent/22/commons-parent-22.pom from central
Retrieving org/apache/apache/9/apache-9.pom from central
Retrieving org/apache/lucene/lucene-core/3.1.0/lucene-core-3.1.0.pom from central
Retrieving org/apache/lucene/lucene-parent/3.1.0/lucene-parent-3.1.0.pom from central
Retrieving org/apache/lucene/lucene-solr-grandparent/3.1.0/lucene-solr-grandparent-3.1.0.pom from central
Retrieving org/apache/apache/8/apache-8.pom from central
Retrieving org/apache/lucene/lucene-analyzers/3.1.0/lucene-analyzers-3.1.0.pom from central
Retrieving org/apache/commons/commons-parent/20/commons-parent-20.pom from central
Retrieving org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-client/4.2.1/httpcomponents-client-4.2.1.pom from central
Retrieving org/apache/httpcomponents/httpcore/4.2.1/httpcore-4.2.1.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-core/4.2.1/httpcomponents-core-4.2.1.pom from central
Retrieving org/apache/commons/commons-exec/1.1/commons-exec-1.1.pom from central
Retrieving org/apache/commons/commons-parent/17/commons-parent-17.pom from central
Retrieving org/apache/apache/7/apache-7.pom from central
Retrieving org/apache/apache/3/apache-3.pom from central
Retrieving org/apache/commons/commons-parent/9/commons-parent-9.pom from central
Retrieving org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom from central
Retrieving org/apache/httpcomponents/httpclient/4.2.2/httpclient-4.2.2.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-client/4.2.2/httpcomponents-client-4.2.2.pom from central
Retrieving org/apache/httpcomponents/httpcore/4.2.2/httpcore-4.2.2.pom from central
Retrieving org/apache/httpcomponents/httpcomponents-core/4.2.2/httpcomponents-core-4.2.2.pom from central
Retrieving org/apache/httpcomponents/httpmime/4.2.2/httpmime-4.2.2.pom from central
Retrieving org/apache/commons/commons-parent/26/commons-parent-26.pom from central
Retrieving org/apache/commons/commons-parent/25/commons-parent-25.pom from central
Retrieving org/apache/commons/commons-parent/24/commons-parent-24.pom from central
Retrieving org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-svggen/1.7/batik-svggen-1.7.pom from central
Retrieving org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.pom from central
Retrieving org/apache/poi/poi-ooxml/3.9/poi-ooxml-3.9.pom from central
Retrieving org/apache/poi/poi/3.9/poi-3.9.pom from central
Retrieving org/apache/poi/poi-ooxml-schemas/3.9/poi-ooxml-schemas-3.9.pom from central
Retrieving org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.pom from central
Retrieving org/apache/abdera/abdera-i18n/1.1.1/abdera-i18n-1.1.1.pom from central
Retrieving org/apache/abdera/abdera/1.1.1/abdera-1.1.1.pom from central
Retrieving org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.1/geronimo-activation_1.0.2_spec-1.1.pom from central
Retrieving org/apache/geronimo/specs/specs/1.1/specs-1.1.pom from central
Retrieving org/apache/apache/1/apache-1.pom from central
Retrieving org/apache/lucene/lucene-core/3.1.0/lucene-core-3.1.0.jar from central
Retrieving org/apache/lucene/lucene-analyzers/3.1.0/lucene-analyzers-3.1.0.jar from central
Retrieving org/apache/httpcomponents/httpmime/4.2.2/httpmime-4.2.2.jar from central
Retrieving org/apache/xmlgraphics/batik-dom/1.7/batik-dom-1.7.jar from central
Retrieving org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar from central
Retrieving org/apache/xmlgraphics/batik-css/1.7/batik-css-1.7.jar from central
Retrieving org/apache/xmlgraphics/batik-ext/1.7/batik-ext-1.7.jar from central
Retrieving org/apache/xmlgraphics/batik-svggen/1.7/batik-svggen-1.7.jar from central
Retrieving org/apache/xmlgraphics/batik-awt-util/1.7/batik-awt-util-1.7.jar from central
Retrieving org/apache/xmlgraphics/batik-util/1.7/batik-util-1.7.jar from central
Retrieving org/apache/xmlgraphics/batik-xml/1.7/batik-xml-1.7.jar from central
Retrieving org/apache/poi/poi-ooxml/3.9/poi-ooxml-3.9.jar from central
Retrieving org/apache/poi/poi/3.9/poi-3.9.jar from central
Retrieving org/apache/poi/poi-ooxml-schemas/3.9/poi-ooxml-schemas-3.9.jar from central
Retrieving org/apache/xmlbeans/xmlbeans/2.3.0/xmlbeans-2.3.0.jar from central
Retrieving org/apache/commons/commons-exec/1.1/commons-exec-1.1.jar from central
Retrieving org/apache/abdera/abdera-i18n/1.1.1/abdera-i18n-1.1.1.jar from central
Retrieving org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.1/geronimo-activation_1.0.2_spec-1.1.jar from central
and here are the further libs pulled in by the empty project:
Retrieving org/apache/httpcomponents/httpclient/4.2/httpclient-4.2.jar from central
Retrieving org/apache/httpcomponents/httpcore/4.2/httpcore-4.2.jar from central
Still not sure I understand why it's happening, but I can at least show that it's likely related to a version conflict somewhere in the load path. It looks like httpcore added support for the connection pooling in 4.2, so if my app is pulling in 4.1 and amazonica is seeing that instead of the 4.2 version, that might explain the NoClassDefFoundError.
from amazonica.
I just discovered the joys of lein deps :tree
and solved my issue (along with, apparently, a number of other potential issues with different libs shadowing indirect dependencies). I've explicitly added [org.apache.httpcomponents/httpclient "4.2.2"] to my direct project dependencies and amazonica seems to be functioning again. Hopefully no incompatible changes between 4.1 and 4.2.2 that cause regressions elsewhere in the app, but at least the core functionality is working again.
Live and learn, I suppose. Sorry for the spam.
from amazonica.
Related Issues (20)
- SQS send-message with message-attributes HOT 3
- Update README.md Lambda Section
- Old dependencies have known vulnerabilities HOT 1
- How to get the uri of a file saved to aws using put-object?
- Unaccurate :arglists for #'amazonica.aws.simpleemail/send-email HOT 3
- Support for KCL 2 (enhanced fan out)
- How to get the progress in uploading to an s3 bucket? HOT 2
- Route53 list-hosted-zones in China HOT 1
- Details on "Could not determine best method to invoke for download using arguments"
- Kinesis checkpointing does not work correctly when leasing multiple shards
- Kinesis client workers do not gracefully shutdown
- How to start new Kinesis worker at InitialPositionInStream.LATEST? HOT 1
- s3 region error
- Very large transient libraries HOT 2
- get-shard-iterator with AT_TIMESTAMP not working HOT 1
- Kinesis worker doesn't use amazonica credentials mechanism HOT 2
- s3 example from the README throws Execution error (IllegalStateException)
- No release tags since 2015
- update to aws-java-sdk 1.12.638+ to resolve CVE-2024-21634) HOT 2
- Ion Java StackOverflow vulnerability
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 amazonica.