Re: NotificationPluginManagerImpl seems not very stable

2016-04-11 Thread Hao Chen
Thanks, I may fix by my side during troubleshooting. - Hao On Mon, Apr 11, 2016 at 4:56 AM, Edward Zhang wrote: > Look into the code, this error only happens when the following 2 conditions > are met: > 1) One notification has not notificationType associated, Eagle framework > uses default noti

Re: NotificationPluginManagerImpl seems not very stable

2016-04-10 Thread Edward Zhang
Look into the code, this error only happens when the following 2 conditions are met: 1) One notification has not notificationType associated, Eagle framework uses default notification type "email", while 2) Notification type email is not initialized in alertNotifications table check out private M

Re: NotificationPluginManagerImpl seems not very stable

2016-04-10 Thread Chen, Hao
I know it’s because notification plugin is not correctly, so my question is: 1) Is there any doc/guide to help user to know how to setup the notification plugin or metadata ? 2) Even not set, the notification system should have some default behavior but not just throw exception. Thanks, Hao

Re: NotificationPluginManagerImpl seems not very stable

2016-04-09 Thread Senthil Kumar
Here is the Piece of Code which Triggers Notifications: for(NotificationPlugin plugin : plugins){ try { LOG.info("execute notification plugin " + plugin); plugin.onAlert(entity); }catch(Exception ex){ LOG.error("fail invoking plugin's onAlert, continue ", ex); } Code throws exception here.. Seems

Re: NotificationPluginManagerImpl seems not very stable

2016-04-09 Thread Liangfei.Su
Looks like you don't have notification initialized? On Sat, Apr 9, 2016 at 7:29 PM, Hao Chen wrote: > NotificationPluginManager seems not very stable, any docs/guideline for > this part? > > 68771 [Thread-11-AlertNotificationExecutor_8] ERROR > org.apache.eagle.notification.plugin.NotificationPl

NotificationPluginManagerImpl seems not very stable

2016-04-09 Thread Hao Chen
NotificationPluginManager seems not very stable, any docs/guideline for this part? 68771 [Thread-11-AlertNotificationExecutor_8] ERROR org.apache.eagle.notification.plugin.NotificationPluginManagerImpl - fail invoking plugin's onAlert, continue java.lang.NullPointerException: null at org.apache.ea