poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javen O'Neal" <javenon...@gmail.com>
Subject Re: POI 3.15 - Can not create an instance of HWPFDocument(inputstream)
Date Mon, 31 Oct 2016 04:04:16 GMT
Do you have mixed POI libraries in your class path?
https://poi.apache.org/faq.html#faq-N10006

On Oct 30, 2016 20:59, "Bhaarat Sharma" <bhaarat.s@gmail.com> wrote:

> I have an extremely simple DOC (attached). I can't seem to create an
> instance of the HWPFDocument.
>
> I am just doing
>
> HWPFDocument doctest = new HWPFDocument(new FileInputStream(new File
> ("worddoctest.doc")))
>
> The error I get is:
>
> Caused by NoSuchMethodError: org.apache.poi.util.POILogger.
> log(ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;
> Ljava/lang/Object;Ljava/lang/Object;)V
> ->> 173 | assertCbRgFcLcb in org.apache.poi.hwpf.model.
> FileInformationBlock
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> |   158 | assertCbRgFcLcb in     ''
> |   140 | <init> in     ''
> |   155 | <init> in org.apache.poi.hwpf.HWPFDocumentCore
> |   218 | <init> in org.apache.poi.hwpf.HWPFDocument
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message