-
May 6th, 2012, 04:03 AM
#1
Getting InvalidPropertyException: IndexOutOfBoundsException while submitting form
Hi,
I am using Spring MVC v3.1.0 in my web application. I am using ArrrayList in my form backing bean to list set of rows in my form. while retriving data into form, i do not any issues. But when i submit the page to bind all these rows into the form backing bean i am getting below error.
org.springframework.beans.InvalidPropertyException : Invalid property 'customList[256]' of bean class [com.model.CustomForm]: Index of out of bounds in property path 'customList[256]'; nested exception is java.lang.IndexOutOfBoundsException: Index: 256, Size: 256
org.springframework.beans.BeanWrapperImpl.getPrope rtyValue(BeanWrapperImpl.java:833)
It is working fine when i have upto 256 rows. But more than 256 rows i am getting IndexOutOfBoundsException. Is there any configuration to setup this arraylist size while automatic data binding in Spring MVC or related to any other issue?
Please help on this .
-
May 14th, 2012, 07:16 PM
#2
Hello
Could you post the code of your controller and jsp page? Perhaps you have a special detail somewhere
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
-
May 23rd, 2012, 04:25 AM
#3
I am getting the same exception. I have found this info, that I believe describes the problem:
SPRING FRAMEWORK CHANGELOG
==========================
http://www.springsource.org
Changes in version 3.0.6 (2011-08-18)
-------------------------------------
...
* DataBinder uses a default limit of 256 for array/collection auto-growing
Does anyone know how to set this limit in spring to a bigger value?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules