poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Lechner - FOSSGIS e.V." <marco.lech...@fossgis.de>
Subject upgrade from 3.16 to 3.17 fails with cannot access org.apache.poi.wp.usermodel.Paragraph
Date Sun, 11 Feb 2018 07:39:36 GMT

when I try to upgrade to 3.17 from 3.16, I get the following error:

cannot access org.apache.poi.wp.usermodel.Paragraph
[ERROR] class file for org.apache.poi.wp.usermodel.Paragraph not found

To extract the Paragraphs of a TableCell it works in 3.16 with

import org.apache.poi.xwpf.usermodel.XWPFParagraph;
import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
XWPFTableCell xwpfTableCell = ...;
for (XWPFParagraph xwpfParagraph : xwpfTableCell.getParagraphs()){
    String xwpfText = xwpfParagraph.getText();

Well, org.apache.poi.wp.usermodel.Paragraph does not exist in 3.17,
but in its source code org.apache.poi.xwpf.usermodel.XWPFParagraph.java tries to import
import org.apache.poi.wp.usermodel.Paragraph;
that can not be resolved as well as
import org.apache.poi.util.Internal;

Shouldn't that be 
import org.apache.poi.xwpf.usermodel.Paragraph;

Is this a bug in 3.17? Or am I missing another dependency new in 3.17?

I have poi, poi-ooxml in my pom.xml wich results in

Looks a little bit like https://bz.apache.org/bugzilla/show_bug.cgi?id=57957 but this is years
old and 3.16 worked without problems.


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