cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Notification Exception

Former Member
0 Kudos

Hi experts,

We are getting below error recorded under background task in Production. Please help to understand the root cause of below issue.


Log Level:Error

Timestamp:07/02/2015 05:15 AM (CDT)

Session ID:odp_event_workflow_engine

User:daemon

Description:Workflow Engine

Message:

Sourced file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : Method Invocation Transport.send

Description: 

Exception:

Sourced file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : Method Invocation Transport.send : at Line: 249 : in file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : Transport .send ( msg )

Called from method: sendApprovalNotification : at Line: 732 : in file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : sendApprovalNotification ( )
Target exception: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect (port 25 to address 127.0.0.1

Stack Trace:

Sourced file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : Method Invocation Transport.send : at Line: 249 : in file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : Transport .send ( msg )

Called from method: sendApprovalNotification : at Line: 732 : in file: inline evaluation of: ``import com.sap.odp.api.common.exception.*; import com.sap.odp.api.common.log.Lo . . . '' : sendApprovalNotification ( )
Target exception: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect (port 25 to address 127.0.0.1

at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190023
Contributor
0 Kudos

Looks like you are sending direct emails (not using the built-in notification API), am I correct?

Has this ever worked?

  • "Could not connect to SMTP host: localhost, port: 25;"
  • It's very strange to have an SMTP relay on the same machine with the Sourcing server... ?!

Any reason why you are not using a custom email template with the built-in Notification API?

Bogdan