Can anyone tell me either, how I might fix the following issues or what is going on please? Details as follows.
I have a servlet filter that intercepts certain image requests and responds with a resized version of the image. This servlet filter is too complex to post, but I can tell you it works fine with Tomcat and WebLogic.
I just started working with WebSphere 6.1 for the first time and noticed two problems:
1. In a page containing 14 images typically, 2 or 3 would not load. This behaviour is not 100% repeatable in that if I reload the page, it will usually be a different 2 or 3 images that do not appear.
2. Regardless of whether or not the images load, I seem to get a lot of these warning messages:
SRTServletRes W WARNING: Cannot set header. Response already committed.
I came to the conclusion that my code was not responsible for attempting to set the header that generated the message because:
-I ensured my code was not setting the header at all
-A print statement I inserted at the end of my filter appeared in the logs before the warning message
-If I removed the command chain.doFilter(request, response) from my filter then the warning message stopped and all images would load correctly.
So, I can work around my problems by permanently removing chain.doFilter(request, response) from my code. However if possible, I would like a solution that enables me to chain the filter if necessary.
Thank you.
Regards Brett S
Check the logs, and if you don't see anything there, make very sure that
none of your code silently swallows Exceptions.
Ken
Did you find any solution for this issue?
I'm having the same problem. If anyone can give any clue I will appreciate it.
Thanks in advance,
Peter
Regards,
Brian
Thanks for the answer!
Kind regards,
Peter