java.lang.AbstractMethodError

   /**

     * 用户管理

     */

    public void userManage() {

        render("userManage.html");

        //renderHtml("userManage.html");

    }

进入方法后出现的问题。。。。哎,,各位大神帮我分析分析可好??????用的3.3 3.4jfinal 整合shrio插件


五月 14, 2018 9:21:19 下午 org.apache.catalina.core.StandardWrapperValve invoke

严重: Servlet.service() for servlet [default] in context with path [/web] threw exception [Filter execution threw an exception] with root cause

java.lang.AbstractMethodError

at com.jfinal.template.stat.ast.StatList.exec(StatList.java:68)

at com.jfinal.template.Template.render(Template.java:55)

at com.jfinal.render.TemplateRender.render(TemplateRender.java:60)

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

at com.jfinal.ext.handler.ContextPathHandler.handle(ContextPathHandler.java:48)

at com.jfinal.plugin.druid.DruidStatViewHandler.handle(DruidStatViewHandler.java:81)

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

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

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

at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)

at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)

at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)

at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)

at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)

at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)

at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

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

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

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

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

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)

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

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

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

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

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

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2476)

at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2465)

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

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

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

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


评论区

JFinal

2018-05-14 23:13

可能是多个 jfinal 版本造成冲突,删掉多余的 jfinal 版本,只留一个即可

JackZeng

2018-05-15 10:00

额,是 #principal()出的问题

JackZeng

2018-05-15 10:01

@JFinal jfinal-shiro 没配置出的问题么????

JackZeng

2018-05-15 10:03

/**
* 更新用户授权信息缓存.
*
* @param principal 用户标志
*/
public void clearCachedAuthorizationInfo(String principal) {
SimplePrincipalCollection principals = new SimplePrincipalCollection( principal, getName());
clearCachedAuthorizationInfo(principals);
}
可是这样没问题啊,,,,,看起来

JackZeng

2018-05-15 10:06

JackZeng

2018-05-15 10:16

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

io.github.wx
LMS
1.1

lms-common
lms-web
lms-service
lms-dao
lms-core
lms-controller

pom

lms
http://maven.apache.org


UTF-8
1.8
1.8
1.1
3.3
1.8
26Dec2008
1.2.4
1.5.0
3.0.1
3.8.1
8.1.8
1.2.17
1.7.21
2.4.2
2.9.0
1.0.9
5.1.44
1.2
1.2.30
1.0.0
2.4.2











com.jfinal
jfinal
${jfinal.version}



com.alibaba
fastjson
${fastjson.version}




com.github.jieblog
jfinal-shiro
${jfinal-shiro}



commons-logging
commons-logging
1.1.1



commons-pool
commons-pool
1.6


org.apache.commons
commons-pool2
${commons-pool2.version}


redis.clients
jedis
${redis.version}




de.ruedigermoeller
fst
2.43






com.alibaba
druid
${druid.version}


com.alibaba
jconsole


com.alibaba
tools





com.jfinal
cos
${cos.version}



com.jfinal.weixin
jfinal-weixin
${jfinl-weixin.version}



com.xiaoleilu
hutool-crypto
3.0.6



com.xiaoleilu
hutool-json
3.1.1



com.xiaoleilu
hutool-http
3.1.1



net.dreamlu
JFinal-assets
1.2.0




mysql
mysql-connector-java
${mysql.version}




org.apache.shiro
shiro-core
${shiro.version}


org.apache.shiro
shiro-web
${shiro.version}


org.apache.shiro
shiro-ehcache
${shiro-ehcache.version}



net.sf.ehcache
ehcache-core
${ehcache.version}



cn.dreampie
jfinal-web
${jfinal-web.version}



cn.dreampie
jfinal-utils
${jfinal-utils.version}



commons-beanutils
commons-beanutils
${commons-beanutils.version}




@JFinal 这是我的pom

热门反馈

扫码入社