You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by paul <ne...@gmail.com> on 2007/12/17 00:17:22 UTC
java.lang.VerifyError with ExcelExtractor
Hello.
I downloaded poi version 3.0.2-beta1 from svn, because i want to use
ExcelExtractor. When I try to create ExcelExtractor with POIFSFileSystem it
fails with this exception:
java.lang.VerifyError: (class: org/apache/poi/hssf/extractor/ExcelExtractor, method: <init> signature: (Lorg/apache/poi/hssf/usermodel/HSSFWorkbook;)V) Incompatible argument to function
The code:
private String getContentFromExcel(InputStream data) throws IOException {
POIFSFileSystem fs = new POIFSFileSystem(data);
ExcelExtractor extractor = new ExcelExtractor(fs);
return extractor.getText();
}
Thanks for replies.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: java.lang.VerifyError with ExcelExtractor
Posted by Nick Burch <ni...@torchbox.com>.
On Mon, 17 Dec 2007, paul wrote:
> I downloaded poi version 3.0.2-beta1 from svn, because i want to use
> ExcelExtractor. When I try to create ExcelExtractor with POIFSFileSystem
> it fails with this exception:
>
> java.lang.VerifyError: (class: org/apache/poi/hssf/extractor/ExcelExtractor, method: <init> signature: (Lorg/apache/poi/hssf/usermodel/HSSFWorkbook;)V) Incompatible argument to function
I'd check your classpath. That sort of error is most commonly caused by
having an older version of a library (in this case poi) further up the
classpath. So, it's loading the new excel extractor class from the new
jar, but the rest of poi from an old version
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org