Git Product home page Git Product logo

Comments (7)

subnetmarco avatar subnetmarco commented on July 23, 2024 1

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.

strongme avatar strongme commented on July 23, 2024

Yes i am 100% sure with those version (locally):

qq20140519160900

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.

shin-nien avatar shin-nien commented on July 23, 2024

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.

shin-nien avatar shin-nien commented on July 23, 2024

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.

strongme avatar strongme commented on July 23, 2024

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.

shin-nien avatar shin-nien commented on July 23, 2024

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.

strongme avatar strongme commented on July 23, 2024

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)

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.