Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. private HttpResponse<JsonNode> jwtAuthPost(String assertion) throws UnirestException {
  2. HttpResponse<JsonNode> jsonResponse = Unirest.post(AUTH_URL)
  3. .header("accept", "application/json")
  4. .field("grant_type", JWT_GRANT_TYPE)
  5. .field("client_id", this.clientId)
  6. .field("client_secret", this.clientSecret)
  7. .field("assertion", assertion)
  8. .asJson(); //error here
  9.  
  10. return jsonResponse;
  11. }
  12.  
  13. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/nio/conn/NHttpClientConnectionManager
  14. at com.mashape.unirest.http.HttpClientHelper.prepareRequest(HttpClientHelper.java:154)
  15. at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:134)
  16. at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement