struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harveer (JIRA)" <>
Subject [jira] [Commented] (WW-4310) All form submission failed due to ognl.OgnlException: target is null for setProperty
Date Thu, 16 Mar 2017 03:28:41 GMT


Harveer commented on WW-4310:

Hi Team,

I am also facing same kind of issue as mentioned above.

Recently we have upgraded to struts2-core-2.3.32.jar version from struts2-core-2.3.20.jar.
As part of this upgrade, we have replaced/added below dependency jars


In certain screens, request parameter values are not available in actions. 

>From JSP passing value as ,
     eSignatureVO.esignAck :"true" -  [eSignatureVO as Object and esignAck as attribute inside]

we are able to see the values in parametersInterceptors (DEBUG mode).  When execution reaches class (getGetMethod())

 public static Method getGetMethod(OgnlContext context, Class targetClass, String propertyName)
throws IntrospectionException, OgnlException    {
        // Cache is a map in two levels, so we provide two keys (see comments in ClassPropertyMethodCache
        Method method = cacheGetMethod.get(targetClass, propertyName);
        if (method != null)
            return method;
cacheGetMethod return (eSignatureVO for propertyName) as eSignatureVO=java.lang.reflect.Method
ognl.OgnlRuntime$ClassPropertyMethodCache.get(java.lang.Class,java.lang.String). So values
are not set into action variables . Please help us here.

We are able to replicate this in our lower environment. 

Note : we are not facing this across application. Only on certain screens, we are facing this

Please help us to resolve the same.

> All form submission failed due to ognl.OgnlException: target is null for setProperty
> ------------------------------------------------------------------------------------
>                 Key: WW-4310
>                 URL:
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors, Expression Language, Integration
>    Affects Versions:
>         Environment: IBM AIX
> Websphere Application server
> Websphere Portal server  
>            Reporter: chenlin
>             Fix For: Future
> 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(
>    at ognl.ASTProperty.setValueBody(
>    at ognl.SimpleNode.evaluateSetValueBody(
>    at ognl.SimpleNode.setValue(
>    at ognl.ASTChain.setValueBody(
>    at ognl.SimpleNode.evaluateSetValueBody(
>    at ognl.SimpleNode.setValue(
>    at ognl.Ognl.setValue(
>    at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(
>    at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(
>    at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(
>    at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(
>    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(
>    at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(
>    at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(

This message was sent by Atlassian JIRA

View raw message