microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401)Anonymous Request Disallowed

Stack Overflow | JitterbugChew | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    EWS Java API: Default credentials don't connect, but no error produced?

    Stack Overflow | 4 months ago | JitterbugChew
    microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401)Anonymous Request Disallowed

    Root Cause Analysis

    1. microsoft.exchange.webservices.data.core.exception.http.HttpErrorException

      The remote server returned an error: (401)Anonymous Request Disallowed

      at microsoft.exchange.webservices.data.core.request.ServiceRequestBase.getEwsHttpWebResponse()
    2. microsoft.exchange.webservices
      Folder.bind
      1. microsoft.exchange.webservices.data.core.request.ServiceRequestBase.getEwsHttpWebResponse(ServiceRequestBase.java:723)
      2. microsoft.exchange.webservices.data.core.request.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:639)
      3. microsoft.exchange.webservices.data.core.request.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:62)
      4. microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:158)
      5. microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:504)
      6. microsoft.exchange.webservices.data.core.ExchangeService.bindToFolder(ExchangeService.java:523)
      7. microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:98)
      8. microsoft.exchange.webservices.data.core.service.folder.Folder.bind(Folder.java:147)
      8 frames
    3. Unknown
      test.main
      1. test.main(test.java:25)
      1 frame