Symptom
After upgrading to SAP Commerce 2205.30, there are several scenarios may caused the NoSuchMethodError: 'void org.apache.xmlbeans.XmlCursor.close()' and the operations cannot get executed.
For example, when try to bulk export products' fields in Backoffice >> Catalog >> Product >> Export Excel >> Export, the error will occurred:
ERROR [hybrisHTTPS32] [,][35.191.12.202] [UiEngineImpl]
java.lang.NoSuchMethodError: 'void org.apache.xmlbeans.XmlCursor.close()'
at org.apache.poi.xssf.usermodel.XSSFRichTextString.preserveSpaces(XSSFRichTextString.java:495) ~[poi-ooxml-5.2.5.jar:5.2.5]
at org.apache.poi.xssf.usermodel.XSSFRichTextString.<init>(XSSFRichTextString.java:91) ~[poi-ooxml-5.2.5.jar:5.2.5]
at org.apache.poi.xssf.usermodel.XSSFCell.setCellValueImpl(XSSFCell.java:353) ~[poi-ooxml-5.2.5.jar:5.2.5]
at org.apache.poi.ss.usermodel.CellBase.setCellValue(CellBase.java:275) ~[poi-5.2.5.jar:5.2.5]
at com.hybris.backoffice.excel.template.cell.DefaultExcelCellService.insertAttributeValue(DefaultExcelCellService.java:52) ~[backofficeserver.jar:?]
at com.hybris.backoffice.excel.exporting.DefaultExcelExportService.lambda$addValues$10(DefaultExcelExportService.java:260) ~[backofficeserver.jar:?]
at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at com.hybris.backoffice.excel.exporting.DefaultExcelExportService.lambda$addValues$11(DefaultExcelExportService.java:259) ~[backofficeserver.jar:?]
at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
at com.hybris.backoffice.excel.exporting.DefaultExcelExportService.lambda$addValues$12(DefaultExcelExportService.java:257)
|
** Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.**
Read more...
Environment
SAP Commerce 2205.30 and higher
Product
Keywords
xmlbeans-5.0.3, xmlbeans-5.2.0, poi-5.2.5, poi-5.2.2, XmlCursor, compatible, NoSuchMethodError, org.apache.xmlbeans.XmlCursor.close(), try-with-resources , KBA , CEC-SCC-CDM-BO-FRW , Framework , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.