Open jesse-gallagher opened 2 years ago
Thanks for opening the ticket. I remember we had this stacktrace before some time ago.I'll check the old issues later.
Such an exception basically means, that some component did commit the response BEFORE the ViewableWriter was invoked. Committing a response is typically caused by calling HttpServletResponse.getWriter()
or HttpServletResponse.getOutputStream()
.
Unfortunately, this is really hard to debug. One way would be to use a Servlet filter to replace the HttpServletResponse
which a custom implementation which logs calls to getWriter()
or getOutputStream()
. Or maybe increasing the log level of Liberty could help!?
After applying the changes in https://github.com/eclipse-ee4j/krazo/pull/288 and using a Liberty 21.0.0.12 JEE 9 beta, there is one test failure:
org.eclipse.krazo.test.CsrfIT.testFormHeaderOk
.Specifically, the failure is that the header it's looking for (
X-CSRF-TOKEN
) is not present in the response. Judging from the output, it looks like possibly it's another case of "Cannot set header", though this time actually causing trouble. Unfortunately, the stack trace for that isn't any more specific than the previous similar issues: