Getting HttpResponseException while getting token with DSS2TokenProxyAuth:
org.apache.http.client.HttpResponseException: Proxy Authentication Required at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:66) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:52) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.getSessionTokenProxyAuth(DSS2TokenProxyAuth.java:105) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.main(DSS2TokenProxyAuth.java:55)
Can someone please suggest on this.
All we can conclude from the response exception is that the proxy you are using requires authentication, and that the authentication failed. You are using one of our samples that is indeed meant for use with a proxy that requires authentication.
A few paths to explore to solve the issue:
After these (fairly obvious) suggestions, I'd like to add that this sample is intended for a proxy that only requires a username and password. Some proxies use more sophisticated authentications mechanisms that are beyond the simple capabilities of this sample. If that is the case you will have to adapt the sample to your proxy.