Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 28261 invoked from network); 2 Jun 2008 17:51:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 17:51:51 -0000 Received: (qmail 42235 invoked by uid 500); 2 Jun 2008 17:51:44 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 42205 invoked by uid 500); 2 Jun 2008 17:51:44 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 42194 invoked by uid 99); 2 Jun 2008 17:51:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 10:51:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of musachy@gmail.com designates 209.85.198.233 as permitted sender) Received: from [209.85.198.233] (HELO rv-out-0506.google.com) (209.85.198.233) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 17:50:55 +0000 Received: by rv-out-0506.google.com with SMTP id b25so896401rvf.47 for ; Mon, 02 Jun 2008 10:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ti1PuEYPDY1xBMFM4XHsOF6DsamwLdWyuYqLKoZGty0=; b=XWetUDeEELskHPcO/9Fu156BPjOgJzHKUmXMjLPIx5SyCfJoX7xMgBnAjeQrbf7UZquGs0O4UXJU+1z8Rt3wr6PC1vH2OBEuwaBkAsXRTEZl7ulNNtbf8GCz4/pNdWYacHfMR8Ckv20jWj5JD6vXg1zqMM9VdvEGc6NlY3PojjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tWsKv733EbZQBk31My88AyNJlYaFtg5eji8o1MuX60EJB49d7eesKwWri0LS470xq1iq7st3gFDXSMpKHKArwVAkGzkoU0978x5NDyiEbTJ88xAsJOD69Ak9jA1w14te2XOAwNuJojI6OiqWtn5axZq1Bzk+fwFyonHL5iDvceA= Received: by 10.141.43.19 with SMTP id v19mr5146569rvj.154.1212429072157; Mon, 02 Jun 2008 10:51:12 -0700 (PDT) Received: by 10.140.186.3 with HTTP; Mon, 2 Jun 2008 10:51:12 -0700 (PDT) Message-ID: Date: Mon, 2 Jun 2008 13:51:12 -0400 From: "Musachy Barroso" To: "Struts Users Mailing List" Subject: Re: Action-Redirect Parameter Problem In-Reply-To: <4844294D.4080102@cyberspaceroad.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <763ca2a0805300624j2a25b395ge03bf163fa05099e@mail.gmail.com> <4842EFE2.9040204@cyberspaceroad.com> <4843EABD.8080305@cyberspaceroad.com> <4844294D.4080102@cyberspaceroad.com> X-Virus-Checked: Checked by ClamAV on apache.org If I don't remember wrong, the problem is that the value of params are set as properties in the Result object. In the case of the action-redirect result, these params are used as params to the target action. The params are indeed passed, but when struts tries to set them as properties in the result, it fails (hence the logged exception). musachy On Mon, Jun 2, 2008 at 1:09 PM, Adam Hardy wrote: > Only solution is a code change where it is logged. > > As I said earlier in the thread, I think that closed bug report should be > re-opened or cloned and set to Enhancement. > > Mark Lester on 02/06/08 17:42, wrote: >> >> Yeah it sets the parameter for me too it just throws the exception >> which I a bit of an annoyance and wondering how to make it not throw >> that exception >> >> -----Original Message----- >> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] Sent: Monday, >> June 02, 2008 8:43 AM >> To: Struts Users Mailing List >> Subject: Re: Action-Redirect Parameter Problem >> >> I had a look at the code and I can see why it throws an exception at >> that point, but despite that, my experience is that it works - it does set >> the >> parameter on my Result. >> >> Mark Lester on 02/06/08 13:08, wrote: >>> >>> Yeah I am still having problems with it. >>> >>> -----Original Message----- >>> From: Adam Hardy [mailto:ahardy.struts@cyberspaceroad.com] Sent: Sunday, >>> June 01, 2008 2:52 PM >>> To: Struts Users Mailing List >>> Subject: Re: Action-Redirect Parameter Problem >>> >>> That issue is closed, although there is a comment left after it was >>> closed suggesting that the issue is still a problem and that the bug >>> should >>> be re-opened. >>> >>> I see this 'warning' from OGNL wherever I use Action-Redirect >> >> results >>> >>> with the latest struts2 version, and it's true that the stacktrace in the >>> webserver log is distracting, but I don't find any problems with it like >>> the last >>> comment suggests. >>> >>> It's not clear why the poster of that comment didn't re-open the bug >>> or create a new one if there is a real problem there. >>> >>> Do you find problems with it still? >>> >>> It seems to me that the issue should not have been changed from >> >> status >>> >>> open to resolved, rather it should have been changed from priority major >>> to >>> enhancement. >>> >>> Also the poster of the last comment should have left more details >> >> with >>> >>> perhaps a patch or unit-test displaying his/her bug. >>> >>> >>> Adam >>> >>> >>> Mark Lester on 30/05/08 14:31, wrote: >>>> >>>> Thanks for the quick response. I don't think that is the problem >>>> because that directory is already clear plus I have only used the >>>> current version of struts2 >>>> -----Original Message----- >>>> From: Owen Berry [mailto:owen.berry@gmail.com] Sent: Friday, May 30, >>>> 2008 9:24 AM >>>> To: Struts Users Mailing List >>>> Subject: Re: Action-Redirect Parameter Problem >>>> >>>> If you're using Maven, you should try clearing out your local Maven >>>> repository (rm -rf ~/.m2/repository) and try again ... I've had a >>> >>> few >>>> >>>> cases where I seemed to be using old versions of jars until I did >>>> this. >>>> >>>> On Fri, May 30, 2008 at 9:18 AM, Mark Lester >> >> >>>> >>>> wrote: >>>>> >>>>> I followed the >>>>> http://struts.apache.org/2.x/docs/redirect-action-result.html To >>>> >>>> pass >>>>> >>>>> parameters to an action >>>>> >>>>> And it generates the exception >>>>> >>>>> Caught OgnlException while setting property 'navigation' on type >>>>> 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. >>>>> >>>>> >>>>> >>>>> I looked the Exception up and I found a bug report for struts 2 at >>>>> >>>>> http://issues.apache.org/struts/browse/WW-1714 >>>>> >>>>> >>>>> >>>>> The problem is that it says the issue is resolved as of version >>> >>> 2.08 >>>>> >>>>> but I am using 2.11 and I am still getting the warning. >>>>> >>>>> Information regarding this issue would be very helpful. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org