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
868 stars 559 forks source link

How to address this problem "The request failed.Unrecognized SSL message, plaintext connection?" ? #757

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi, team, hope you can help me out. Thanks! The full stack is

microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. Unrecognized SSL message, plaintext connection? at microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:74) at microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:158) at microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:504) at microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:523) at microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:98) at microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:147) at com.fit.wallink.wcs.business.utils.mail.service.impl.FitBootExchangeServiceImpl.listMailsBySearchFilter(FitBootExchangeServiceImpl.java:89) at com.fit.wallink.wcs.business.reconciliation.apigate.download.ApigateReconDownHandler.acquireReconEmail(ApigateReconDownHandler.java:185) at com.fit.wallink.wcs.business.reconciliation.apigate.download.ApigateReconDownHandler.downloadBillFromEmail(ApigateReconDownHandler.java:121)