Author |
Message
|
gappodi |
Posted: Wed Sep 10, 2014 11:57 pm Post subject: Email output node is not sending email |
|
|
 Voyager
Joined: 05 Sep 2014 Posts: 76
|
I have a bar deployed locally that has a single message flow. This flow reads a file, create some content out of it and then sends an email using Email output node. I have not been able to receive email on the specified Toemail address in the node.
Following are the exception stack trace details.
java.net.SocketException: Network is unreachable: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:449)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:486)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:358)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)
Caused by: java.net.SocketException: Network is unreachable: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:358)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:219)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:201)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:616)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:230)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
However, if I write an independent plain java code for sending the email using the same SMTP host and ToEmail address, it sends the email.
How do I solve this problem ? I am suspecting that I have done some thing wrong with the settings of my computer because some days back, the same message flow used to work as expected. Please provide help on this. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 11, 2014 4:52 am Post subject: Re: Email output node is not sending email |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Well this is a clue:
gappodi wrote: |
java.net.SocketException: Network is unreachable: connect |
When you do this:
gappodi wrote: |
However, if I write an independent plain java code for sending the email using the same SMTP host and ToEmail address, it sends the email. |
From the same machine that the flow is running on? Running as the same id the broker is running as?
gappodi wrote: |
I am suspecting that I have done some thing wrong with the settings of my computer |
So what's happened to your computer since?
Are you certain your flow is using the correct host and port details, i.e. the flow configuration hasn't changed? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gappodi |
Posted: Thu Sep 11, 2014 6:23 am Post subject: |
|
|
 Voyager
Joined: 05 Sep 2014 Posts: 76
|
I am running the independent java code from the same machine where the broker is running.
Also it is run using as the same id as the broker. I verified this by checking in the task manager ( both the processes are running under same user name). Also I check that my flow is using correct host and port.
I am still wondering that why am I not being able to send the email from my message flow. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 11, 2014 6:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gappodi wrote: |
I am still wondering that why am I not being able to send the email from my message flow. |
I can understand that.
Does your SMTP server require a log on? If so, is the flow providing the same credentials that the java implictly (or explicitly) supplies?
Doesn't sound like a credentials problem though. Sounds like something at the network level is blocking, but you've eliminated the usual suspects. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Sep 11, 2014 11:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Do you potentially need an SSL connection but have no cert for the broker?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Sep 11, 2014 11:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
fjb_saper wrote: |
Do you potentially need an SSL connection but have no cert for the broker?  |
Good catch!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|