You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Steve Klosterbuer (JIRA)" <ji...@apache.org> on 2006/12/14 21:16:57 UTC

[jira] Created: (STR-2989) NullPointerException on indexed properties only on session timeout

NullPointerException on indexed properties only on session timeout
------------------------------------------------------------------

                 Key: STR-2989
                 URL: http://issues.apache.org/struts/browse/STR-2989
             Project: Struts 1
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.2.9
         Environment: Windows XP, WebLogic 8.1 
            Reporter: Steve Klosterbuer


I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:

java.lang.NullPointerException
	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Steve Klosterbuer (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/STR-2989?page=comments#action_39103 ] 
            
Steve Klosterbuer commented on STR-2989:
----------------------------------------

Hi Paul,

It is session scope.  But, I've also tried request scope, which had the same
results.

Steve



> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: http://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/STR-2989?page=comments#action_39132 ] 
            
Paul Benedict commented on STR-2989:
------------------------------------

The logic tags throw a NPE when they reference a null object. This is not a bug. If you need graceful handling of null objects, use JSTL which can check when references are empty.

As for the arrays, I am pretty sure arrays are not allocated automatically. They return to null after a request or when the session expires. If the array has to be there, you need to instantiate it in your constructor.

> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: http://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Steve Klosterbuer (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/STR-2989?page=comments#action_39134 ] 
            
Steve Klosterbuer commented on STR-2989:
----------------------------------------

I'm not sure that I follow.  This occurs when I attempt to submit the form
after the session has expired.  Before the Action class gets the request,
the collections within the ActionForm are not successfully populated and I
get the resulting NPE.



> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: http://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Jayaraj (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayaraj updated STR-2989:
-------------------------

    Attachment: HelloStruts.zip

Actually this is not a bug, I am adding this file because 

in my requirement the form element 

<input type="text" name="list[2].name" value="C"> - <BR>

will be dynamic say

<input type="text" name="list[2].name" value="C"> - <BR>
<input type="text" name="list[3].name" value="C"> - <BR>
<input type="text" name="list[4].name" value="C"> - <BR>

since the form object (ArrayLisy) which don't have the index 2,3,4 

i am getting this exception.

can any one help me ?

> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: https://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>         Attachments: HelloStruts.zip
>
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

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


[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Steve Klosterbuer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40022 ] 

Steve Klosterbuer commented on STR-2989:
----------------------------------------

Hi Guys,

Thanks for following up with this, but it's probably something we can close
out now.  I've moved on to another employer and project, so I don't have
access to this code base any longer.

Thanks for your help.

Steve




> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: https://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

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


[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/STR-2989?page=comments#action_39102 ] 
            
Paul Benedict commented on STR-2989:
------------------------------------

What scope is your form bean?

> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: http://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/STR-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed STR-2989.
------------------------------

    Resolution: Won't Fix

Closing at user request.

> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: https://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

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


[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39809 ] 

Henri Yandell commented on STR-2989:
------------------------------------

Maybe attaching an example case will help move this on, Steve. Or is this something you've resolved?

> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: https://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (STR-2989) NullPointerException on indexed properties only on session timeout

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/STR-2989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45651#action_45651 ] 

Dave Newton commented on STR-2989:
----------------------------------

Ask questions on the struts-user mailing list.

http://struts.apache.org/mail.html

Attached a comment to a closed, two-year old ticket will most likely not work.


> NullPointerException on indexed properties only on session timeout
> ------------------------------------------------------------------
>
>                 Key: STR-2989
>                 URL: https://issues.apache.org/struts/browse/STR-2989
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.9
>         Environment: Windows XP, WebLogic 8.1 
>            Reporter: Steve Klosterbuer
>         Attachments: HelloStruts.zip
>
>
> I have an ActionForm that has a getter and setter for a Collection of Objects.  The jsp uses the logic:iterate tag to output the indexed nested properties.  Everything works fine until the session times out.  Then I get the following stack trace:
> java.lang.NullPointerException
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:427)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:340)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:684)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715)
> 	at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:884)
> 	at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
> 	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
> 	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
> 	at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

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