I am developing an application to receive email from Exchange server via EWS, which is a NON-personal email.
Below is my source code and the logs, any comments would be highly appreciated.
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
service.setTraceEnabled(true);
ExchangeCredentials credentials = new WebCredentials(confMng.getUserID(), confMng.getPassword());
service.setCredentials(credentials);
service.setUrl(new URI("https://HOST/EWS/exchange.asmx"));
Mailbox delegateMailbox = new Mailbox( confMng.getEmail() );
Folder inbox = Folder.bind( service, new FolderId( WellKnownFolderName.Inbox,
delegateMailbox ) );
ItemView view = new ItemView(10);
FindItemsResults<Item> findResults = service.findItems(inbox.getId(), view);
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.canResponseHaveBody(int)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authorization required
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - enter HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Supported authentication schemes in the order of preference: [NTLM]
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] INFO - NTLM authentication scheme selected
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Using authentication scheme: ntlm
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Authorization challenge processed
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authentication scope: NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCredentials(AuthScope)
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Retry authentication
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - Should NOT close connection in response to directive: Keep-Alive
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.isResponseAvailable()
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authenticating with NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCredentials(AuthScope)
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.params.HttpMethodParams] DEBUG - Credential charset not configured, using HTTP element charset
2014-11-27 22:47:46,171 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - HttpMethodBase.addRequestHeader(Header)
2014-11-27 22:47:46,171 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Attempt number 1 to process request
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.execute(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "POST /EWS/exchange.asmx HTTP/1.1[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.ExpectContinueMethod] DEBUG - enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - Adding Host request header
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.cookie.CookieSpec] DEBUG - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.addContentLengthRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Content-type: text/xml; charset=utf-8[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "User-Agent: ExchangeServicesClient/0.0.0.0[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Accept: text/xml[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Keep-Alive: 300[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Connection: Keep-Alive[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Accept-Encoding: gzip,deflate[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Content-Length: 626[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Authorization: NTLM TlRMTVNTUAABAAAAARIAAAgACAAgAAAAAAAAAAAAAABBTUVSSUNBUw==[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Host: autodiscover.mbusa.com[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.writeLine()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.PostMethod] DEBUG - enter PostMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.getRequestContentLength()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.PostMethod] DEBUG - enter PostMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getRequestOutputStream()
2014-11-27 22:47:46,191 [httpclient.wire.content] DEBUG - >> "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2007"></t:RequestServerVersion></soap:Header><soap:Body><m:GetFolder><m:FolderShape><t:BaseShape>AllProperties</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId
Id="inbox"></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soap:Body></soap:Envelope>"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - Request body sent
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.flushRequestOutputStream()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.readLine()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "HTTP/1.1 401 Unauthorized[\r][\n]"
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HeaderParser.parseHeaders(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Server: Microsoft-IIS/8.0[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "request-id: b329c930-2b63-4bf1-b61f-5c7f489f254b[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "WWW-Authenticate: Negotiate[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "WWW-Authenticate: NTLM[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "X-Powered-By: ASP.NET[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "X-FEServer: DE35S004EXC23[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Date: Fri, 28 Nov 2014 03:47:46 GMT[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Content-Length: 0[\r][\n]"
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.canResponseHaveBody(int)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authorization required
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - enter HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Using authentication scheme: ntlm
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Authorization challenge processed
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authentication scope: NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Credentials required
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Credentials provider not available
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] INFO - Failure authenticating with NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,362 [microsoft.exchange.webservices.data.EwsTraceListener] DEBUG - EwsResponseHttpHeaders - <Trace Tag="EwsResponseHttpHeaders" Tid="1" Time="2014-11-28 03:47:46Z">
401 null
WWW-Authenticate : NTLM
X-FEServer : DE35S004EXC23
Date : Fri, 28 Nov 2014 03:47:46 GMT
Content-Length : 0
request-id : b329c930-2b63-4bf1-b61f-5c7f489f254b
X-Powered-By : ASP.NET
Server : Microsoft-IIS/8.0
</Trace>
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [microsoft.exchange.webservices.data.EwsTraceListener] DEBUG - EwsResponseHttpHeaders - <Trace Tag="EwsResponseHttpHeaders" Tid="1" Time="2014-11-28 03:47:46Z">
401 null
WWW-Authenticate : NTLM
X-FEServer : DE35S004EXC23
Date : Fri, 28 Nov 2014 03:47:46 GMT
Content-Length : 0
request-id : b329c930-2b63-4bf1-b61f-5c7f489f254b
X-Powered-By : ASP.NET
Server : Microsoft-IIS/8.0
</Trace>
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
microsoft.exchange.webservices.data.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:62)
at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:147)
at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:354)
at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:377)
at microsoft.exchange.webservices.data.Folder.bind(Folder.java:54)
at microsoft.exchange.webservices.data.Folder.bind(Folder.java:113)
at com.emc.launchpad.Main.main(Main.java:53)
Caused by: microsoft.exchange.webservices.data.ServiceRequestException: The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:674)
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:50)
... 6 more
Caused by: microsoft.exchange.webservices.data.HttpErrorException: The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.ServiceRequestBase.getEwsHttpWebResponse(ServiceRequestBase.java:724)
at microsoft.exchange.webservices.data.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:669)
... 7 more