Hi,


I am using DynaActionForm, one of the form bean property is a indexed
type.

<form-property name="vitalsignvo" type="VitalSignVO[]"/>



I can not specify the size attribute for this property I am keeping this
form bean in Session scope.



When I submit to an action class, it is working fine, after submitting
to the action, if I refresh the JSP it is showing the following error:



Error 500: BeanUtils.populate



[5/22/06 10:39:16:490 IST] 630ba5af WebGroup      E SRVE0026E: [Servlet
Error]-[BeanUtils.populate]: java.lang.ArrayIndexOutOfBoundsException

      at java.lang.reflect.Array.get(Native Method)

      at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:250)

      at
org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(Proper
tyUtilsBean.java:386)

      at
org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(Proper
tyUtilsBean.java:340)

      at
org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(Propert
yUtilsBean.java:684)

      at
org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtils
Bean.java:715)

      at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.jav
a:884)

      at
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:8
11)

      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(RequestProcess
or.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:760)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)

      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)

      at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)

      at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)

      at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)

      at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)

      at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)

      at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:983)

      at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)

      at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)

      at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)

      at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)

      at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)

      at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
ke(CacheableInvocationContext.java:116)

      at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:186)

      at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)

      at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)

      at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)

      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)

      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)



Any solution how to overcome this problem..



Thanks in advance





Best Regards,

Srini








The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to