java.lang.IllegalStateException: Expecting one Styles document part, but found 0

GitHub | GoogleCodeExporter | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    POI ERROR: Expecting one Styles document part, but found 0

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalStateException: Expecting one Styles document part, but found 0

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Expecting one Styles document part, but found 0

      at org.apache.poi.xwpf.usermodel.XWPFDocument.getStyle()
    2. Apache POI
      XWPFDocument.getStyle
      1. org.apache.poi.xwpf.usermodel.XWPFDocument.getStyle(XWPFDocument.java:441)
      1 frame
    3. org.apache.poi
      AbstractXWPFConverter.convert
      1. org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.<init>(XWPFStylesDocument.java:192)
      2. org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.<init>(XWPFStylesDocument.java:186)
      3. org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.createStylesDocument(XWPFDocumentVisitor.java:161)
      4. org.apache.poi.xwpf.converter.core.XWPFDocumentVisitor.<init>(XWPFDocumentVisitor.java:154)
      5. org.apache.poi.xwpf.converter.pdf.internal.PdfMapper.<init>(PdfMapper.java:149)
      6. org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:54)
      7. org.apache.poi.xwpf.converter.pdf.PdfConverter.doConvert(PdfConverter.java:37)
      8. org.apache.poi.xwpf.converter.core.AbstractXWPFConverter.convert(AbstractXWPFConverter.java:45)
      8 frames
    4. poi38
      ooxmlToPDF.main
      1. poi38.ooxmlToPDF.createPDF(ooxmlToPDF.java:53)
      2. poi38.ooxmlToPDF.main(ooxmlToPDF.java:18)
      2 frames