Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8F45C200C5D for ; Fri, 24 Mar 2017 04:45:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8AF1D160B83; Fri, 24 Mar 2017 03:45:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD054160B84 for ; Fri, 24 Mar 2017 04:45:49 +0100 (CET) Received: (qmail 26208 invoked by uid 500); 24 Mar 2017 03:45:48 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 26191 invoked by uid 99); 24 Mar 2017 03:45:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2017 03:45:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 200ECC31D0 for ; Fri, 24 Mar 2017 03:45:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id FcVMH-5faAqV for ; Fri, 24 Mar 2017 03:45:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 47E9B5FC7B for ; Fri, 24 Mar 2017 03:45:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8EF72E06C7 for ; Fri, 24 Mar 2017 03:45:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id D902321DD9 for ; Fri, 24 Mar 2017 03:45:41 +0000 (UTC) Date: Fri, 24 Mar 2017 03:45:41 +0000 (UTC) From: "Harveer (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-4310) All form submission failed due to ognl.OgnlException: target is null for setProperty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 24 Mar 2017 03:45:50 -0000 [ https://issues.apache.org/jira/browse/WW-4310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939575#comment-15939575 ] Harveer edited comment on WW-4310 at 3/24/17 3:44 AM: ------------------------------------------------------ [~lukaszlenart] we have identified issues between radio button generation under RadioHandler.java under struts2-javatemplates-plugin-2.3.20 and struts2-javatemplates-plugin-2.3.32 struts2-javatemplates-plugin-2.3.20 --------------------------------------------- for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) { Object item = itt.next(); stack.push(item); Object itemKey = findValue(listKey == null ? "top" : listKey); String itemKeyStr = StringUtils.defaultString(itemKey != null ? itemKey.toString() : null); Object itemValue = findValue(listValue == null ? "top" : listValue); String itemValueStr = StringUtils.defaultString(itemValue != null ? itemValue.toString() : null); String id = (new StringBuilder()).append(params.get("id")).append(itemKeyStr).toString(); Here id is generated by appending with key value struts2-javatemplates-plugin-2.3.32 --------------------------------------------- for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) { Object item = itt.next(); stack.push(item); Object itemKey = findValue(listKey == null ? "top" : listKey); String itemKeyStr = StringUtils.defaultString(itemKey != null ? itemKey.toString() : null); Object itemValue = findValue(listValue == null ? "top" : listValue); String itemValueStr = StringUtils.defaultString(itemValue != null ? itemValue.toString() : null); String id = (new StringBuilder()).append(params.get("id")).append(Integer.toString(cnt++)).toString(); Here id is generated by appending with count of list items Because of these changes, we need to modify the jsp/javascription function in all our application. if we are not upgrading to next struts 2.3.20 (using struts2-javatemplates-plugin-2.3.20 along with strut2-cord 2.3.32 version) we are getting below error Caused by: java.lang.NoSuchMethodError: org/apache/struts2/util/ComponentUtils.isExpression(Ljava/lang/Object;)Z at org.apache.struts2.views.java.simple.DynamicAttributesHandler.processDynamicAttributes(DynamicAttributesHandler.java:48) at org.apache.struts2.views.java.simple.DynamicAttributesHandler.start(DynamicAttributesHandler.java:41) Do we have any alternate option to resolve this issue was (Author: habajwa): [~lukaszlenart] we have identified issues between radio button generation under RadioHandler.java under struts2-javatemplates-plugin-2.3.20 and struts2-javatemplates-plugin-2.3.32 struts2-javatemplates-plugin-2.3.20 --------------------------------------------- for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) { Object item = itt.next(); stack.push(item); Object itemKey = findValue(listKey == null ? "top" : listKey); String itemKeyStr = StringUtils.defaultString(itemKey != null ? itemKey.toString() : null); Object itemValue = findValue(listValue == null ? "top" : listValue); String itemValueStr = StringUtils.defaultString(itemValue != null ? itemValue.toString() : null); String id = (new StringBuilder()).append(params.get("id")).append(itemKeyStr).toString(); Here id is generated by appending with key value struts2-javatemplates-plugin-2.3.32 --------------------------------------------- for(Iterator itt = MakeIterator.convert(listObj); itt.hasNext(); stack.pop()) { Object item = itt.next(); stack.push(item); Object itemKey = findValue(listKey == null ? "top" : listKey); String itemKeyStr = StringUtils.defaultString(itemKey != null ? itemKey.toString() : null); Object itemValue = findValue(listValue == null ? "top" : listValue); String itemValueStr = StringUtils.defaultString(itemValue != null ? itemValue.toString() : null); String id = (new StringBuilder()).append(params.get("id")).append(Integer.toString(cnt++)).toString(); Here id is generated by appending with count of list items Because of these changes, we need to modify the jsp/javascription function in all our application. Do we have any alternate option to resolve this issue > 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)