logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1610647 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginManager.java
Date Tue, 15 Jul 2014 11:04:51 GMT
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);
                         }
                     }
                 }



Mime
View raw message