struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nestor Boscan" <nestor.bos...@tcs.com.ve>
Subject IndexOutOfBoundsException when Struts is populating and ActionForm with a List property
Date Tue, 15 Jun 2004 20:46:06 GMT
Hi
 
I have an ActionForm class that has a List as a property. The ActionForm is
of type request. If I populate the ActionForm and show it in a JSP page it
shows correctly the values. But when I try to process the information that
is coming from the form Struts throws the following exception:
java.lang.IndexOutOfBoundsException: Index: 7, Size: 0


	at java.util.ArrayList.RangeCheck(ArrayList.java:486)


	at java.util.ArrayList.get(ArrayList.java:302)


	at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:521)


	at
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:428)


	at
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:770)


	at
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)


	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.j
ava: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 com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:720)


	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:305)


	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
742)


	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:248)


	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Thanks in advance.
 
Regards,
 
Néstor Boscán

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message