XML-BEANS compiled schema: Could not locate compiled schema resource 异常处理

使用poi5.2.2生成ppt,生成堆叠图,设置值时抛出异常

XML-BEANS compiled schema: Could not locate compiled schema resource org/apache/poi/schemas/ooxml/system/ooxml/stoverlappercent872etype.xsb (org.apache.poi.schemas.ooxml.system.ooxml.stoverlappercent872etype) - code 0

异常显示缺少stoverlappercent872etype.xsb文件,检查poi-ooxml包和关联引入的poi-ooxml-lite包均正常引入且无冲突。

检查poi-ooxml-lite包下org/apache/poi/schemas/ooxml/system/ooxml目录显示有stoverlappercent872etype.xsb文件。但是无法读取,此处可能是poi5.2.2的bug

github查找到此issues,按回答引入poi-ooxml-full包,问题解决。


   org.apache.poi
   poi-ooxml-full
   5.2.2

相关链接:

apache poi 升级至5.1.0后的SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource · Issue #732 · Sayi/poi-tl · GitHub

你可能感兴趣的:(xml,poi)