Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 53817 invoked from network); 9 Aug 2007 04:06:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Aug 2007 04:06:08 -0000 Received: (qmail 35871 invoked by uid 500); 9 Aug 2007 04:05:57 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 35840 invoked by uid 500); 9 Aug 2007 04:05:57 -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 35828 invoked by uid 99); 9 Aug 2007 04:05:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 21:05:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [202.2.57.126] (HELO anz.com) (202.2.57.126) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Aug 2007 04:05:48 +0000 Received: from EXGAU227TRS17.oceania.corp.anz.com by SPMAU182FRM03) id ; Thu, 09 Aug 2007 14:05:17 +1000 Received: from exgau182frm29.oceania.corp.anz.com ([204.5.6.99]) by EXGAU227TRS17.oceania.corp.anz.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 9 Aug 2007 14:04:32 +1000 Received: from exgau075dss01.oceania.corp.anz.com ([204.5.6.113]) by exgau182frm29.oceania.corp.anz.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 9 Aug 2007 14:04:32 +1000 Received: from exuau075dss80.oceania.corp.anz.com ([204.5.6.134]) by exgau075dss01.oceania.corp.anz.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 9 Aug 2007 14:04:32 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: WARNings from OgnlUtil during normal use of redirect-action result Date: Thu, 9 Aug 2007 14:04:32 +1000 Message-ID: <8BBA005391CF684C8F480EC2772F34A515B888CD@exuau075dss80.oceania.corp.anz.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WARNings from OgnlUtil during normal use of redirect-action result Thread-Index: AcfaOmRRVZOlUUrtRbWAGYSzmoMPVA== From: "Cameron, David" To: "Struts Users Mailing List" X-OriginalArrivalTime: 09 Aug 2007 04:04:32.0143 (UTC) FILETIME=[63D859F0:01C7DA3A] X-Virus-Checked: Checked by ClamAV on apache.org Hi I believe I'm using the redirect-action result type in the recommended way, but I'm seeing warnings from OgnlUtil in my log4j logs. Is there a way to avoid the warnings, short of adjusting log4j.xml? The stack traces are very deep, so they spam the logs. But I don't really want to exclude all warnings from OgnlUtil from my logs, because I want the application to be as easy to maintain as possible. The current exception is correct: there is no property 'pageName' on 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. I want the 'pageName' parameter passed as a parameter to the next action. The struts documentation at http://struts.apache.org/2.x/docs/redirect-action-result.html suggests that my struts config file is following the correct usage to achieve this effect. Here's a snippet from my struts.xml: =20 =20 viewPage.action =20 ${page.nextPage} =20 And an excerpt from the resulting stack trace: [2007-08-09 12:41:40,246] WARN [SocketListener0-0] com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while setting property 'pageName' on type 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. ognl.NoSuchPropertyException: org.apache.struts2.dispatcher.ServletActionRedirectResult.pageName =09at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132) =09at com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(O gnlValueStack.java:68) =09at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656) =09at ognl.ASTProperty.setValueBody(ASTProperty.java:101) =09at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) =09at ognl.SimpleNode.setValue(SimpleNode.java:246) =09at ognl.Ognl.setValue(Ognl.java:476) =09at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186) =09at com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java: 360) =09at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76) =09at com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49) =09at org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFact ory.java:95) =09at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActi onInvocation.java:195) =09at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultAct ionInvocation.java:342) =09at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvo cation.java:253) =09...... =09at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) =09at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245 ) =09at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) =09at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Cheers! Dave "This e-mail and any attachments to it (the "Communication") is, unless o= therwise stated, confidential, may contain copyright material and is for= =20the use only of the intended recipient. If you receive the Communicati= on in error, please notify the sender immediately by return e-mail, delet= e the Communication and the return e-mail, and do not read, copy, retrans= mit or otherwise deal with it. Any views expressed in the Communication a= re those of the individual sender only, unless expressly stated to be tho= se of Australia and New Zealand Banking Group Limited ABN 11 005 357 522,= =20or any of its related entities including ANZ National Bank Limited (to= gether "ANZ"). ANZ does not accept liability in connection with the integ= rity of or errors in the Communication, computer virus, data corruption, = interference or delay arising from or in respect of the Communication." --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org