poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r672230 - /poi/trunk/src/documentation/content/xdocs/faq.xml
Date Fri, 27 Jun 2008 10:12:11 GMT
Author: nick
Date: Fri Jun 27 03:12:11 2008
New Revision: 672230

URL: http://svn.apache.org/viewvc?rev=672230&view=rev
Log:
Add MethodNotFound exceptions to the faq

Modified:
    poi/trunk/src/documentation/content/xdocs/faq.xml

Modified: poi/trunk/src/documentation/content/xdocs/faq.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/faq.xml?rev=672230&r1=672229&r2=672230&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/faq.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/faq.xml Fri Jun 27 03:12:11 2008
@@ -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>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message