Comments (7)
Just to be sure, are you currently using Unirest version 1.3.11
with the following dependencies installed (with the right versions):
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.3.3</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20140107</version>
</dependency>
from unirest-java.
Yes i am 100% sure with those version (locally):
i am using SAE(something like GAE) [http://sae.sina.com.cn/] would it be possible that the sae provided the wrong version of the dependencies ?
Down below is the jars that SAE provide:
sae-local-xxx.jar(全局)
log4j.jar (全局)
derby.jar (kvdb服务)
mail.jar (mail服务)
activation.jar (mail服务)
commons-codec-1.4.jar (Storage,TaskQueue,FetchURL服务)
commons-logging-1.1.1.jar (Storage,TaskQueue,FetchURL服务)
httpclient-4.1.2.jar (Storage,TaskQueue,FetchURL服务)
httpclient-cache-4.1.2.jar (Storage,TaskQueue,FetchURL服务)
httpcore-4.1.2.jar (Storage,TaskQueue,FetchURL服务)
httpmime-4.1.2.jar (Storage,TaskQueue,FetchURL服务)
commons-beanutils-1.8.3.jar (Storage,TaskQueue,FetchURL服务)
commons-beanutils-bean-collections-1.8.3.jar (Storage,TaskQueue,FetchURL服务)
commons-beanutils-core-1.8.3.jar (Storage,TaskQueue,FetchURL服务)
commons-collections-3.2.1.jar (Storage,TaskQueue,FetchURL服务)
commons-lang-2.6.jar (Storage,TaskQueue,FetchURL服务)
ezmorph-1.0.6.jar (Storage,TaskQueue,FetchURL服务)
json-lib-2.4-jdk15.jar (Storage,TaskQueue,FetchURL服务)
commons-io-1.3.2.jar (Storage,TaskQueue,FetchURL服务)
mysql-connector-java-5.0.8-bin.jar(MySQL服务驱动包)
OR which version of Unirest does depend on the above versions ?
from unirest-java.
I'm seeing the same error when trying out Unirest from a Grails console and a different (dependency) looking error in a standalone Groovy app. Works in Java just fine, I wonder if it's something in Groovy's included runtime libs. I'll see if I can glean a bit more info and raise a separate issue.
from unirest-java.
I had a conflicting version of httpclient. Looks like you might have the same problem with the version that SAE is providing.
from unirest-java.
So the problem source is the version of the httpclient ? between 4.3.3 and 4.1.2 ?
should i just delete the version 4.3.3 or i can not use the ## UNIREST,cause the version in SAE environment can not be changed manauly ~~ OH GOD
from unirest-java.
Yes that was the problem for me.
If SAE are providing those older jars at runtime and therefore out of your (pom.xml) control then I doubt you'll be able to use Unirest without some custom classloading magic.
from unirest-java.
OH THANKS ,but i am blank to classloading STAFF, maybe i should take step into that magic world of ClassLoading . Haha
Thanks again , I'll take a try and see what happens . ^_^
from unirest-java.
Related Issues (20)
- Unirest 4.x - Duplicate content-type header is being added for request HOT 7
- Small issue on Upgrade.md that prevents dependency installation HOT 1
- 4.0.4 isn't on the maven repository. HOT 1
- UnirestInstance.request() Method behaves differently than expected. HOT 3
- Configure custom retry behavior HOT 12
- Describe configuring concurrency in v4 HOT 1
- MockResponse does not work with Unirest 4 anymore HOT 7
- connectionTTL configuration ignored HOT 5
- Low level interceptor with shared context HOT 10
- bug query get with version 4 HOT 5
- Jackson MismatchedInputException for successful response with no body, after migrating to Unirest 4 HOT 2
- Automatic Retries not being used HOT 2
- MockClient: allow fine grained request verification or "un-expected" routes HOT 2
- Request cancellation (such as download cancellation) HOT 2
- Can't turn auto retries standard on HOT 10
- Incorrect Unirest version in README.md HOT 1
- Incorrect link to Interceptor file HOT 1
- Supported windows versions
- Configured HttpClient.Version ignored HOT 10
- MockClient: Mocking same route with different methods only invokes first registered/expected mocking response HOT 2
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 unirest-java.