使用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包,问题解决。
<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml-full</artifactId> <version>5.2.2</version> </dependency>
相关链接:文章来源:https://www.toymoban.com/news/detail-647022.html
apache poi 升级至5.1.0后的SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource · Issue #732 · Sayi/poi-tl · GitHub文章来源地址https://www.toymoban.com/news/detail-647022.html
到了这里,关于XML-BEANS compiled schema: Could not locate compiled schema resource 异常处理的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!