java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPIm

简介: java.lang.ClassNotFoundException: org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTPIm
  • 将poi-ooxml-schemas-x.x.jar换成ooxml-schemas-1.1.jar 就好啦


20210129173141205.png

根据这个回答,poi提供的那个ooxml-schemas.jar包是精简版的,为了节省空间,里面放的只有一些常用的模块,所以要引用另外一些功能的话就需要引用完全版的ooxml-schemas.jar包。另外,3.5和3.6版本的poi对应的完整版的jar包是1.0版的,如果要用3.7及以上的,就需要用ooxml-schemas-1.1.jar这个包了,这样导入之后果然就好了。


总结一下,遇到这个问题需要导入ooxml-schemas-1.1.jar这个包,最好去掉poi提供的那个同名的包,如:去掉poi-ooxml-schemas-3.12-20150511.jar这个包。

相关文章
|
4月前
|
移动开发 数据库 索引
"java.lang.ArrayIndexOutOfBoundsException: 0\r\n\tat org.neo4j.ogm.context.EntityRowModelMapper.extractColumnValue(EntityRowModelMapper.java:75) 问题处理
"java.lang.ArrayIndexOutOfBoundsException: 0\r\n\tat org.neo4j.ogm.context.EntityRowModelMapper.extractColumnValue(EntityRowModelMapper.java:75) 问题处理
50 5
|
2月前
|
Java
flyway报错Caused by: java.lang.NoSuchMethodError: org.flywaydb.core.api.configuration.FluentConfigurat
flyway报错Caused by: java.lang.NoSuchMethodError: org.flywaydb.core.api.configuration.FluentConfigurat
35 2
|
6月前
|
SpringCloudAlibaba Java Maven
【问题篇】Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/
【问题篇】Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/
35 2
|
6月前
|
安全 Java 数据库连接
java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe
java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe
56 0
|
Java Spring
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
3546 1
【已解决】Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.
nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/co
nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/co
233 0
|
Java 应用服务中间件 Apache
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim
nested exception is java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntim
360 0
|
Java 测试技术
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
Cannot instantiate test(s): java.lang.SecurityException: Prohibited package name: java
|
Java Spring
【异常】springboot项目启动报错java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)
产生此问题的原因是由于spring boot版本兼容性导致的: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)
330 0