cancel
Showing results for 
Search instead for 
Did you mean: 

javax.mail.MessagingException : Could not connect to SMTP host

Former Member
0 Kudos

Hi,

We are using Business connector 4.7 version and we have a SMTP server configured in BC settings to to use for server error logging and service error e-mail

notification.

We have been getting these javax mail exceptions continously in production server.Need to know the root cause of these errors and how they can be resolved

2005-12-21 07:38:30 GMT javax.mail.MessagingException: Could not connect to SMTP host: smtprelay.webdti.com, port: 25;

nested exception is:

java.net.ConnectException: Operation timed out: connect

at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)

at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)

at javax.mail.Service.connect(Service.java:234)

at javax.mail.Service.connect(Service.java:135)

at com.wm.net.email.SmtpClient.send(SmtpClient.java:591)

at pub.client.smtp(client.java:318)

at java.lang.reflect.Method.invoke(Native Method)

at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)

at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)

at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)

at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)

at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)

at com.wm.lang.flow.FlowState.step(FlowState.java:430)

at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)

at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)

at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)

at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:496)

at wm.server.net.EmailTransaction$RunService.write(EmailTransaction.java:1375)

at wm.server.net.EmailTransaction$RunService.run(EmailTransaction.java:1218)

at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)

at java.lang.Thread.run(Unknown Source)

Any help on this regard would be highly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Check the firewall settings. Particularly if the error occurs only in production and not in other environments.

Good luck,

Roelof

deepa_prabhu
Participant
0 Kudos

Hi,

Can you telnet the SMTP server from your production server

through the port you have mentioned. The exception says the port is "25".

If you are not able to login using telnet, then you can

figure out the problem whether it is due to firewall as mentioned by Knibbe or any other server issue.

Hope this helps.

Please award points for helpful answers.

Thanks and regards

Deepa