org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save

前端 未结 6 1242

I\'m facing org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save:an error occurs while saving the package : The part /docProps/app.xml fail to b

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 18:21

    I had this problem today and fixed it already.

    The problem is in putResultstoReport()

    You can't wb.write(fileOut); in your cycle.

    resolution:

    first call putResultstoReport(); then wb.write(fileOut);

提交回复
热议问题