OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
869 stars 560 forks source link

StackOverFlowError in AutoDiscoverService #588

Open pheenomenon opened 7 years ago

pheenomenon commented 7 years ago

Hi, It seems AutodiscoverService.java makes recursive calls to method internalGetLegacyUserSettings() & tryLastChanceHostRedirection() while trying to establish connection with exchange server AutoDiscover Service. Finally blows up with StackOverFlowError. Below is the full stacktrace. We do have ExchangeService.setTimeout(60000) [60 sec] but this does not seem to help. Has anyone ran into this before ? Any pointers.

Caused by: java.lang.StackOverflowError at sun.security.x509.KeyUsageExtension.getBits(KeyUsageExtension.java:354) ~[?:1.7.0_101] at sun.security.x509.X509CertImpl.getKeyUsage(X509CertImpl.java:1426) ~[?:1.7.0_101] at sun.security.provider.certpath.AlgorithmChecker.check(AlgorithmChecker.java:213) ~[?:1.7.0_101] at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:133) ~[?:1.7.0_101] at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(PKIXCertPathValidator.java:355) ~[?:1.7.0_101] at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:191) ~[?:1.7.0_101] at java.security.cert.CertPathValidator.validate(CertPathValidator.java:279) ~[?:1.7.0_101] at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:345) ~[?:1.7.0_101] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:260) ~[?:1.7.0_101] at sun.security.validator.Validator.validate(Validator.java:260) ~[?:1.7.0_101] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326) ~[?:1.7.0_101] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231) ~[?:1.7.0_101] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:107) ~[?:1.7.0_101] at microsoft.exchange.webservices.data.core.EwsX509TrustManager.checkServerTrusted(EwsX509TrustManager.java:83) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:897) ~[?:1.7.0_101] at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1454) ~[?:1.7.0_101] at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:213) ~[?:1.7.0_101] at sun.security.ssl.Handshaker.processLoop(Handshaker.java:913) ~[?:1.7.0_101] at sun.security.ssl.Handshaker.process_record(Handshaker.java:849) ~[?:1.7.0_101] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1035) ~[?:1.7.0_101] at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1344) ~[?:1.7.0_101] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371) ~[?:1.7.0_101] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355) ~[?:1.7.0_101] at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:338) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) ~[httpclient-4.4.1.jar:4.4.1] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[httpclient-4.4.1.jar:4.4.1] at microsoft.exchange.webservices.data.core.request.HttpClientWebRequest.executeRequest(HttpClientWebRequest.java:292) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.getLegacyUserSettingsAtUrl(AutodiscoverService.java:294) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:812) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:632) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] ...... at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.tryLastChanceHostRedirection(AutodiscoverService.java:829) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:720) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.getLegacyUserSettings(AutodiscoverService.java:521) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.internalGetLegacyUserSettings(AutodiscoverService.java:959) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.autodiscover.AutodiscoverService.getUserSettings(AutodiscoverService.java:1846) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.core.ExchangeService.getAutodiscoverUrl(ExchangeService.java:3610) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at microsoft.exchange.webservices.data.core.ExchangeService.autodiscoverUrl(ExchangeService.java:3567) ~[ews-java-api-2.0-20150529.075251-32.jar:?] at com...dao.impl.EwsAccessDAOImpl.testConnectionUsingAutoDiscoverURL(EwsAccessDAOImpl.java:407) ~[-service-1.0.1108536.1130633.jar:?] at com...service.impl.EwsValidateAccessImpl.execute(EwsValidateAccessImpl.java:33) ~[au-recruiting-service-1.0.1108536.1130633.jar:?] at com...service.impl.EwsValidateAccessImpl.execute(EwsValidateAccessImpl.java:1) ~[au-service-1.0.1108536.1130633.jar:?]

patrickconant commented 5 years ago

We experienced this today. Stack trace attached. We had been using ews-java-api-2.0.jar in production for about 2 weeks before this occurred. stack-trace.txt