使用poi5.2.2生成ppt,生成堆疊圖,設(shè)置值時(shí)拋出異常
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包和關(guān)聯(lián)引入的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>
相關(guān)鏈接:文章來源:http://www.zghlxwxcb.cn/news/detail-647022.html
apache poi 升級(jí)至5.1.0后的SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource · Issue #732 · Sayi/poi-tl · GitHub文章來源地址http://www.zghlxwxcb.cn/news/detail-647022.html
到了這里,關(guān)于XML-BEANS compiled schema: Could not locate compiled schema resource 異常處理的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!