Got it fixed,
Moved the call to getOutputStream() to a place right before it's
actually needed so that most initialization try/catch(ing) would be done
before that and if an error was caught the PageRedirectException is
processed without any issues since getOutputStream() is not called yet.
I'm working on getting a service working which provides a page with a
link to an audio file. When the link is clicked the service() method
connects to the audio url on another server and basically pipes the data
stream to the requesting page. The service is also supposed to display
an error on