From commons-user-return-13461-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Tue Aug 30 16:20:06 2005 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 60309 invoked from network); 30 Aug 2005 16:20:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Aug 2005 16:20:06 -0000 Received: (qmail 70137 invoked by uid 500); 30 Aug 2005 16:20:00 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 70090 invoked by uid 500); 30 Aug 2005 16:20:00 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 70077 invoked by uid 99); 30 Aug 2005 16:19:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 09:19:59 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.45.41.90] (HELO SAINET03.dtcc.com) (207.45.41.90) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2005 09:20:14 -0700 In-Reply-To: <43148408.7020001@planetzorbo.co.uk> To: "Jakarta Commons Users List" Cc: commons-user@jakarta.apache.org Subject: Re: [Validator] IllegalStateException: getReader() and getInputStream() called MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.2 June 01, 2004 Message-ID: From: Aaron Sheffey Date: Tue, 30 Aug 2005 12:19:52 -0400 X-MIMETrack: Serialize by Router on NAINET01/DTCC at 08/30/2005 12:23:58 PM, Serialize complete at 08/30/2005 12:23:58 PM Content-Type: multipart/alternative; boundary="=_alternative 0059B6238525706D_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 0059B6238525706D_= Content-Type: text/plain; charset="US-ASCII" If the controller is trying to use the referer from the HTTP headers to determine where to go back to, that could be the source of your problem. David Duff 08/30/2005 12:06 PM Please respond to "Jakarta Commons Users List" To commons-user@jakarta.apache.org cc Subject [Validator] IllegalStateException: getReader() and getInputStream() called Hi, I have a multipart form, which I would like to validate using validator. My problem is that the application will fall over with the above exception when I try to return the application back to the page if a form validation error has occurred. The error occurs when the controller is trying to forward to the view "failed", which returns the application back to the previous controller. It should then allow the user to view the page with the error messages on it. I have read various posts on the net about setting character encoding to fix the problem also about patching application servers and a bug in commons-file upload but nothing definitive or concrete. Can anyone help me? Has anyone had this problem before? Thanks in advance. David --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --=_alternative 0059B6238525706D_=--