Issue Details (XML | Word | Printable)

Key: SM-15
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Matt Raible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts Menu

VelocityMenuDisplayer throws Exception on logout

Created: 08/May/06 05:45 PM   Updated: 10/May/06 01:09 AM   Resolved: 10/May/06 01:09 AM
Component/s: Displayers
Affects Version/s: 2.3
Fix Version/s: 2.4


 Description  « Hide
Moved from http://sourceforge.net/tracker/index.php?func=detail&aid=1356360&group_id=48726&atid=453974:

I don't use session in jsp.
After logout procedure I show limited subset from the menu.

I get java.lang.IllegalStateException: Cannot create a
session after the response has been committed

See exception full trace in attached File

Happens on Tomcat 5.5.7 / Fedora 2.6.10-1.766_FC3 /
Java 1.5.0_01-b08

All works fine on Windows XP
Apache Tomcat/5.5.4 Java 1.5.0_04-b05
Have no idea why :)

This is the code I belive :
context.put("session", request.getSession());
should be
context.put("session", request.getSession(false));


Thanks!

Matt Raible made changes - 10/May/06 01:09 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]