struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mitch Claborn <mi...@claborn.net>
Subject session on every request?
Date Thu, 16 Jul 2009 15:58:17 GMT
It appears that every request through struts is getting a copy of the
Session object, even for those that don't need it, like static resources
(.js, .css, etc).  Can I disable this behavior somehow, only getting the
session when I need it?  Below is a sample stack trace.

        at
org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:791)
        at
org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:614)
        at
org.apache.catalina.connector.Request.doGetSession(Request.java:2295)
        at
org.apache.catalina.connector.Request.getSession(Request.java:2074)
        at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
        at
org.apache.struts2.dispatcher.SessionMap.<init>(SessionMap.java:62)
        at
org.apache.struts2.dispatcher.Dispatcher.createContextMap(Dispatcher.java:510)
        at
org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:75)
        at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:65)
        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:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
        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.Http11Processor.process(Http11Processor.java:849)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:636)




Mitch


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message