Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Marcel Jacome
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic