In Java, it's illegal to use getOutputStream and getWriter on the same request. When development mode is enabled, DownloadFile invokes getOutputStream and we later call getWriter when we're appending development information (only to text/html responses, but still). This behaviour results with an exception.