我的申请详情: 微服务 - Spring boot 1.3.5.RELEASE,JDK 8 应用程序 - Spring 框架 5.3.15,JDK 8
功能:我正在我的应用程序中上传一个 Excel 文件,该文件使用上述微服务来进一步处理它。当我的应用程序在 spring 4.2.1.RELEASE 上时,此功能运行良好。
错误:
io.netty.handler.codec.DecoderException: java.lang.NoClassDefFoundError: org/owasp/esapi/errors/EncodingException
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:278) ~[netty-all-4.0.24.Final.jar:4.0.24.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:147) ~[netty-all-4.0.24.Final.jar:4.0.24.Final]
我将 esapi 库升级到最新版本,但仍然给我同样的错误。
导致此问题的可能原因是什么?怎么解决这个问题?
看起来您错过了项目中的依赖项
esapi
,其中包含缺少的类。如果你使用maven,添加
<!-- https://mvnrepository.com/artifact/org.owasp.esapi/esapi -->
<dependency>
<groupId>org.owasp.esapi</groupId>
<artifactId>esapi</artifactId>
<version>2.5.3.1</version>
</dependency>
在 pom.xml 中添加依赖项