[Bug 61421] org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61421 Alexchanged: What|Removed |Added OS||All --- Comment #1 from Alex --- Code that caused the drop XWPFDocument docx = new XWPFDocument(new FileInputStream("D:\\curs.docx")); ArrayList topic = new ArrayList<>(); int i = 0; for(XWPFParagraph paragraph : docx.getParagraphs()){ byte sid = paragraph.getStyleID() != null ? (byte) paragraph.getStyleID().charAt(0) : 0; if (sid >= 49 && sid <=52 ){ if (paragraph.getText().length() > 0) { System.out.println(paragraph.getStyleID() + ":" + paragraph.getText()); Segment segment = new Segment(paragraph.getText(), Integer.valueOf(paragraph.getStyleID().charAt(0))); segment.doc = new XWPFDocument(docx.getPackage()); segment.from = i; if(topic.size() > 0){ topic.get(topic.size() - 1).to = i - 1; } topic.add(segment); } } i++; } for(Segment segment : topic){ i = 0; for(XWPFParagraph paragraph : docx.getParagraphs()) { if(!(i >= segment.from && i <=segment.to)){ int pPos = segment.doc.getPosOfParagraph(paragraph); segment.doc.removeBodyElement(pPos); } i++; } segment.doc.write(new FileOutputStream(new File("D:\\test\\" + segment.title + ".docx"))); segment.doc.close(); } -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org
[Bug 61421] New: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Rule M2.4 exception
https://bz.apache.org/bugzilla/show_bug.cgi?id=61421 Bug ID: 61421 Summary: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeEx ception: Rule M2.4 exception Product: POI Version: 3.16-FINAL Hardware: PC Status: NEW Severity: normal Priority: P2 Component: XWPF Assignee: dev@poi.apache.org Reporter: garfid.n.r...@gmail.com Target Milestone: --- Created attachment 35230 --> https://bz.apache.org/bugzilla/attachment.cgi?id=35230=edit The file caused the exeption -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org
[Bug 61396] DataBarFormatting, setWidthMin by default 10 % in excel output(when i getWidthMin gives 0 and i unable to setWidthMin to any other value)
https://bz.apache.org/bugzilla/show_bug.cgi?id=61396 rajachanged: What|Removed |Added Severity|normal |major OS|All |Windows 10 -- You are receiving this mail because: You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org
Re: Ready for JDK 9 ?
Hi Dominik, That's great news , thanks. Rgds,Rory > On 15 Aug 2017, at 07:06, Dominik Stadlerwrote: > > Hi Rory, > > thinks look good on our side, we run our full unit-test set successfully in > CI at https://builds.apache.org/view/P/view/POI/job/POI-DSL-1.9/. > > We now have added a short news-entry that announces support for Java 9 at > http://poi.apache.org/ and a related FAQ entry, you can link to the FAQ > entry at http://poi.apache.org/faq.html#faq-N102B0 for a more permanent > link to information about using Apache POI with Java 9. The details there > will be updated as we go along. > > Dominik. > > On Tue, Aug 8, 2017 at 11:58 AM, Rory O'Donnell > wrote: > >> >> Hi Dominik, >> >> Thank you very much for all your testing of JDK 9 during its development! >> Such contributions have significantly helped shape and improve JDK 9. >> >> Now that we have reached the JDK 9 Final Release Candidate phase [1] , I >> would like to ask if your project can be considered to be 'ready for JDK >> 9', or if there are any remaining show stopper issues which you've >> encountered when testing with the JDK 9 release candidate. >> >> JDK 9 b181 is available at http://jdk.java.net/9/ >> >> If you have a public web page, mailing list post, or even a tweet >> announcing you project's readiness for JDK 9, I'd love to add the URL to >> the upcoming JDK 9 readiness page on the Quality Outreach wiki. >> >> >> Looking forward to hearing from you, >> Rory >> >> [1] http://openjdk.java.net/projects/jdk9/ >> >> -- >> Rgds,Rory O'Donnell >> Quality Engineering Manager >> Oracle EMEA , Dublin, Ireland >> >> >> - >> To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org >> For additional commands, e-mail: dev-h...@poi.apache.org >> >> - To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org
Re: Ready for JDK 9 ?
Hi Rory, thinks look good on our side, we run our full unit-test set successfully in CI at https://builds.apache.org/view/P/view/POI/job/POI-DSL-1.9/. We now have added a short news-entry that announces support for Java 9 at http://poi.apache.org/ and a related FAQ entry, you can link to the FAQ entry at http://poi.apache.org/faq.html#faq-N102B0 for a more permanent link to information about using Apache POI with Java 9. The details there will be updated as we go along. Dominik. On Tue, Aug 8, 2017 at 11:58 AM, Rory O'Donnellwrote: > > Hi Dominik, > > Thank you very much for all your testing of JDK 9 during its development! > Such contributions have significantly helped shape and improve JDK 9. > > Now that we have reached the JDK 9 Final Release Candidate phase [1] , I > would like to ask if your project can be considered to be 'ready for JDK > 9', or if there are any remaining show stopper issues which you've > encountered when testing with the JDK 9 release candidate. > > JDK 9 b181 is available at http://jdk.java.net/9/ > > If you have a public web page, mailing list post, or even a tweet > announcing you project's readiness for JDK 9, I'd love to add the URL to > the upcoming JDK 9 readiness page on the Quality Outreach wiki. > > > Looking forward to hearing from you, > Rory > > [1] http://openjdk.java.net/projects/jdk9/ > > -- > Rgds,Rory O'Donnell > Quality Engineering Manager > Oracle EMEA , Dublin, Ireland > > > - > To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org > For additional commands, e-mail: dev-h...@poi.apache.org > >