My Oracle Support Banner

Bursting Send Separate Remittance Advices fails with Javax.mail.MessagingException: Can't Send Command To SMTP Host (Doc ID 3074364.1)

Last updated on MARCH 03, 2025

Applies to:

BI Publisher (formerly XML Publisher) - Version 12.2 and later
Information in this document applies to any platform.

Symptoms


The “Send Separate Remittance Advices” program is frequently failing when run for multiple remittances after a random number of emails are sent.


ERROR
-----------------------
before calling XDO req.setDocument()
before calling XDO req.submit()
javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
java.net.SocketException: Connection closed by remote host
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2415)
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:2402)
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:2318)
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2355)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1823)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1300)




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
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.