You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2004/10/26 09:10:08 UTC
BeanUtils.populate exception?
I have a filter in my webapp, that sometimes generates an exception like this..:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling
this request.
exception
javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.havleik.dt.framework.filter.AuthFilter.doFilter(AuthFilter.java:83)
root cause
java.lang.ArrayIndexOutOfBoundsException
java.lang.reflect.Array.get(Native Method)
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:525)
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.java:428)
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:770)
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.havleik.dt.framework.filter.AuthFilter.doFilter(AuthFilter.java:83)
This happens when I call the chain.doFilter method to pass the response on..
But this happens when using IE, I can't seem to get the same exception when using Firefox...
Anyone know why this happens?
Regards,
BTJ
--
-----------------------------------------------------------------------------------------------
Bjørn T Johansen (BSc,MNIF)
btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: BeanUtils.populate exception?
Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
Can you identify which particluar indexed property its trying to populate?
I'd start by debuging it by showing the request parameters that are being
submitted with the different browsers and the length of the indexed property
before it tries to populate.
Niall
----- Original Message -----
From: "Bjørn T Johansen" <bt...@havleik.no>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, October 26, 2004 8:10 AM
Subject: BeanUtils.populate exception?
> I have a filter in my webapp, that sometimes generates an exception like
this..:
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
from fulfilling
> this request.
>
> exception
>
> javax.servlet.ServletException: BeanUtils.populate
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> com.havleik.dt.framework.filter.AuthFilter.doFilter(AuthFilter.java:83)
>
>
> root cause
>
> java.lang.ArrayIndexOutOfBoundsException
> java.lang.reflect.Array.get(Native Method)
>
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:525)
>
org.apache.commons.beanutils.PropertyUtils.getIndexedProperty(PropertyUtils.
java:428)
>
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j
ava:770)
>
org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80
1)
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:881)
> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
>
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> com.havleik.dt.framework.filter.AuthFilter.doFilter(AuthFilter.java:83)
>
>
> This happens when I call the chain.doFilter method to pass the response
on..
> But this happens when using IE, I can't seem to get the same exception
when using Firefox...
>
> Anyone know why this happens?
>
>
> Regards,
>
> BTJ
>
> --
> --------------------------------------------------------------------------
---------------------
> Bjørn T Johansen (BSc,MNIF)
> btj@havleik.no
> --------------------------------------------------------------------------
---------------------
> Someone wrote:
> "I understand that if you play a Windows CD backwards you hear strange
Satanic messages"
> To which someone replied:
> "It's even worse than that; play it forwards and it installs Windows"
> --------------------------------------------------------------------------
---------------------
>
> ---------------------------------------------------------------------
> 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