Thanks Satya,

It works , below is the change that we need to do in jboss-log4j.xml file,

<category name="com.opensymphony">
            <priority value="ERROR"/>
</category>
In general , it will be

<logger name="com.opensymphony"> 
        <level value="ERROR"/> 
</logger> 

 In order to avoid the famous OgnlUtil.setProperty warning when doing a 
 redirect-action with parameter. 

It seems there is pacth for this in struts 2.1.X

https://issues.apache.org/struts/browse/WW-1714.

Thanks again for your quick response.

Siddiq.


satyanarayana katta wrote:
> 
> supress warn in the logger package you are using for this speicific
> package.
>  It should work.
> 
> On Fri, May 8, 2009 at 7:56 AM, Siddiq Syed <siddiq...@yahoo.com> wrote:
> 
>>
>> Hi all,
>>
>> I want to avoid the waring displayed in the consloe when passing the
>> attributes in the redirect action.
>>
>> Below is the struts.xml where the action is configured and so is the
>> parameters ,stack trace of the waring and ongl exception --
>>
>> <action name="processRevocation"
>>
>> class="us.ga.state.pap.cons.clemency.presentation.action.activity.UpdateCaseAction"
>> method="processRevocation">
>>                <result name="success" type="redirect-action">
>>                    setupForRevocation
>>                                ${caseNumber}
>>                                ${caseEditReason}
>>                                ${showButton}
>>                                ${taskId}
>>                </result>
>>                <result name="input" type="tiles">editRevocation</result>
>>            </action>
>>
>>
>>  WARN - com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty -
>> GC0zQAqYxnujPwGB54TSGA** | Caught OgnlException while setting property
>> 'showButton' on type
>> 'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
>> ognl.NoSuchPropertyException:
>> org.apache.struts2.dispatcher.ServletActionRedirectResult.showButton
>>        at
>> ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132)
>>        at
>>
>> com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.setProperty(OgnlValueStack.java:81)
>>        at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656).
>>
>>
>> I just need to avoid the warning getting display on the console. Any help
>> is
>> highly appreicated.
>>
>> Thanks
>> Siddiq.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/NoSuchPropertyException-Warining.-tp23447658p23447658.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/NoSuchPropertyException-Warining.-tp23447658p23448364.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to