E-MCF: Error Connecting To Mail Server

(Doc ID 2201998.1)

Last updated on MARCH 09, 2017

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.55 and later
Information in this document applies to any platform.

Symptoms

On : 8.55 version, Multi-Channel Framework (MCF)

ERMS - Error connecting to mail server

ERROR
-----------------------
Cannot connect to mail server. (162,1560)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Start NT service of PIA.

2. Login to Peopletools>MultiChannel Framework>Email>Sample Program 

3. Get mail count to see the error

4. Shut down NT service

5. Run StartPIA.cmd

6. Repeat step 2-3 and it is successful.


BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, ERMS stops working.

Sample error as seen in the gateway log:

-------------------------

ErrorLevel Standard Gateway Exception
Description GetMailTargetConnector (Host=outlook.xxx.com; User=hrhelpdsk): Cannot connect to mail server
Stack Trace
javax.mail.MessagingException: Connect failed;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:106)
at javax.mail.Service.connect(Service.java:233)
at com.peoplesoft.pt.integrationgateway.targetconnector.pop3.MCFMailBox.open(MCFMailBox.java:385)
at com.peoplesoft.pt.integrationgateway.targetconnector.GetMailTargetConnector.processMessage(GetMailTargetConnector.java:525)
at com.peoplesoft.pt.integrationgateway.targetconnector.GetMailTargetConnector.send(GetMailTargetConnector.java:135)
..
..

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms