This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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


 
jQuery in Action, 2nd edition
 
subject: java.lang.IllegalStateException: Cannot create a session after the response has been committed