[POLICY-122] Policy GUI Fixes
[policy/engine.git] / PolicyEngineAPI / src / main / java / org / openecomp / policy / std / AutoClientEnd.java
index 9ca544f..06a2e47 100644 (file)
@@ -165,12 +165,16 @@ public class AutoClientEnd {
                                try{
                                        handler.notificationReceived(notification);
                                }catch (Exception e){
-                                       logger.error("Error in Clients Handler Object : " + e.getMessage());
+                                       logger.error("Error in Clients Handler Object : ", e);
                                }
                        } else if (scheme.equals(NotificationScheme.AUTO_NOTIFICATIONS)) {
                                PDPNotification newNotification = MatchStore.checkMatch(notification);
                                if (newNotification.getNotificationType() != null) {
-                                       handler.notificationReceived(newNotification);
+                                       try{
+                                               handler.notificationReceived(newNotification);
+                                       }catch (Exception e){
+                                               logger.error("Error in Clients Handler Object : ", e);
+                                       }
                                }
                        }
                }
@@ -191,7 +195,7 @@ public class AutoClientEnd {
        public void onError(Session session, Throwable e) {
                // trying to Restart by self.
                logger.error(XACMLErrorConstants.ERROR_PROCESS_FLOW + "Session Error.. "+ session.getId() + "\n Error is : " + e );
-               // e.printStackTrace();
+               // logger.error("Exception Occured"+e);
                stop();
                if (url != null) {
                        client = null;