struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "billy (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (WW-4703) NullPointerException in ActionSupport when use ModelDriven
Date Fri, 28 Oct 2016 06:53:58 GMT

     [ https://issues.apache.org/jira/browse/WW-4703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

billy updated WW-4703:
----------------------
    Comment: was deleted

(was: 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)

Mime
View raw message