简体   繁体   English

使用 Apache POI 为 Cell 设置值时出现 NoSuchMethodError

[英]NoSuchMethodError coming while setting values to Cell using Apache POI

i am getting below error at cell.setCellValue("sdjcb") ;我在cell.setCellValue("sdjcb")处遇到错误; can any one please help有人可以帮忙吗

Exception in thread "main" java.lang.NoSuchMethodError: 'org.openxmlformats.schemas.officeDocument.x2006.sharedTypes.STXstring org.openxmlformats.schemas.spreadsheetml.x2006.main.CTRst.xgetT()'
at org.apache.poi.xssf.usermodel.XSSFRichTextString.<init>(XSSFRichTextString.java:92)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellType(XSSFCell.java:928)
at org.apache.poi.xssf.usermodel.XSSFCell.setCellTypeImpl(XSSFCell.java:903)[![enter image description here][1]][1]
at org.apache.poi.ss.usermodel.CellBase.setCellType(CellBase.java:57)

[1]:https://i.stack.imgur.com/Yhz75.png

Here is a information about correct version of poi-schemas and version of poi: link .这是有关 poi 模式的正确版本和 poi 版本的信息:链接 Delete poi-ooxml-schemas-4.1.2.jar and ooxml-schemas-1.4.jar and add poi-ooxm-full .删除poi-ooxml-schemas-4.1.2.jarooxml-schemas-1.4.jar并添加poi-ooxm-full

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM