struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea M" <andrea.missin...@fastwebnet.it>
Subject R: Indexed property throws exception - HELP!
Date Mon, 17 May 2004 20:08:20 GMT
I've seen in another list someone resolving a problem like this using
ArrayList instead of the interface List
It's odd but the guy claims it worked. Maybe a bug in PropertyUtils.. don't
honestly know.
This is the link if you are interested
http://www.junlu.com/msg/45025.html


-----Messaggio originale-----
Da: Phan, Hienthuc T (Rosetta) [mailto:hienthuc_phan@merck.com] 
Inviato: lunedì 17 maggio 2004 18.59
A: user@struts.apache.org
Oggetto: Indexed property throws exception - HELP!
Priorità: Alta

Hi,

I encountered an index out of bound exception when using the indexed
property.  The problem I'm facing is that I can't debug this.  The exception
is not thrown either in the the form or the action.  Do you know what cause
this?


<May 17, 2004 9:50:02 AM PDT> <Error> <HTTP> <101017>
<[ServletContext(id=4601745,name=scheduler,context-path=/scheduler)] Root
cause of ServletException
java.lang.IndexOutOfBoundsException: Index: 1, 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:1096)
        at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:816)
        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
        at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
        at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
        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(Servle
tStubImpl.java:1058)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5445)
        at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:780)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3105)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2588)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
>


----------------------------------------------------------------------------
--
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New
Jersey, USA 08889), and/or its affiliates (which may be known outside the
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as
Banyu) that may be confidential, proprietary copyrighted and/or legally
privileged. It is intended solely for the use of the individual or entity
named on this message.  If you are not the intended recipient, and have
received this message in error, please notify us immediately by reply e-mail
and then delete it from your system.
----------------------------------------------------------------------------
--

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message