Author |
Message
|
grasher134 |
Posted: Thu Nov 06, 2014 3:07 am Post subject: Problem with running Email input sample. |
|
|
Acolyte
Joined: 22 Oct 2014 Posts: 62
|
I'm new to all of this. So no offence to insructions for noobs, sending me to read something (just tell what exactly should I read..). And sorry for my English.
IIB 9.0.0.2 Toolkit 9.0.0.2 MQ explorer 7.5.0.1 Win 7 Enterprise
Pressed on "Import and deploy the sample"
Then I ran
mqsideleteconfigurableservice IB9NODE -c EmailServer -o myservice
mqsicreateconfigurableservice IB9NODE -c EmailServer -o myservice -n serverName,securityIdentity -v pop3://{numbers},mySecurityIdentity1
mqsisetdbparms IB9NODE -n email::mySecurityIdentity1 -u name@firmname.az -p somepassword
C:\Program Files\IBM\MQSI\9.0.0.2>mqsireportproperties IB9NODE -c EmailServer -o
AllReportableEntityNames -r
EmailServer
EmailTemplate
securityIdentity=''
serverName=''
myEmailConfigurableServiceName
securityIdentity=''
serverName=''
myservice
securityIdentity='mySecurityIdentity1'
serverName='pop3://{same numbers}:110'
BIP8071I: Successful command completion.
Input node properties:
Email Server - pop3://{same numbers}:110
Security identity - mySecurityIdentity1
I send email to this adress with attachment or without it and nothing happens.
I connect to same email server via outlook, but I use domain authorisation there. Should I use my domain login/password in mySecurityIdentity1 or not?
Second is there any way how I can debug/trace/test it? They say make this steps and it will work. But it doesn't and I even can't see logs or error messages, anything.
Read something about user trace. Did it as instructed. Got 25 mb file and I don't really know what to look for in it. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Nov 06, 2014 5:50 am Post subject: Re: Problem with running Email input sample. |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
grasher134 wrote: |
I send email to this adress with attachment or without it and nothing happens.
I connect to same email server via outlook, but I use domain authorisation there. Should I use my domain login/password in mySecurityIdentity1 or not? |
If this POP3 server is in fact a Microsoft server with a POP3 capability, this question needs to be posed to the admin responsible; you may need a domain, you may not depending on how it's been configured.
grasher134 wrote: |
Second is there any way how I can debug/trace/test it? |
User trace - you're quite right to try that.
grasher134 wrote: |
e="grasher134"]Read something about user trace. Did it as instructed. Got 25 mb file and I don't really know what to look for in it. |
What was the "something" that you read? It should have been this, which includes this.
grasher134 wrote: |
They say make this steps and it will work |
The problem is very unlikely to be the sample code. The number of ways you can set up a POP3 server (Microsoft or not) and the fact there's a network connection involved add a level of complexity.
grasher134 wrote: |
I even can't see logs or error messages, anything |
Did you look on the POP3 server logs? Anything probative like "invalid logon"? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Nov 06, 2014 5:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes, you need to specify credentials that are valid on the mail server. They have nothing to do with credentials on the machine running the broker.
So if when you log in using outlook, you enter an email address and a password, or a domain ID and a password, or etc. etc. etc. then that is the credential you need to supply in the security profile.
You can be very specific with the user trace and instruct it to only trace your specific message flow. That can help limit what you have.
But before you run user trace, you should look at the system log on the machine running broker.
If the machine running broker is Windows, this will be the Event Viewer - broker logs to the Application log.
If the machine running broker is Unix, this will likely be /var/log/messages - although your system admin could have pointed this anywhere. |
|
Back to top |
|
 |
grasher134 |
Posted: Thu Nov 06, 2014 10:41 pm Post subject: |
|
|
Acolyte
Joined: 22 Oct 2014 Posts: 62
|
Quote: |
But before you run user trace, you should look at the system log on the machine running broker.
If the machine running broker is Windows, this will be the Event Viewer - broker logs to the Application log.
|
Thank you very much, that helped a lot. At least now I know that problem is with my connection to server. I'll post what the problem was as soon as I find it out. |
|
Back to top |
|
 |
grasher134 |
Posted: Thu Nov 06, 2014 11:38 pm Post subject: |
|
|
Acolyte
Joined: 22 Oct 2014 Posts: 62
|
Now I get
( IB9NODE.EmailExecGroup ) Source character ''1d04'' in field ''5b004a004900520041005d0020001d04300437043d043004470435043d043a00200028005200420041005a004400450056002d00310031003300290020001f0440043e0431043b0435043c044b042000410420003d043004320438043304300446043804350439042e00'' cannot be converted from Unicode to codepage '437'.
The source character is an invalid code point within the given codepage.
Correct the application or message flow that generated the message to ensure that all data within the message can be represented in the target codepage. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Nov 07, 2014 5:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
grasher134 wrote: |
Correct the application or message flow that generated the message to ensure that all data within the message can be represented in the target codepage. |
You should probably do that then.
Unless you think that a UTF-16 x'1d04' does have an equivalent character in 437? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|