You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2012/12/18 09:30:33 UTC

svn commit: r1423318 - /felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java

Author: clement
Date: Tue Dec 18 08:30:32 2012
New Revision: 1423318

URL: http://svn.apache.org/viewvc?rev=1423318&view=rev
Log:
Defensive catch to avoid any 'unexpected' error to stop the complete system.

Modified:
    felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java?rev=1423318&r1=1423317&r2=1423318&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java (original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/Extender.java Tue Dec 18 08:30:32 2012
@@ -533,6 +533,9 @@ public class Extender implements Synchro
             m_logger.log(Logger.ERROR, "Cannot instantiate an abstract factory from " + clazz.getName(), e);
         } catch (InvocationTargetException e) {
             m_logger.log(Logger.ERROR, "Cannot instantiate an abstract factory from " + clazz.getName(), e.getTargetException());
+        } catch(Throwable e) {
+            // Intercepts everything else to avoid complete crash.
+            m_logger.log(Logger.ERROR, "Cannot instantiate an abstract factory from " + clazz.getName(), e);
         }
     }