SAP Knowledge Base Article - Preview

3159139 - PI/PO - Component-Based Message Alerting: com.sun.mail.util.MailConnectException: Couldn't connect to host

Symptom

You have configure alerting (Component-Based Message Alerting) in PI/PO system but the consumer job is not working as expected. You have referred to KBA 2381478 - XPI traces for Component Based Message Alerting to collect XPI Inspector trace. You can find following errors in XPI Inspector traces.

An exception occurred.
[EXCEPTION]
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;
  nested exception is:
java.net.ConnectException: Connection refused: connect (local port XX to address 0:0:0:0:0:0:0:0, remote port 25 to address XXX)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
at javax.mail.Service.connect(Service.java:366)
at javax.mail.Service.connect(Service.java:246)
at javax.mail.Service.connect(Service.java:195)
at com.sap.aii.alert.consumer.job.AlertConsumerJob.createMailTransport(AlertConsumerJob.java:647)
at com.sap.aii.alert.consumer.job.AlertConsumerJob.generateAndSendMailReports(AlertConsumerJob.java:667)
at com.sap.aii.alert.consumer.job.AlertConsumerJob.onJob(AlertConsumerJob.java:100)


Read more...

Environment

  • SAP NetWeaver
  • SAP Process Integration

Keywords

Alert, CBMA, com.sun.mail.util.MailConnectException, Couldn't connect to host, Connection refused, Process Integration, PI, Process Orchestration, PO, NetWeaver, XI, AEX , KBA , BC-XI-ALR-CBA-JAV , Java , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.