当前位置: 代码迷 >> Java Web开发 >> Mondrian+Jpivot+struts2调整。报错:IllegalArgumentException:RequestContextFactory
  详细解决方案

Mondrian+Jpivot+struts2调整。报错:IllegalArgumentException:RequestContextFactory

热度:646   发布时间:2016-04-14 21:20:41.0
Mondrian+Jpivot+struts2整合。报错:IllegalArgumentException:RequestContextFactory
严重: Servlet.service() for servlet [jsp] in context with path [/framework] threw exception
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute com.tonbeller.wcf.controller.RequestContextFactory
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1441)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1402)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:154)
at com.tonbeller.wcf.controller.RequestContextFactoryFinder.findFactory(RequestContextFactoryFinder.java:53)
at com.tonbeller.wcf.controller.RequestContextFactoryFinder.createContext(RequestContextFactoryFinder.java:80)
at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:248)
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:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
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:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

------解决思路----------------------
setAttribute: Non-serializable attribute com.tonbeller.wcf.controller.RequestContextFactory

异常信息很明显嘛,RequestContextFactory不可序列化,看看你的RequestContextFactory是否实现了Serializable接口
------解决思路----------------------
和Mondrian+Jpivot没关系!!
  相关解决方案