Are you sure that the exception is a result of the line with the release call in it? If you are relying on
JSP line numbers reported in a stack trace, that's notorious for being
almost right, but not quite.
Perhaps you could show us a few lines of code before and after where you think the problem is. Also the full stack trace never hurts.
And, are you calling getOutputStream() anywhere in your JSP code tree?
hth,
bear