You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2008/08/13 07:06:25 UTC

[jira] Closed: (STR-3154) getting NullPointerException after changing scope of form as request

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

Paul Benedict closed STR-3154.
------------------------------

    Resolution: Not A Problem
      Assignee: Paul Benedict

Closing this issue since it is not a bug. This question should be directed towards the user mailing list: http://struts.apache.org/mail.html

> getting NullPointerException after changing scope of form as request
> --------------------------------------------------------------------
>
>                 Key: STR-3154
>                 URL: https://issues.apache.org/struts/browse/STR-3154
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tag Libraries
>    Affects Versions: 1.1.0
>            Reporter: vaibhav maddiwar
>            Assignee: Paul Benedict
>            Priority: Critical
>
> Hi,
> I am using Struts and am trying to display and edit a list of objects using nested iterate. However when I submit the form, the form is not getting populated causing the following exception.
> I am getting this exception when I set the scope of the action to request. However the same code is working properly when I set the scope of the action to session instead of request.
> java.lang.NullPointerException
> at org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:515)
> at org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
> at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:750)
> at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
> at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
> at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
> at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
> at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
> at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
> at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
> Thanks in advance!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.