Fix 'blocker' severity issues in Sonar 43/14143/1 develop
authorLorand Jakab <lojakab@cisco.com>
Wed, 14 Jan 2015 14:27:34 +0000 (16:27 +0200)
committerLorand Jakab <lojakab@cisco.com>
Wed, 14 Jan 2015 14:27:34 +0000 (16:27 +0200)
Change-Id: I63e393027535d1fec078f3f52382b84dbd9dbd16
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/LispSouthboundPlugin.java

index 0d4f15aeca7c7d63b13f0d3902868f8b10fb7a10..42c6212b9018ef050b379dae4ace90a762ae17d2 100644 (file)
@@ -147,8 +147,8 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
         try {
             registerWithOSGIConsole();
             logger.info("LISP (RFC6830) Mapping Service init finished");
-        } catch (Throwable t) {
-            logger.error(t.getStackTrace().toString());
+        } catch (Exception e) {
+            logger.error(e.getStackTrace().toString());
         }
     }
 
index 311d19aae398454ec68813fa967a3407604e20dc..e26ffb4f53bf784f3a75dc893415089b82900a43 100644 (file)
@@ -136,8 +136,8 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
 
                 try {
                     this.service.handlePacket(packet);
-                } catch (Throwable t) {
-                    logger.warn("Error while handling packet", t);
+                } catch (Exception e) {
+                    logger.warn("Error while handling packet", e);
                 }
             }
 
@@ -218,8 +218,8 @@ public class LispSouthboundPlugin extends AbstractBindingAwareProvider implement
             lispSouthboundService.setNotificationProvider(session.getSALService(NotificationProviderService.class));
             lispXtrSouthboundService.setNotificationProvider(session.getSALService(NotificationProviderService.class));
             session.addRpcImplementation(LispflowmappingService.class, this);
-        } catch (Throwable t) {
-            logger.error(t.getMessage(), t);
+        } catch (Exception e) {
+            logger.error(e.getMessage(), e);
         }
     }