开发者社区> 问答> 正文

jfinal1.9升级到2.0拦截器报错: 怎么解决?报错

@JFinal 你好,想跟你请教个问题:

拦截器中的参数已经换,

<p>
	<span style="color:#333333;font-family:'Microsoft YaHei', SimSun, SimHei;font-size:14px;line-height:24.1110782623291px;background-color:#FFFFFF;">[ERROR]-[Thread: http-80-1]-[com.jfinal.core.ActionHandler.handle()]: /admin</span><br>

java.lang.AbstractMethodError: net.tccn.interceptor.AdminInterceptor.intercept(Lcom/jfinal/core/ActionInvocation;)V
at com.jfinal.core.ActionInvocation.invoke(ActionInvocation.java:51)
at com.jfinal.core.ActionHandler.handle(ActionHandler.java:73)
at net.tccn.handler.UrlHandler.handle(UrlHandler.java:20)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.bufferAndPostProcess(ContentBufferingFilter.java:169)
at org.sitemesh.webapp.contentfilter.ContentBufferingFilter.doFilter(ContentBufferingFilter.java:126)
at org.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:120)
at org.sitemesh.config.ConfigurableSiteMeshFilter.doFilter(ConfigurableSiteMeshFilter.java:163)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1760)
at java.lang.Thread.run(Thread.java:744)

展开
收起
爱吃鱼的程序员 2020-06-10 10:42:30 452 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    错误不全,么法诊断啊!

    <spanstyle="color:#333333;font-family:'MicrosoftYaHei',SimSun,SimHei;font-size:14px;line-height:24.1111px;background-color:#FFFFFF;">net.tccn.interceptor.AdminInterceptor这个是在jar包里面么?

    回复<aclass='referer'target='_blank'>@JFinal:恩恩,非常强大,支持回复<aclass='referer'target='_blank'>@天赐绝尘:1.9升到2.0是分分钟的事,有人跨9个jfinal版本升级,仍然无压力问题已经解决,虽然加入了2.0,并对jar包add了;但是1.9的jar未删除,只是做了remove操作,虽然进行了多次clear,仍然走的是1.9的jar,完全删除1.9后解决问题

    2020-06-10 10:42:48
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载