{"action":"created","issue":{"url":"https://api.github.com/repos/scribejava/scribejava/issues/627","repository_url":"https://api.github.com/repos/scribejava/scribejava","labels_url":"https://api.github.com/repos/scribejava/scribejava/issues/627/labels{/name}","comments_url":"https://api.github.com/repos/scribejava/scribejava/issues/627/comments","events_url":"https://api.github.com/repos/scribejava/scribejava/issues/627/events","html_url":"https://github.com/scribejava/scribejava/issues/627","id":137608386,"number":627,"title":"OAuthRequestAsync Exception","user":{"login":"chrizstone","id":5380618,"avatar_url":"https://avatars.githubusercontent.com/u/5380618?v=3","gravatar_id":"","url":"https://api.github.com/users/chrizstone","html_url":"https://github.com/chrizstone","followers_url":"https://api.github.com/users/chrizstone/followers","following_url":"https://api.github.com/users/chrizstone/following{/other_user}","gists_url":"https://api.github.com/users/chrizstone/gists{/gist_id}","starred_url":"https://api.github.com/users/chrizstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrizstone/subscriptions","organizations_url":"https://api.github.com/users/chrizstone/orgs","repos_url":"https://api.github.com/users/chrizstone/repos","events_url":"https://api.github.com/users/chrizstone/events{/privacy}","received_events_url":"https://api.github.com/users/chrizstone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T15:43:03Z","updated_at":"2016-03-02T08:53:35Z","closed_at":null,"body":"Hi Fernandez,\r\n\r\nfirst of all, very nice library. Works just great but when I try to use the request async it will not start working for me. Here´s my example:\r\n\r\n`final String secretState = \"secret\" + new Random().nextInt(999_999);\r\nfinal OAuth20Service service;\r\nfinal OAuthRequestAsync request;\r\nservice = new ServiceBuilderAsync()\r\n.asyncHttpClientConfig(buildConfig())\r\n .apiKey(getApiKey())\r\n.apiSecret(getApiSecret())\r\n.callback(getCallback())\r\n                .state(secretState)\r\n                .grantType(GRANT_TYPE)\r\n                .build(DropBoxApi20.instance());\r\n\r\n        request = new OAuthRequestAsync(Verb.GET, getCloud().getInfoUrl(), service);\r\n        service.signRequest(new OAuth2AccessToken(getAccessToken(), \"\"), request);\r\n        try\r\n        {\r\n            Thread thread = new Thread(new Runnable() {\r\n                @Override\r\n                public void run() {\r\n                    request.sendAsync(new OAuthAsyncRequestCallback<Response>() {\r\n                        @Override\r\n                        public void onCompleted(Response response) {\r\n                            String uniqueId = \"\";\r\n                            int httpcode = response.getCode();\r\n                            if (httpcode == 200) {\r\n                                JSONObject jsonObj = null;\r\n                                try {\r\n                                    jsonObj = new JSONObject(response.getBody());\r\n                                    uniqueId = jsonObj.getString(USERID);\r\n                                    callback.onComplete(true, ErrorReason.NOERROR, uniqueId);\r\n                                } catch (JSONException e) {\r\n                                    e.printStackTrace();\r\n                                }\r\n                                Log.i(response.getBody());\r\n                            } else {\r\n                                \r\n                            }\r\n                        }\r\n\r\n                        @Override\r\n                        public void onThrowable(Throwable t) {\r\n                            callback.onComplete(false, ErrorReason.HTTPCONNECTIONFAILED, \"\");\r\n                        }\r\n                    });\r\n                }\r\n            });\r\n            thread.start();\r\n        }\r\n        catch (Exception ex)\r\n        {\r\n            Log.e(\"Exception:  \" + ex.getMessage());\r\n        }`\r\nBut always onThrowable is getting called with this exception:\r\n\r\n`java.lang.NoSuchMethodError: No virtual method setEndpointIdentificationAlgorithm(Ljava/lang/String;)V in class Ljavax/net/ssl/SSLParameters; or its super classes (declaration of 'javax.net.ssl.SSLParameters' appears in /system/framework/core-libart.jar)`\r\n\r\nWhat do I miss?"},"comment":{"url":"https://api.github.com/repos/scribejava/scribejava/issues/comments/191134541","html_url":"https://github.com/scribejava/scribejava/issues/627#issuecomment-191134541","issue_url":"https://api.github.com/repos/scribejava/scribejava/issues/627","id":191134541,"user":{"login":"kullfar","id":736714,"avatar_url":"https://avatars.githubusercontent.com/u/736714?v=3","gravatar_id":"","url":"https://api.github.com/users/kullfar","html_url":"https://github.com/kullfar","followers_url":"https://api.github.com/users/kullfar/followers","following_url":"https://api.github.com/users/kullfar/following{/other_user}","gists_url":"https://api.github.com/users/kullfar/gists{/gist_id}","starred_url":"https://api.github.com/users/kullfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kullfar/subscriptions","organizations_url":"https://api.github.com/users/kullfar/orgs","repos_url":"https://api.github.com/users/kullfar/repos","events_url":"https://api.github.com/users/kullfar/events{/privacy}","received_events_url":"https://api.github.com/users/kullfar/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T08:53:35Z","updated_at":"2016-03-02T08:53:35Z","body":"Hm. What is your jre  provider/version?\r\nAndroid? http://stackoverflow.com/questions/31358235/jetty-websocketclient-does-not-connect-with-ssl-on-android/31425078"}}