Welcome to my Blog (http://javasolutionarchitect.blogspot.com/) My Objective is to share my experience in Determining problems and Providing/Creating Solutions. I am Java Architect, IBM Certified OOAD Solution Designer, TOGAF 8 practitioner, Oracle SOA Architect Certified Expert, Tibco Trained Professional, Cloud Specialist, Ceritfied Scrum Master
Popular Posts
-
WSDL 2.0 1 1) WSDL 2.0 was designed to solve the interoperability issues found in WSDL 1.0/1.1 by using Improved SOAP v1.2 bindings ...
Monday, July 11, 2011
org.springframework.beans.InvalidPropertyException: Invalid property Index of out of bounds in property path
When we add dynamically adding table rows and columns via javascript and trying to binding to the spring path variable it throws InvalidPropertyException: stating that
Index: 1, Size: 1
org.springframework.beans.InvalidPropertyException: Invalid property 'intnlTrnsVORcvlist[1]' of bean class [com.citi.aml.cadd.webapp.accountprofileform.Accou
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:585)
at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:415)
at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:392)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:597)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
Truncated. see log file for complete stacktrace
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:534)
at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:415)
at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:392)
Truncated. see log file for complete stacktrace
>
Solution is
Instead of ArrayList of VO class. use GrowList.decorate(ArrayList .. along with VO class.
Example
Instead of List rcvnewList = new ArrayList(WireCountryVO.class);
Use this
List rcvnewList =GrowthList.decorate(LazyList.decorate(new
ArrayList(),FactoryUtils.instantiateFactory(WireCountryVO.class)));
Subscribe to:
Posts (Atom)