Handler dispatch failed, nested exception is java lang NoClassDefFoundEror, Could not nitialize class org apache pol.ooxml POXMLTypelLoader
时间: 2023-11-03 15:57:02 浏览: 52
Handler dispatch failed, nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.ooxml.POIXMLTypeLoader. 这个问题通常是由于缺少依赖包导致的。您可以尝试降低JDK版本到1.8,并手动导入以下包来解决这个问题:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
这些包将帮助您解决缺少jaxb-api包的问题。请确保在您的项目中正确引入它们。