|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Issue while sending email |
« View previous topic :: View next topic » |
Author |
Message
|
mahesh2069 |
Posted: Wed Sep 10, 2014 5:12 am Post subject: Issue while sending email |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi ,
I am working with email output node.I want to send email through gmail .
So I configure All the details and security identity , and run the mqsisetdbparms command and I reload the broker and I run the flow ,but got exception like bellow.
Code: |
ExceptionList
RecoverableException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\MessageServices\ImbDataFlowNode.cpp
Line:INTEGER:1155
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:EMAIL_OUTPUT_NODE_DEMO#FCMComposite_1_1
Label:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.MQ Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
Insert
Type:INTEGER:14
Text:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.MQ Input
RecoverableException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\TemplateNodes\ImbOutputTemplateNode.cpp
Line:INTEGER:326
Function:CHARACTER:ImbOutputTemplateNode::processMessageAssemblyToFailure
Type:CHARACTER:ComIbmEmailOutputNode
Name:CHARACTER:EMAIL_OUTPUT_NODE_DEMO#FCMComposite_1_2
Label:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.Email Output
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
Insert
Type:INTEGER:14
Text:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.Email Output
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:154
Function:CHARACTER:sendBasicEmail()
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4459
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;
nested exception is:
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 com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:456)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:496)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:368)
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:96)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:369)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:191)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.net.Socket.connect(Socket.java:642)
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)
... 7 more
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:318
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4678
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:Could not connect to SMTP host: smtp.gmail.com, port: 25
Network is unreachable: connect
|
Can you suggest me why this exception might be come. _________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 10, 2014 5:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Why do you expect that gmail uses port 25?
Why do you expect that gmail doesn't use SSL? |
|
Back to top |
|
 |
mahesh2069 |
Posted: Wed Sep 10, 2014 5:54 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Hi ,
I am also trying with SSL Port 465 for gmail ,I am taken reference as
Code: |
https://www.arclab.com/en/amlc/list-of-smtp-and-pop3-servers-mailserver-list.html link |
Still I got error like
Code: |
ExceptionList
RecoverableException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\MessageServices\ImbDataFlowNode.cpp
Line:INTEGER:1155
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:EMAIL_OUTPUT_NODE_DEMO#FCMComposite_1_1
Label:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.MQ Input
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
Insert
Type:INTEGER:14
Text:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.MQ Input
RecoverableException
File:CHARACTER:F:\build\slot1\S900_P\src\DataFlowEngine\TemplateNodes\ImbOutputTemplateNode.cpp
Line:INTEGER:326
Function:CHARACTER:ImbOutputTemplateNode::processMessageAssemblyToFailure
Type:CHARACTER:ComIbmEmailOutputNode
Name:CHARACTER:EMAIL_OUTPUT_NODE_DEMO#FCMComposite_1_2
Label:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.Email Output
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
Insert
Type:INTEGER:14
Text:CHARACTER:EMAIL_OUTPUT_NODE_DEMO.Email Output
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:154
Function:CHARACTER:sendBasicEmail()
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4459
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketTimeoutException: Read timed out
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1462)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1260)
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 com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:456)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:496)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:368)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:54)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:163)
at java.net.SocketInputStream.read(SocketInputStream.java:133)
at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:97)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:75)
at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1440)
... 8 more
RecoverableException
File:CHARACTER:MbErrorHandler.java
Line:INTEGER:318
Function:CHARACTER:throwableToMbException
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPmsgs
Severity:INTEGER:3
Number:INTEGER:4678
Text:CHARACTER:Exception sending email
Insert
Type:INTEGER:5
Text:CHARACTER:Exception reading response
Read timed out
|
_________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 10, 2014 5:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Did you verify the network will let you reach Gmail from the server hosting broker? |
|
Back to top |
|
 |
mahesh2069 |
Posted: Wed Sep 10, 2014 7:08 am Post subject: |
|
|
Centurion
Joined: 26 Jun 2013 Posts: 103
|
Yes , I checked with ping to the mail server from sever hosting broker. you can find the result below
Code: |
C:\Windows\system32>ping smtp.mail.com
Pinging smtp.mail.com [74.208.5.31] with 32 bytes of data:
Reply from 74.208.5.31: bytes=32 time=343ms TTL=53
Reply from 74.208.5.31: bytes=32 time=392ms TTL=53
Request timed out.
Reply from 74.208.5.31: bytes=32 time=338ms TTL=53
Ping statistics for 74.208.5.31:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 338ms, Maximum = 392ms, Average = 357ms
|
_________________ Thanks & Regards
Mahesh Mediboyina
WMB Developer |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 10, 2014 7:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mahesh2069 wrote: |
Yes , I checked with ping to the mail server from sever hosting broker. you can find the result below
Code: |
C:\Windows\system32>ping smtp.mail.com
Pinging smtp.mail.com [74.208.5.31] with 32 bytes of data:
Reply from 74.208.5.31: bytes=32 time=343ms TTL=53
Reply from 74.208.5.31: bytes=32 time=392ms TTL=53
Request timed out.
Reply from 74.208.5.31: bytes=32 time=338ms TTL=53
Ping statistics for 74.208.5.31:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 338ms, Maximum = 392ms, Average = 357ms
|
|
ping is the worst method of verification you could use. It only tells you that the server is reachable. It does not tell you whether you can effectively reach it...
Use telnet server port to verify whether there is a firewall blocking said port ...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|