Errors with EWS due to HTTP connections per host limit
Description
HttpClient connection manager defaults to max of 2 connections per host. This is a problem with Exchange Web Services as it does HTTP connections to generally 1 - 2 servers (exchange host, or if using auto-discover the autodiscover host and the target referred to).
Causes errors such as the following due to Interrupted Exceptions or timeouts from extensive waiting to get HTTP connections:
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Couldn't get a SAX parser while constructing a envelope
Error: ErrorMailboxStoreUnavailable: The mailbox database is temporarily unavailable.
java.lang.IllegalStateException: The portlet worker has been canceled, the response is no longer in a valid state
HttpClient connection manager defaults to max of 2 connections per host. This is a problem with Exchange Web Services as it does HTTP connections to generally 1 - 2 servers (exchange host, or if using auto-discover the autodiscover host and the target referred to).
Causes errors such as the following due to Interrupted Exceptions or timeouts from extensive waiting to get HTTP connections:
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Couldn't get a SAX parser while constructing a envelope
Error: ErrorMailboxStoreUnavailable: The mailbox database is temporarily unavailable.
java.lang.IllegalStateException: The portlet worker has been canceled, the response is no longer in a valid state
Unanticipated Error
org.jasig.portlet.emailpreview.EmailPreviewException: org.springframework.ws.client.WebServiceIOException: I/O error: null; nested exception is java.io.InterruptedIOException
Increase the max number of HTTP connections to a single host.