Author |
Message
|
lium |
Posted: Wed Dec 26, 2012 8:16 am Post subject: Does EmailInput and EmailOutput work with gmail |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Could some one kindly give me a short answer YES or NO:
Does EmailInput and EmailOutput node in V7 and V8 work with gmail which requires SSL/TLS?
based on my personal experience the answer is NO, please check the following error with EmailInput and also the post http://www.mqseries.net/phpBB2/viewtopic.php?p=296504&sid=053a256a3b13f2cf3caff9af2493c379
Event Type: Error
Event Source: WebSphere Broker v7005
Event Category: None
Event ID: 4976
Date: 12/25/2012
Time: 11:57:14 PM
User: N/A
Computer: NEWESB
Description:
( LBROKER.default ) EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''EOF on socket''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 8:21 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 8:28 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Thanks for the reply.
I checked the setting, and it shows:
Status: POP is enabled for all mail that has arrived since Dec 7 |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 8:30 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
And when you take a service trace, what do you see in the log that would clue you into why the socket closes? Do you have new mail since Dec 7? If you use a different email client, is it successful with the POP transaction? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 8:35 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Regarding your question:
1. I ever turned on user trace, but the information does not help. I am going to turn on the service trace to see if any clue there.
2. The email account has some new emails. I set debug point, however, the debug point never got triggered, even the failure and capture terminal.
3. I ever successfully JavaMail to send email out with gmail account. I am going to use JavaMail to retrieve email if this EmailInput does not work with gmail. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 8:49 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Don't use the interactive debugger. Use Trace nodes instead.
User trace won't give you the details as to why the socket closed.
The input node works with Gmail. There is no reason why it would not. POP is POP. There is nothing special about POP. Don't invent monsters in the closet. They only exist in your mind. They are not real. What do you think the Email nodes use under the covers?
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbz90060_.htm
Run this command:
Code: |
mqsireportproperties <yourbrokername> -c EmailServer -o AllReportableEntityNames -r |
Did you set the password correctly in the EmailServer configurable service? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 9:05 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
With the trace file, I got error:
Does it look like my userid/password issue?
the userid I used is EmailPO@(companyname).com
I used the mqsisetdbparms to set that
2012-12-26 11:51:24.848947 2872 Error BIP4976E: EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''authorization failed''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service.
2012-12-26 11:51:24.849048 2872 com.ibm.broker.emailnodes.MbEmailInputNode@78327832.readData file:F:\build\S700_P\src\DataFlowEngine\NativeTrace\ImbNativeTrace.cpp line:159 message:4976.BIPmsgs '4976' , 'Email Input', 'GHXPOFlow', 'pop3://pop.gmail.com:995', 'authorization failed'
2012-12-26 11:51:24.849048 2872 UserTrace BIP4976E: EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''authorization failed''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service.
2012-12-26 11:51:24.849102 2872 } MbEmailInputNode.readData , 'EXCEPTION - TIME OUT' |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 9:10 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 9:10 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
I just dumped as the following:
C:\Program Files\IBM\MQSI\7.0>mqsireportproperties LBROKER -c EmailServer -o All
ReportableEntityNames -r
EmailServer
EmailTemplate
securityIdentity=''
serverName=''
GHXPO
securityIdentity='EmailPo'
serverName='pop3://pop.gmail.com:995'
BIP8071I: Successful command completion.
C:\Program Files\IBM\MQSI\7.0>mqsisetdbparms LBROKER -n email::EmailPo -u EmailPO@xxx.com -p xxx
BIP8071I: Successful command completion. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 9:14 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Now you see where your problem is. Your securityIdentity is null. Use the links I posted above to correct the problem. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 9:30 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Could you please kindly tell why you think the security id is null?
I have set it to EmailPo, and email server is GHXPO as following
Also, I confirm I can use the userid EmailPO@xxx.com and password to login gmail account
C:\Program Files\IBM\MQSI\7.0>mqsireadbar -b \ids\GHXPO\Email.bar
BIP1051I: Reading Bar file using toolkit mqsireadbar...
\ids\GHXPO\Email.bar:
GHXPOFlow.cmf (12/26/12 11:43 AM):
Deployment descriptor:
GHXPOFlow#additionalInstances
GHXPOFlow#commitCount
GHXPOFlow#commitInterval
GHXPOFlow#coordinatedTransaction
GHXPOFlow#consumerPolicySet
GHXPOFlow#providerPolicySet
GHXPOFlow#consumerPolicySetBindings
GHXPOFlow#providerPolicySetBindings
GHXPOFlow#securityProfileName
GHXPOFlow#monitoringProfile
GHXPOFlow#Compute.dataSource
GHXPOFlow#Compute.validateMaster
GHXPOFlow#Email Input.additionalInstances
GHXPOFlow#Email Input.componentLevel
GHXPOFlow#Email Input.emailFailureAction
GHXPOFlow#Email Input.emailServer = GHXPO
GHXPOFlow#Email Input.longRetryInterval
GHXPOFlow#Email Input.retryThreshold
GHXPOFlow#Email Input.securityIdentity = EmailPo
GHXPOFlow#Email Input.shortRetryInterval
GHXPOFlow#Email Input.waitInterval
GHXPOFlow#Trace.filePath
BIP8071I: Successful command completion. |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 9:50 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
I think I solved the authentication problem after I recreated the security id and recycle the message broker,
Now I came back to the error again, I am going to turn on the service trace
Event Type: Error
Event Source: WebSphere Broker v7005
Event Category: None
Event ID: 4976
Date: 12/26/2012
Time: 12:47:13 PM
User: N/A
Computer: NEWESB
Description:
( LBROKER.default ) EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''EOF on socket''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service. |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 10:03 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Now, I got trace as the following:
2012-12-26 12:56:14.793737 2780 readData file:F:\build\S700_P\src\DataFlowEngine\NativeTrace\ImbNativeTrace.cpp line:723 message:4976.BIPmsgs 'Unable to connect to e-mail inbox' , 'Email Input', 'GHXPOFlow', 'pop3://pop.gmail.com:995', 'EOF on socket'
2012-12-26 12:56:14.793737 2780 Error BIP4976E: EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''EOF on socket''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service.
2012-12-26 12:56:14.793945 2780 com.ibm.broker.emailnodes.MbEmailInputNode@2e762e76.readData file:F:\build\S700_P\src\DataFlowEngine\NativeTrace\ImbNativeTrace.cpp line:159 message:4976.BIPmsgs '4976' , 'Email Input', 'GHXPOFlow', 'pop3://pop.gmail.com:995', 'EOF on socket'
2012-12-26 12:56:14.793945 2780 UserTrace BIP4976E: EmailInput node ''Email Input'' in message flow ''GHXPOFlow'' is unable to communicate with email server ''pop3://pop.gmail.com:995''. The error message is ''EOF on socket''.
The EmailInput node cannot communicate with the email server.
Ensure that the email server is running and is accessible from the system that WebSphere Message Broker is running on. Also ensure that the Email Server property is correctly configured on the EmailInput node, or that the serverName property is correctly configured on the EmailServer configurable service.
2012-12-26 12:56:14.794032 2780 { java_lang_String::java_lang_String
2012-12-26 12:56:14.794060 2780 } java_lang_String::java_lang_String
2012-12-26 12:56:14.794129 2780 } ImbJniInputTemplateNode::readData GHXPOFlow#FCMComposite_1_1 ComIbmEmailInputNode , GHXPOFlow.Email Input |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Dec 26, 2012 11:05 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
If you use the Email sample message flow that comes with WMB, what are your results?
Alternately, open a PMR for assistance. When you find the answer, please post back the resolution so someone else can benefit from your learning. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lium |
Posted: Wed Dec 26, 2012 1:51 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
it is the same result.
my message flow is extremely simple. the problem happens on email input node.
I simply need an answer YES or NO, however, it seems like I can not get the answer from here. |
|
Back to top |
|
 |
|