I am developing a SOE on Eclipse and ArcGIS Java SDK 10.5.1, the SOE retrieve data from third-party geocoding service, then massaging the result and return the result to client.
I have downloaded Apache HttpClient component and imported to the SOE project but when I called the async http client, automatic exception occrred, the codes are as follow:
ExecutorService threadpool = Executors.newFixedThreadPool(2);
Async async = Async.newInstance().use(threadpool);Request request = Request.Get(requestURL);Future<Content> future = async.execute(request, new FutureCallback<Content>() { public void failed (final Exception e) { } public void completed (final Content content) { } public void cancelled () {}});
Anyone has ideas what I have done wrong?