be cast to java.util.HashMap报错

部署到服务器上,出现这个错误,jdk8 tomcat8

2019-08-06 18:13:29

[ERROR]-[Thread: http-nio-8080-exec-8]-[com.jfinal.core.ActionHandler.handle()]: cn.jbolt._admin.updatemgr.UpdateLibsAdminController.index() : /admin/updatelibs?_pjax=%23jbolt-container

java.lang.ClassCastException: org.apache.catalina.util.ParameterMap cannot be cast to java.util.HashMap

        at cn.jbolt.common.safe.HttpServletRequestWrapper.getParameterMap(HttpServletRequestWrapper.java:39)

        at com.jfinal.core.Controller.keepPara(Controller.java:880)

        at cn.jbolt._admin.updatemgr.UpdateLibsAdminController.index(UpdateLibsAdminController.java:23)

        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 cn.jbolt._admin.interceptor.AdminAuthInterceptor.intercept(AdminAuthInterceptor.java:61)

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

        at cn.jbolt.index.AjaxPortalInterceptor.intercept(AjaxPortalInterceptor.java:16)

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

        at cn.jbolt.index.PjaxInterceptor.intercept(PjaxInterceptor.java:16)

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

        at com.jfinal.ext.interceptor.SessionInViewInterceptor.intercept(SessionInViewInterceptor.java:44)

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

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

        at cn.jbolt.common.safe.XssHandler.handle(XssHandler.java:18)

        at cn.jbolt.base.BaseHandler.handle(BaseHandler.java:50)

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

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

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

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

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

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

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

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

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

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

        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1441)

        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

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

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

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

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

Sql: select count(*) from update_libs where 1=1


Sql: select *  from update_libs where 1=1

 limit 0, 10


2019-08-06 18:13:29

[ERROR]-[Thread: http-nio-8080-exec-1]-[com.jfinal.core.ActionHandler.handle()]: cn.jbolt._admin.updatemgr.UpdateLibsAdminController.index() : /admin/updatelibs

java.lang.ClassCastException: org.apache.catalina.util.ParameterMap cannot be cast to java.util.HashMap

        at cn.jbolt.common.safe.HttpServletRequestWrapper.getParameterMap(HttpServletRequestWrapper.java:39)

        at com.jfinal.core.Controller.keepPara(Controller.java:880)

        at cn.jbolt._admin.updatemgr.UpdateLibsAdminController.index(UpdateLibsAdminController.java:23)

        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 cn.jbolt._admin.interceptor.AdminAuthInterceptor.intercept(AdminAuthInterceptor.java:61)

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

        at cn.jbolt.index.AjaxPortalInterceptor.intercept(AjaxPortalInterceptor.java:16)

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

        at cn.jbolt.index.PjaxInterceptor.intercept(PjaxInterceptor.java:16)

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

        at com.jfinal.ext.interceptor.SessionInViewInterceptor.intercept(SessionInViewInterceptor.java:44)

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

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

        at cn.jbolt.common.safe.XssHandler.handle(XssHandler.java:18)

        at cn.jbolt.base.BaseHandler.handle(BaseHandler.java:50)

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

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

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

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

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

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

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

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

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

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

        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1441)

        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

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

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

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

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


评论区

请叫我龙少

2019-11-27 20:19

同问,这个问题解决了吗

热门反馈

扫码入社