You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2017/06/15 05:08:25 UTC
svn commit: r1798793 -
/poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java
Author: onealj
Date: Thu Jun 15 05:08:24 2017
New Revision: 1798793
URL: http://svn.apache.org/viewvc?rev=1798793&view=rev
Log:
bug 61170: add comment why we should catch exceptions in SAXHelper
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java?rev=1798793&r1=1798792&r2=1798793&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/util/SAXHelper.java Thu Jun 15 05:08:24 2017
@@ -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;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org