JFINAL升级到4.9后报找不到类的错误

java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/nustaq/serialization/FSTObjectOutput

at com.jfinal.aop.Invocation.invoke(Invocation.java:113)

at com.jfinal.ext.proxy.CglibCallback.intercept(CglibCallback.java:63)

at com.service.impl.UserServiceImpl$$EnhancerByCGLIB$$e3397f7a.getUserName(<generated>)

at com.user.LoginController.login(LoginController.java:47)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.jfinal.aop.Invocation.invoke(Invocation.java:97)

at com.glvan.ens.web.interceptor.AllowOriginInteceptor.intercept(AllowOriginInteceptor.java:23)

at com.jfinal.aop.Invocation.invoke(Invocation.java:91)

at com.jfinal.core.ActionHandler.handle(ActionHandler.java:88)

at com.glvan.ens.web.handle.HtmlHandle.handle(HtmlHandle.java:21)

at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:90)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:244)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:550)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:380)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:243)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:166)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:288)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NoClassDefFoundError: org/nustaq/serialization/FSTObjectOutput

at com.jfinal.plugin.redis.serializer.FstSerializer.valueToBytes(FstSerializer.java:54)

at com.jfinal.plugin.redis.Cache.valueToBytes(Cache.java:1290)

at com.jfinal.plugin.redis.Cache.set(Cache.java:67)

at com.glvan.ens.common.TokenManager.generateTokenInfo(TokenManager.java:73)


评论区

JFinal

2020-12-15 10:49

redis 依赖 fst 没有加上,注意检查一下

joneJson

2020-12-15 11:17

我之前加过一个2.43版本的,又继续报另外一个错,网上搜了说加hadoop-client这个包然后还是不行,然后我就用undertow部署,部署到Ubuntu后执行jfinal.sh文件就报语法不对,mainclass也改了

joneJson

2020-12-15 11:17

JFinal

2020-12-15 11:53

<!-- redis 客户端 -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.7.2</version>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.29</version>
</dependency>

热门反馈

扫码入社