]> source.dussan.org Git - poi.git/commitdiff
bug 61170: add comment why we should catch exceptions in SAXHelper
authorJaven O'Neal <onealj@apache.org>
Thu, 15 Jun 2017 05:08:24 +0000 (05:08 +0000)
committerJaven O'Neal <onealj@apache.org>
Thu, 15 Jun 2017 05:08:24 +0000 (05:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1798793 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/util/SAXHelper.java

index 5149a222bb54c6bcb94c9b0fdeb5730439f03452..fcd86e5099c1fec9f3c60d7810e6405e02a3ad2f 100644 (file)
@@ -73,6 +73,10 @@ public final class SAXHelper {
             logger.log(POILogger.WARN, "Failed to create SAXParserFactory", e);
             throw new RuntimeException("Failed to create SAXParserFactory", e);
         } catch (Error e) {
+            // catches NoClassDefFoundError, which may be due to a local class path issue
+            // This may occur if the code is run inside a web container
+            // or a restricted JVM
+            // See bug 61170: https://bz.apache.org/bugzilla/show_bug.cgi?id=61170
             logger.log(POILogger.WARN, "Failed to create SAXParserFactory", e);
             throw e;
         }