Return-Path: Delivered-To: apmail-click-dev-archive@www.apache.org Received: (qmail 12608 invoked from network); 13 Mar 2010 04:58:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Mar 2010 04:58:21 -0000 Received: (qmail 7398 invoked by uid 500); 13 Mar 2010 04:57:42 -0000 Delivered-To: apmail-click-dev-archive@click.apache.org Received: (qmail 7376 invoked by uid 500); 13 Mar 2010 04:57:41 -0000 Mailing-List: contact dev-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@click.apache.org Delivered-To: mailing list dev@click.apache.org Received: (qmail 7369 invoked by uid 99); 13 Mar 2010 04:57:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 04:57:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sabob1@gmail.com designates 209.85.222.178 as permitted sender) Received: from [209.85.222.178] (HELO mail-pz0-f178.google.com) (209.85.222.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Mar 2010 04:57:32 +0000 Received: by pzk8 with SMTP id 8so1857111pzk.29 for ; Fri, 12 Mar 2010 20:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=Ou/bm5Wi94I6+LfRXdPaa52PQjZponcUJUqTi1gnMXA=; b=r1t6joHc88qdRQcP1zZGSpUd7W96TXgHLn4VoNGE/kdfqewxkoX0RH+T2VNs73ULy4 LTDaTOVCHf2zReetRDMEaIiaUAidWQ7thCkQ0NyomE8gpFspLZlKCpT6lmKgPx7EKh+p E271OS2TpaAUD6PKvpyRrWciJ87FLAkpX6t/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=n3RYOlY76tjYwL9QfwTHcyaOc0BAEOsz/4/E/SLZc1DkZmIfsfxTBsHxn7qZx3I/jA 9fBMdXZLI1xLxkONTTq1mnhnV1NPJpSCoWyMULs7n+xPcyuiTLq0DkyDPM1JLb1dG1ES zxJts2HNI49RQN/wYgynGvKs1ADDxRmHI+UcA= Received: by 10.141.90.14 with SMTP id s14mr3799816rvl.191.1268456231057; Fri, 12 Mar 2010 20:57:11 -0800 (PST) Received: from [10.1.1.3] (124-168-169-235.dyn.iinet.net.au [124.168.169.235]) by mx.google.com with ESMTPS id 21sm2187377pzk.0.2010.03.12.20.57.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 20:57:09 -0800 (PST) Message-ID: <4B9B1B22.4000901@gmail.com> Date: Sat, 13 Mar 2010 15:57:06 +1100 From: Bob Schellink User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: dev@click.apache.org Subject: getOutputStream() has already been called for this response Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, In our applications we often render PDF's to the response's outputStream. Click templates of the other hand uses the response's writer. If an exception is thrown after response.getOutputStream is called, Click will try and render the ErrorPage using the response.getWriter which leads to the exception: getOutputStream() has already been called for this response Is there an easy way to determine whether its safe to invoke getWriter? kind regards bob