aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2008-06-27 10:12:11 +0000
committerNick Burch <nick@apache.org>2008-06-27 10:12:11 +0000
commit73dc9ecc22cdcde724c4cda290cd337c063c68cb (patch)
tree118acdb1edced6a6c053ebc0d5a24f29489f3dc2
parenteb57e72a94143923651b02ff3adda802bba03dfe (diff)
downloadpoi-73dc9ecc22cdcde724c4cda290cd337c063c68cb.tar.gz
poi-73dc9ecc22cdcde724c4cda290cd337c063c68cb.zip
Add MethodNotFound exceptions to the faq
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@672230 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/documentation/content/xdocs/faq.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml
index e74b6f0901..22c1a4cb4d 100644
--- a/src/documentation/content/xdocs/faq.xml
+++ b/src/documentation/content/xdocs/faq.xml
@@ -22,6 +22,36 @@
<faqs title="Frequently Asked Questions">
<faq>
<question>
+ My code uses some new HSSF feature, compiles fine but fails when live with a "MethodNotFoundException"
+ </question>
+ <answer>
+ <p>You almost certainly have an older version of POI earlier
+ on your classpath. Quite a few runtimes and other packages
+ will ship an older version of POI, so this is an easy problem
+ to hit without realising.</p>
+ <p>The best way to identify the offending earlier jar file is
+ with a few lines of java. These will load one of the core POI
+ classes, and report where it came from.</p>
+ <source>
+ClassLoader classloader = org.apache.poi.poifs.filesystem.POIFSFileSystem.class.getClassLoader();
+URL res = classloader.getResource("org/apache/poi/poifs/filesystem/POIFSFileSystem.class">
+String path = res.getPath();
+System.out.println("Core POI came from " + path);
+ </source>
+ </answer>
+ </faq>
+ <faq>
+ <question>
+ My code uses the scratchpad, compiles fine but fails to run with a "MethodNotFoundException"
+ </question>
+ <answer>
+ <p>You almost certainly have an older version earlier on your
+ classpath. See the answer to the similar question above for
+ how to track this down.</p>
+ </answer>
+ </faq>
+ <faq>
+ <question>
Why is reading a simple sheet taking so long?
</question>
<answer>