You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2014/07/15 13:04:51 UTC

svn commit: r1610647 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java

Author: ggregory
Date: Tue Jul 15 11:04:51 2014
New Revision: 1610647

URL: http://svn.apache.org/r1610647
Log:
[LOG4J2-703] Android: Could not find class 'javax.naming.InitialContext', referenced from method org.apache.logging.log4j.core.lookup.JndiLookup.lookup. Catch a VerifyError when loading a plugin, log and allow processing to continue.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java?rev=1610647&r1=1610646&r2=1610647&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java (original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java Tue Jul 15 11:04:51 2014
@@ -171,6 +171,8 @@ public class PluginManager {
                             types.put(key, pluginType);
                         } catch (final ClassNotFoundException e) {
                             LOGGER.info("Plugin [{}] could not be loaded due to missing classes.", className, e);
+                        } catch (final VerifyError e) {
+                            LOGGER.info("Plugin [{}] could not be loaded due to verification error.", className, e);
                         }
                     }
                 }