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 (unknown [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6E48E200BAE for ; Fri, 28 Oct 2016 08:53:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6D082160ADD; Fri, 28 Oct 2016 06:53:00 +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 BDD59160AE3 for ; Fri, 28 Oct 2016 08:52:59 +0200 (CEST) Received: (qmail 95422 invoked by uid 500); 28 Oct 2016 06:52:58 -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 95194 invoked by uid 99); 28 Oct 2016 06:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 06:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 85FFA2C0087 for ; Fri, 28 Oct 2016 06:52:58 +0000 (UTC) Date: Fri, 28 Oct 2016 06:52:58 +0000 (UTC) From: "billy (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4703) NullPointerException in ActionSupport when use ModelDriven MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Oct 2016 06:53:00 -0000 [ https://issues.apache.org/jira/browse/WW-4703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15614527#comment-15614527 ] billy commented on WW-4703: --------------------------- I know this information. I doesn't get what you mean "For now you can define a setter like this [2] and container field in your action" <-- how to do this? Can you tell some practical example? I have mentioned that it worked at 2.3.24.3 > NullPointerException in ActionSupport when use ModelDriven > ---------------------------------------------------------- > > Key: WW-4703 > URL: https://issues.apache.org/jira/browse/WW-4703 > Project: Struts 2 > Issue Type: Bug > Components: Core > Affects Versions: 2.5.5 > Environment: Windows 7 > WebSphere 8.5 > Reporter: billy > Fix For: 2.5.6 > > > When we use getText method in a ModelDriven's bean. We got NullPointerException in ActionSupport. We found the variable "container" is null when the bean is got from ModelDriven.getModel() > Following is the exception stack: > {noformat} > java.lang.NullPointerException > at com.opensymphony.xwork2.ActionSupport.getLocale(ActionSupport.java:68) > at com.opensymphony.xwork2.TextProviderSupport.getLocale(TextProviderSupport.java:329) > at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:204) > at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:119) > at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:86) > {noformat} > Note: we are upgrading the project from 2.3.24.3 to 2.5.5. In version 2.3.24.3 doesn't have this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)