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" <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to