[ 
https://issues.apache.org/jira/browse/WW-4310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15937439#comment-15937439
 ] 

Lukasz Lenart edited comment on WW-4310 at 3/23/17 10:27 AM:
-------------------------------------------------------------

[~lukaszlenart]

We have another issue after upgrade to 32 version. [Sorry to posted it here]

Action Method : 

{code:java}
private List<ListOfValue> radioValueNum=new ArrayList<ListOfValue>();   
        
        public List<ListOfValue> getRadioValueNum() {
                if(!radioValueNum.isEmpty()){
                        radioValueNum.clear();
                        radioValueNum.add(new ListOfValue("1", 
getText("generic.yes")));
                        radioValueNum.add(new ListOfValue("2", 
getText("generic.no")));
                }               
                else{
                        radioValueNum.add(new ListOfValue("1", 
getText("generic.yes")));
                        radioValueNum.add(new ListOfValue("2", 
getText("generic.no")));
                }       
                return radioValueNum;
        }
{code}
        
JSP : 
{code:xml}
<s:radio id="radio1" name="individualVO.pren" label="radio1"
                                   list="radioValueNum" listKey="id" 
listValue="name"
                                    onclick="javascript:handleRadioChange();" />
{code}
                                                                        
Generated HTML before strus upgrade 32 version (struts2-core-2.3.20.jar): 

{code:xml}
         <input name="individualVO.pregnancyQuestion" value="1" id="radio11" 
onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio11" 
onclick="javascript:handleRadioChange();">Yes</label>
         <input name="individualVO.pregnancyQuestion" checked="checked" 
value="2" id="radio12" onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio12" 
onclick="javascript:handleRadioChange();">No</label>
{code}

Generated HTML after strus upgrade 32 version (struts2-core-2.3.32.jar): 

{code:xml}
         <input name="individualVO.pregnancyQuestion" value="1" id="radio10" 
onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio10" 
onclick="javascript:handleRadioChange();">Yes</label>
         <input name="individualVO.pregnancyQuestion" checked="checked" 
value="2" id="radio11" onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio11" 
onclick="javascript:handleRadioChange();">No</label>
{code}

We just want to cross check that we are missing any jars as part of upgrade. or 
it caused due to ognl jar fix.

Please guide us.

Thanks


was (Author: habajwa):
[~lukaszlenart]

We have another issue after upgrade to 32 version. [Sorry to posted it here]

Action Method : 

{code:java}
private List<ListOfValue> radioValueNum=new ArrayList<ListOfValue>();   
        
        public List<ListOfValue> getRadioValueNum() {
                if(!radioValueNum.isEmpty()){
                        radioValueNum.clear();
                        radioValueNum.add(new ListOfValue("1", 
getText("generic.yes")));
                        radioValueNum.add(new ListOfValue("2", 
getText("generic.no")));
                }               
                else{
                        radioValueNum.add(new ListOfValue("1", 
getText("generic.yes")));
                        radioValueNum.add(new ListOfValue("2", 
getText("generic.no")));
                }       
                return radioValueNum;
        }
{code}
        
JSP : 
{code:xml}
<s:radio id="radio1" name="individualVO.pren" label="radio1"
                                   list="radioValueNum" listKey="id" 
listValue="name"
                                    onclick="javascript:handleRadioChange();" />
                                                                        
Generated HTML before strus upgrade 32 version (struts2-core-2.3.20.jar): 
         <input name="individualVO.pregnancyQuestion" value="1" id="radio11" 
onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio11" 
onclick="javascript:handleRadioChange();">Yes</label>
         <input name="individualVO.pregnancyQuestion" checked="checked" 
value="2" id="radio12" onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio12" 
onclick="javascript:handleRadioChange();">No</label>


Generated HTML after strus upgrade 32 version (struts2-core-2.3.32.jar): 

         <input name="individualVO.pregnancyQuestion" value="1" id="radio10" 
onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio10" 
onclick="javascript:handleRadioChange();">Yes</label>
         <input name="individualVO.pregnancyQuestion" checked="checked" 
value="2" id="radio11" onclick="javascript:handleRadioChange();" type="radio">
         <label for="radio11" 
onclick="javascript:handleRadioChange();">No</label>
{code}

We just want to cross check that we are missing any jars as part of upgrade. or 
it caused due to ognl jar fix.

Please guide us.

Thanks

> All form submission failed due to ognl.OgnlException: target is null for 
> setProperty
> ------------------------------------------------------------------------------------
>
>                 Key: WW-4310
>                 URL: https://issues.apache.org/jira/browse/WW-4310
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Expression Language, Integration
>    Affects Versions: 2.3.15.1
>         Environment: IBM AIX 6.1.0.0
> Websphere Application server 7.0.0.21
> Websphere Portal server 7.0.0.2  
>            Reporter: chenlin
>             Fix For: Future
>
>         Attachments: Exception.png, screenshoot1.png, screenshoot2.png, 
> screenshoot3.png, screenshot-1.png, screenshot-2.png
>
>
> Hi Lukasz Lenart ,
> We are using struts-portlet framework in Websphere Portal server clustering ( 
> 1 Deploy Manager and 4 Portal servers instances) in production. 
> Currently there is one issue happen in one of 4 servers randomly.  The 
> exception is showing login form in set Property is null in one server, but at 
> that time other 3 servers are working fine. This issue can happen in any one 
> of 4 servers  in our production environment. We have also raised few PMR  to  
> IBM team for this issue. But IBM  said it is not caused by them.  We need 
> your help to check if any possible way to cause this issue in struts.  
> If possible, pls share us your avaliable timing and contact, we would like to 
> have a call with you and IBM support to identify root cause. 
>    
>  ===IBM response=============
> When I refer the past PMR ( 18484,000,834)  we shared on all the findings and 
> waiting for your Application team feedback,  as such I don't think any  
> further action pending on  IBM Support end. do check with Application team 
> and  can we ask Application team not using 
> the code what Application team using is  not an IBM  API / service code "     
>                     
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger" , good to   
> check with Application team to discuss with respective vender. 
>     
> The  above error code from strut's application code, check with Application 
> support and ask them to explore further. 
> As  I hope we all are in same page now, as  PMR 20364,000,834  & PMR 
> 18184,000,834  - findings Pointing same  struts2 loging function, even 
> application team explore why they enabled this log ? ,how this impacted the  
> Application Interface page with user login error.
> =====Error Log========
> [3/18/14 1:58:12:142 GMT+08:00] 00000062 OgnlValueStac W 
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn Error setting 
> expression 'loginForm.userId' with value '[Ljava.lang.String;@1560156'
>                                 ognl.OgnlException: target is null for 
> setProperty(null, "userId", [Ljava.lang.String;@1560156)
>    at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)
>    at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
>    at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
>    at ognl.SimpleNode.setValue(SimpleNode.java:301)
>    at ognl.ASTChain.setValueBody(ASTChain.java:227)
>    at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
>    at ognl.SimpleNode.setValue(SimpleNode.java:301)
>    at ognl.Ognl.setValue(Ognl.java:737)
>    at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:234)
>    at 
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183)
>    at 
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170)
>    at 
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
>    at 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
>    at 
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
>    at 
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to