Tag Archives: EasyExcel3.0.5 Error

How to Solve EasyExcel3.0.5 Version Error

Because the SpringBoot version is incompatible with the cglib version of EasyExcel;

Phenomenon:

# error 1
Caused by: java.lang.IllegalArgumentException
 at org.objectweb.asm.ClassVisitor.<init>(Unknown Source)
 # Error 2
com.alibaba.excel.exception.ExcelAnalysisException: java.lang.ExceptionInInitializerError
 at com.alibaba.excel.analysis.ExcelAnalyserImpl.analysis(ExcelAnalyserImpl.java:134)

Because the cglib package on which asm depends is inconsistent with the springboot version, an error is reported

Solution:

For example, easyexcel version is 3.0.5, and cglib needs to be configured to 3.3.0

<dependency>
	<groupId>cglib</groupId>
	<artifactId>cglib</artifactId>
	<version>3.3.0</version>
</dependency>