Error while configuring email notification in WSO2 DSS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while configuring email notification in WSO2 DSS

Piriya Sivalingam
Hi,

I am trying to configure email notification scenario in WSO2 DSS. I have generated a data service in DSS for exposing data in a database, and when a request to that data service triggers an event the subscribers to that event should receive an email notification. The use case is when I invoke the data service the data should be added to the database and at the same time the respective subscribers should receive a mail notification. 

The steps I followed are:
  • I configured the mailto transport sender in axis2_Client.xml file located in <DSS_HOME>/repository/conf/axis2 folder.
  • In the insert query I added an event for identifying an event_trigger used in the data service. 
  • I configured the Xpath accordingly for the response message, and when this evaluation becomes true the event will be triggered.
  • I configured the Event sink URL as well.  
When I invoke the service I found the following exception logged in the console:

ERROR {org.apache.axis2.transport.mail.MailTransportSender} -  Error creating mail message or sending it to the configured server {org.apache.axis2.transport.mail.MailTransportSender}
javax.mail.AuthenticationFailedException

Can you please suggest whether there is anything wrong with my configuration?
The document I referred is [1].


Thanks,
Piriya

Regards,
Piriya Sivalingam
Software Engineer - Support Team
WSO2
Mobile : +94 77 8462039

http://wso2.com/signature


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Error while configuring email notification in WSO2 DSS

Dilusha Alphonso
Hi Piriya,

I followed the same documentation for email generation in DSS. But I encountered another exception while configuring. I believe the steps you followed here is correct but if I am not wrong you may be missed to select the input event which you created. If so could you please select that event and save it. I feel this instruction is missing in the document. So can you try this out and let me know whether it works or not.

Thanks,
Dilusha.



On Wed, Dec 13, 2017 at 12:11 PM, Piriya Sivalingam <[hidden email]> wrote:
Hi,

I am trying to configure email notification scenario in WSO2 DSS. I have generated a data service in DSS for exposing data in a database, and when a request to that data service triggers an event the subscribers to that event should receive an email notification. The use case is when I invoke the data service the data should be added to the database and at the same time the respective subscribers should receive a mail notification. 

The steps I followed are:
  • I configured the mailto transport sender in axis2_Client.xml file located in <DSS_HOME>/repository/conf/axis2 folder.
  • In the insert query I added an event for identifying an event_trigger used in the data service. 
  • I configured the Xpath accordingly for the response message, and when this evaluation becomes true the event will be triggered.
  • I configured the Event sink URL as well.  
When I invoke the service I found the following exception logged in the console:

ERROR {org.apache.axis2.transport.mail.MailTransportSender} -  Error creating mail message or sending it to the configured server {org.apache.axis2.transport.mail.MailTransportSender}
javax.mail.AuthenticationFailedException

Can you please suggest whether there is anything wrong with my configuration?
The document I referred is [1].


Thanks,
Piriya

Regards,
Piriya Sivalingam
Software Engineer - Support Team
WSO2
Mobile : <a href="tel:+94%2077%20846%202039" value="+94778462039" target="_blank">+94 77 8462039

http://wso2.com/signature


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Best Regards,
Dilusha Alphonso
Software Engineer - Support Team
WSO2

Mobile : +94766837098
http://wso2.com/signature

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Error while configuring email notification in WSO2 DSS

Chanika Geeganage
In reply to this post by Piriya Sivalingam
Since this is an authentication failure, this might be because of gmail account protection. To avoid that, you have to make your gmail account less secure. You can do that from following link

https://www.google.com/settings/security/lesssecureapps

On Wed, Dec 13, 2017 at 12:11 PM, Piriya Sivalingam <[hidden email]> wrote:
Hi,

I am trying to configure email notification scenario in WSO2 DSS. I have generated a data service in DSS for exposing data in a database, and when a request to that data service triggers an event the subscribers to that event should receive an email notification. The use case is when I invoke the data service the data should be added to the database and at the same time the respective subscribers should receive a mail notification. 

The steps I followed are:
  • I configured the mailto transport sender in axis2_Client.xml file located in <DSS_HOME>/repository/conf/axis2 folder.
  • In the insert query I added an event for identifying an event_trigger used in the data service. 
  • I configured the Xpath accordingly for the response message, and when this evaluation becomes true the event will be triggered.
  • I configured the Event sink URL as well.  
When I invoke the service I found the following exception logged in the console:

ERROR {org.apache.axis2.transport.mail.MailTransportSender} -  Error creating mail message or sending it to the configured server {org.apache.axis2.transport.mail.MailTransportSender}
javax.mail.AuthenticationFailedException

Can you please suggest whether there is anything wrong with my configuration?
The document I referred is [1].


Thanks,
Piriya

Regards,
Piriya Sivalingam
Software Engineer - Support Team
WSO2
Mobile : <a href="tel:+94%2077%20846%202039" value="+94778462039" target="_blank">+94 77 8462039

http://wso2.com/signature


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Best Regards..

Chanika Geeganage
+94773522586
WSO2, Inc.; http://wso2.com


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Error while configuring email notification in WSO2 DSS

Piriya Sivalingam
Hi Chanika,

I have already set it to true. 


@ Dilusha 
I tried as you mentioned and it works for me. I could receive the mail now. 

Thank you.


On Wed, Dec 13, 2017 at 12:18 PM, Chanika Geeganage <[hidden email]> wrote:
Since this is an authentication failure, this might be because of gmail account protection. To avoid that, you have to make your gmail account less secure. You can do that from following link

https://www.google.com/settings/security/lesssecureapps

On Wed, Dec 13, 2017 at 12:11 PM, Piriya Sivalingam <[hidden email]> wrote:
Hi,

I am trying to configure email notification scenario in WSO2 DSS. I have generated a data service in DSS for exposing data in a database, and when a request to that data service triggers an event the subscribers to that event should receive an email notification. The use case is when I invoke the data service the data should be added to the database and at the same time the respective subscribers should receive a mail notification. 

The steps I followed are:
  • I configured the mailto transport sender in axis2_Client.xml file located in <DSS_HOME>/repository/conf/axis2 folder.
  • In the insert query I added an event for identifying an event_trigger used in the data service. 
  • I configured the Xpath accordingly for the response message, and when this evaluation becomes true the event will be triggered.
  • I configured the Event sink URL as well.  
When I invoke the service I found the following exception logged in the console:

ERROR {org.apache.axis2.transport.mail.MailTransportSender} -  Error creating mail message or sending it to the configured server {org.apache.axis2.transport.mail.MailTransportSender}
javax.mail.AuthenticationFailedException

Can you please suggest whether there is anything wrong with my configuration?
The document I referred is [1].


Thanks,
Piriya

Regards,
Piriya Sivalingam
Software Engineer - Support Team
WSO2
Mobile : <a href="tel:+94%2077%20846%202039" value="+94778462039" target="_blank">+94 77 8462039

http://wso2.com/signature


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Best Regards..

Chanika Geeganage
<a href="tel:+94%2077%20352%202586" value="+94773522586" target="_blank">+94773522586
WSO2, Inc.; http://wso2.com




--
Regards,
Piriya Sivalingam
Software Engineer - Support Team
WSO2
Mobile : +94 77 8462039

http://wso2.com/signature


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev

12.png (32K) Download Attachment