File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes java.lang.IllegalStateException: Cannot create a session after the response has been committed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.IllegalStateException: Cannot create a session after the response has been committed" Watch "java.lang.IllegalStateException: Cannot create a session after the response has been committed" New topic
Author

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

Marcel Jacome
Greenhorn

Joined: Feb 06, 2009
Posts: 26
Hi guys, i have come across this very confusing problem and i do not know what to do about it. I have a link that makes this call: Javascript:abrirVentanaDepuracion();



which in turn calls an struts action named conectarAplicacionDepuracion which looks like this



the latter accesses a jsf page protected with jaas , so i have this authentication servlet in the jsf web project



java.lang.IllegalStateException: Cannot create a session after the response has been committed happens when the app uses this servlet. Is there any way to prevent this error and access the jsf page without this error happening? . What changes do i have to do in my code ?? Is it a problem that i am using https ?

Thanks in advance


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.IllegalStateException: Cannot create a session after the response has been committed
 
Similar Threads
detect the session attributes after the session is TimeOut?
Problems on deleting a user from my DB
Configuration of filter problem
WS4.0.1 / Servlet 2.2 / listener tags
Spring : how to redirect to login page on session timeout