This question already has an answer here:
- Adding <h:form> causes java.lang.IllegalStateException: Cannot create a session after the response has been committed 5 answers
I'm having this weird problem with one of the pages of my application. It's throwing the error I mention on the title:
PWC3999: Cannot create a session after the response has been committed
I've checked other posts regarding this subject, but I don't see anything that applies to this situation, because no new Servlet/Filter was added to the application and the error just started after some minor changes on the javascript of the xhtml file. If I delete any line the error stops showing. At first I believed that it could be some problem with the buffer size and increased the values (10x bigger, just to make sure), but that didn't solved the problem.
And, to be honest, I don't think this is related to the size of the file, because it used to be bigger and it worked without any problems.
I also checked and couldn't find any forward/redirect being called for this case.
Can someone help me with this?
Kind regards,
Carlos Ferreira
EDIT: This error occurs with GF v3.1, but it doesn't occur on GF v3.0.1, can it be a bug with the facelets implementation?