Don't close the writer! Your portlet is not the only one writing to that stream. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155716#4155716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155716