My Oracle Support Banner

E-MCF/WF: Getting 'Received exception during MS Graph email send: java.net.SocketException: Connection reset' When Sending OAUTH2 Outbound Email Via Office365 on PT 8.60-8.61 (Doc ID 3026809.1)

Last updated on AUGUST 07, 2024

Applies to:

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

Symptoms

After upgrading to PeopleTools (PT) 8.60.11, outbound emails to Office365 mail server using OAuth2 fail with the error below being found in the smtp.log:

 

DEBUG MCFJEMAIL: Received exception during MS Graph email send:
java.net.SocketException: Connection reset
Fri May 24 06:30:30 EDT 2024 java.net.SocketException: Connection reset
Fri May 24 06:30:30 EDT 2024 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
Fri May 24 06:30:30 EDT 2024 at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:484)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1334)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:977)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:290)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.PushbackInputStream.read(PushbackInputStream.java:183)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
Fri May 24 06:30:30 EDT 2024 at java.base/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.InputStreamReader.read(InputStreamReader.java:181)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.BufferedReader.fill(BufferedReader.java:161)
Fri May 24 06:30:30 EDT 2024 at java.base/java.io.BufferedReader.read(BufferedReader.java:182)
Fri May 24 06:30:30 EDT 2024 at com.peoplesoft.pt.mcf.mail.MCFPost.readResponse(MCFOutboundEmail.java:3848)
Fri May 24 06:30:30 EDT 2024 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.SendEmailMSGraph(MCFOutboundEmail.java:1257)
Fri May 24 06:30:30 EDT 2024 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:1706)
Fri May 24 06:30:30 EDT 2024 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:2181)
Fri May 24 06:30:30 EDT 2024 DEBUG MCFJEMAIL: Send method completed with code: -1


Environment

-----------------
PeopleTools: 8.60.11
Office365 Mail Server
MS Azure
Windows 2022 Server


Sample Replication
----------------------
1. Navigate to PeopleTools > Workflow > Defaults and Messages > Send Worklist/Email Messages.
2. Select Email button.
3. Click Notify.
4. Type the email address in the 'To:' section or the recipient address, add a test Subject and a test Message.
5. Click OK.
6. Recipient does not receive the email, and the error above is observed in the smtp.log.

Changes

Upgraded to PT 8.60.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.