-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2021.50
-
Fix Version/s: 2021.52
-
Component/s: Automation
-
Release Notes Summary:PDFBox was bumped from 2.0.24 to 2.0.31
-
Tags:
-
Backlog priority:650
-
Upgrade notes:
-
Sprint:nxplatform #109, nxplatform #110
-
Story Points:1
The operation PDFMerge can fail with the following error
at java.lang.Thread.run(Thread.java:829) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] Suppressed: java.lang.NullPointerException at org.apache.pdfbox.pdmodel.common.PDNumberTreeNode.getNumbers(PDNumberTreeNode.java:179) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.getNumberTreeAsMap(PDFMergerUtility.java:1146) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.getNumberTreeAsMap(PDFMergerUtility.java:1161) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:782) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:459) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346) ~[pdfbox-2.0.24.jar:2.0.24] at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:330) ~[pdfbox-2.0.24.jar:2.0.24] at org.nuxeo.ecm.platform.pdf.PDFMerge.merge(PDFMerge.java:149) ~[nuxeo-platform-pdf-utils-2021.29.7.jar:?] at org.nuxeo.ecm.platform.pdf.PDFMerge.merge(PDFMerge.java:119) ~[nuxeo-platform-pdf-utils-2021.29.7.jar:?]
An upgrade of PDFBox lib to 2.0.30 (instead of 2.0.24 currently) fixes the bug.