CloudFoundary UnsupportedOperationException исключение - PullRequest
0 голосов
/ 06 октября 2019
CloudCredentials credentials = new CloudCredentials(username, password);
   CloudFoundryClient client = new CloudFoundryClient(credentials, getTargetURL(target));
     OAuth2AccessToken login = client.login();

Исключение:

Exception in thread "main" java.lang.UnsupportedOperationException 
at org.apache.http.impl.client.InternalHttpClient.getParams(InternalHttpClient.java:211) 
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl$CloudFoundryClientHttpRequestFactory.captureDefaultReadTimeout(CloudControllerClientImpl.java:419) 
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl$CloudFoundryClientHttpRequestFactory.<init>(CloudControllerClientImpl.java:396) 
at org.cloudfoundry.client.lib.rest.CloudControllerClientImpl.configureCloudFoundryRequestFactory(CloudControllerClientImpl.java:357)
...