commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (BEANUTILS-358) version 1.8 PropertyUtilsBean throws java.lang.ArrayIndexOutOfBoundsException
Date Fri, 28 Aug 2009 01:22:59 GMT

    [ https://issues.apache.org/jira/browse/BEANUTILS-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748634#action_12748634
] 

Niall Pemberton commented on BEANUTILS-358:
-------------------------------------------

This can happen when the index value is not valid for the array. I added a test case for this
and have improved the error message of the ArrayIndexOutOfBoundsException:

http://svn.apache.org/viewvc?view=rev&revision=808710

I also ran this test case in BeanUtils 1.7 and got the same results

To determine whether this is a bug in BeanUtils or a bug in your application then I need more
information. Do you know the value of "contributor_rowNum" and the size of the array in your
"estimatedPercentShareList" property? Also the getter/setters of your bean for the  "estimatedPercentShareList"
property

If you can build BeanUtils from the latest source and try that jar then you should see the
new error message which may help in working out what the problem is.

http://commons.apache.org/beanutils/source-repository.html
http://commons.apache.org/beanutils/building.html

> version 1.8 PropertyUtilsBean throws java.lang.ArrayIndexOutOfBoundsException
> -----------------------------------------------------------------------------
>
>                 Key: BEANUTILS-358
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-358
>             Project: Commons BeanUtils
>          Issue Type: Bug
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0
>         Environment: Microsoft Windows XP [Version 5.1.2600]
> JBoss 4.2.2.GA
> display-tag ver 1.1 library
>  antlr-2.7.2.jar
>  antlr-2.7.5H3.jar
>  ApplicationResources.properties
>  commons-beanutils-1.8.0.jar
>  commons-chain-1.1.jar
>  commons-codec-1.3.jar
>  commons-collections-2.1.1.jar
>  commons-dbutils-1.1.jar
>  commons-digester-1.8.jar
>  commons-discovery-0.2.jar
>  commons-el-1.0.jar
>  commons-fileupload-1.1.1.jar
>  commons-io-1.1.jar
>  commons-javaflow-2006.04.11.jar
>  commons-lang-2.1.jar
>  commons-logging-1.0.4.jar
>  commons-validator-1.3.1.jar
>  displaytag-1.2.jar
>  displaytag.properties
>  log4j.xml
>  standard-1.1.2.jar
>  struts-core-1.3.8.jar
>  struts-el-1.3.8.jar
>  struts-extras-1.3.8.jar
>  struts-faces-1.3.8.jar
>  struts-mailreader-dao-1.3.8.jar
>  struts-scripting-1.3.8.jar
>  struts-taglib-1.3.8.jar
>  struts-tiles-1.3.8.jar
>            Reporter: Anil Philip
>
> We noticed this error with Commons bean-utils version 1.8 jar. Upon reverting back to
the 1.7 version, it went away.
> Any help appreciated.
> Thanks,
> Anil 
> ========POSSIBLE EL=======================
> <display:column headerClass="displayheader" class="displaytd" title="<font color='red'>*
</font>Estimated Percent Share(%)" sortable="false"><html:text styleClass="fieldInput"
property="estimatedPercentShareList[${contributor_rowNum-1}]"  maxlength="20" alt="Estimated
Percent Share" onfocus="looseFocus()" onchange="looseFocus()" onclick="looseFocus()"/></display:column>
			
> ================ERROR====================
> 6:35:47,864 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
> java.lang.ArrayIndexOutOfBoundsException
> 	at java.lang.reflect.Array.get(Native Method)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:515)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:408)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:760)
> 	at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:837)
> 	at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:426)
> 	at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:880)
> 	at org.apache.struts.taglib.html.BaseFieldTag.prepareValue(BaseFieldTag.java:123)
> 	at org.apache.struts.taglib.html.BaseFieldTag.renderInputElement(BaseFieldTag.java:102)
> 	at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:80)
> 	at org.apache.jsp.jsp.signup.AddMoreContributors_jsp._jspx_meth_html_005ftext_005f0(AddMoreContributors_jsp.java:965)
> 	at org.apache.jsp.jsp.signup.AddMoreContributors_jsp._jspx_meth_display_005fcolumn_005f4(AddMoreContributors_jsp.java:925)
> 	at org.apache.jsp.jsp.signup.AddMoreContributors_jsp._jspService(AddMoreContributors_jsp.java:284)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
> 	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
> 	at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:638)
> 	at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:632)
> 	at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129)
> 	at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152)
> 	at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764)
> 	at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896)
> 	at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465)
> 	at org.apache.jsp.layout.EcpLayout_jsp._jspx_meth_tiles_005finsert_005f4(EcpLayout_jsp.java:691)
> 	at org.apache.jsp.layout.EcpLayout_jsp._jspx_meth_c_005fif_005f3(EcpLayout_jsp.java:663)
> 	at org.apache.jsp.layout.EcpLayout_jsp._jspService(EcpLayout_jsp.java:310)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
> 	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
> 	at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)
> 	at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:271)
> 	at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:332)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
> 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
> 	at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
> 	at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)
> 	at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
> 	at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at gov.usda.fsa.eas.auth.web.AuthorizationManagementServletFilter.doFilter(AuthorizationManagementServletFilter.java:126)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> 	at java.lang.Thread.run(Thread.java:595)

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


Mime
View raw message