cancel
Showing results for 
Search instead for 
Did you mean: 

Message monitoring status shows FAILED

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Experts,

I followed blog series on building the iFlow (part 1 to 5). I am able to deploy the iFlow but dont get any email. When i look into message monitoring, i can see its status as FAILED.

Looking into logs (Properties>Log) gives me below info


Message Processing Log{

  ContextName         = WeatherReport_Oct

  IntermediateError   = true

  MessageGuid         = AFYXvbn8tVzDhu811HbtarWt3Evo

  Node                = vsa615192.od.sap.biz

  OverallStatus       = FAILED

  StartTime           = Fri Oct 09 13:14:33 UTC 2015

  StopTime            = Fri Oct 09 13:14:33 UTC 2015

  Children [

    Entering Camel route route18{

      StartTime           = Fri Oct 09 13:14:33 UTC 2015

      Children [

        Exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 created in Endpoint[quartz2://WeatherReportOctTimerEventDefinition11?fireNow=true&trigger.repeatCount=0&trigger.repeatInterval=0]{

          StartTime           = Fri Oct 09 13:14:33 UTC 2015

          StopTime            = Fri Oct 09 13:14:33 UTC 2015

          Children [

            Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 in direct://WeatherReport_Oct_TimerEventDefinition_1{

              StartTime           = Fri Oct 09 13:14:33 UTC 2015

              StepId              = to21

              StopTime            = Fri Oct 09 13:14:33 UTC 2015

              Children [

                Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 in removeHeaders[*]{

                  StartTime           = Fri Oct 09 13:14:33 UTC 2015

                  StepId              = removeHeaders10

                  StopTime            = Fri Oct 09 13:14:33 UTC 2015

                  Children [

                    Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 in setHeader[CamelHttpMethod]{

                      StartTime           = Fri Oct 09 13:14:33 UTC 2015

                      StepId              = ServiceTask_1

                      StopTime            = Fri Oct 09 13:14:33 UTC 2015

                      Children [

                        Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 in setHeader[CamelHttpQuery]{

                          StartTime           = Fri Oct 09 13:14:33 UTC 2015

                          StepId              = setHeader23

                          StopTime            = Fri Oct 09 13:14:33 UTC 2015

                          Children [

                            Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 in ahc:http://api.openweathermap.org/data/2.5/weather?clientConfig=#clientConfig_Receiver_DownloadWeather&c...{

                              Error               = org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking http://api.openweathermap.org/data/2.5/weather?q=chippenham%2CUK&mode=XML with statusCode: 401

                              Sent To URI         = direct://WeatherReport_Oct_TimerEventDefinition_1

                              StartTime           = Fri Oct 09 13:14:33 UTC 2015

                              StepId              = to22

                              StopTime            = Fri Oct 09 13:14:33 UTC 2015

                              Time Taken          = 30

                              Children [

                                Exchange ID-vsa615192-od-sap-biz-40204-1444264582174-11-2 failed{

                                  StartTime           = Fri Oct 09 13:14:33 UTC 2015

                                  Status              = FAILED

                                  Children [

                                    Exiting Camel route route18{

                                      StartTime           = Fri Oct 09 13:14:33 UTC 2015

} ] } ] } ] } ] } ] } ] } ] } ] } ] }

Note: i have verified API call (http://api.openweathermap.org/data/2.5/weather?q=chippenham%2CUK&mode=XML) from this link

Also, i cant request tracing to be enabled on my tenant.


When i look into Web UI:

I am able to see info for one message flow channel but for other it shows nothing. Is it a strange behavior?



What went wrong?

Regards,

JK

Accepted Solutions (0)

Answers (4)

Answers (4)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Now new error:


Error  = javax.mail.MessagingException: Could not convert socket to TLS;

  nested exception is:

  javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

its same one only.

<<password is my gmail account password>>

midhun_vp
Active Contributor
0 Kudos

Hi JK,

We just found that we need to signup to use this service.

After registration append the API key as given below it should work.

Regards, Midhun

SAP Technology RIG

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Now i created a new iFlow project and chose below settings for HTTP channel

For 'Mail Channel' , address is smtp.gmail.com:587

(Credential Name-> i have got after creating and deploying a credential artifacts as mentioned here)

After deployment, i get different error:


                                                             StartTime           = Mon Oct 12 10:27:35 UTC 2015

                                                              StepId              = setBody7

                                                              StopTime            = Mon Oct 12 10:27:35 UTC 2015

                                                              Children [

                                                                Processing exchange ID-vsa615192-od-sap-biz-40204-1444264582174-14-2 in ref:sender_mail1{

                                                                  Error               = com.sun.mail.smtp.SMTPSendFailedException: 530-5.5.1 Authentication Required. Learn more at

530 5.5.1  https://support.google.com/mail/answer/14257 ry1sm18978548wjb.24 - gsmtp

                                                                  Sent To URI         = direct://WR12Oct_TimerEventDefinition_1

                                                                  StartTime           = Mon Oct 12 10:27:35 UTC 2015

                                                                  StepId              = to32

                                                                  StopTime            = Mon Oct 12 10:27:35 UTC 2015

                                                                  Time Taken          = 570

                                                                  Children [

                                                                    Exchange ID-vsa615192-od-sap-biz-40204-1444264582174-14-2 failed{

                                                                      StartTime           = Mon Oct 12 10:27:35 UTC 2015

                                                                      Status              = FAILED

Is this something went wrong on gmail server to deliver a message?

Regards,

JK

midhun_vp
Active Contributor
0 Kudos

Hi JK,

It fails when try to send email. You have to double check the credentials you provided and the credential name (it should be same as the deployed artifact).

Regards, Midhun

SAP Technology RIG

midhun_vp
Active Contributor
0 Kudos

Hi JK,

The service used is down. You may have to test this again later.

I have tried this tutorial today and it worked. But the sample APIs are not available now. You should be able to test it once it is up.

Regards, Midhun

SAP Technology RIG