This is an intermittent problem for the same record set, here is the error I am getting:
and below is code which is causing this:Code:org.springframework.beans.InvalidPropertyException: Invalid property 'alternateResources[0]' of bean class [xxx.vo.ScreenProposalMaterialVO]: Index of out of bounds in property path 'alternateResources[0]'; nested exception is java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:546) at java.util.ArrayList.get(ArrayList.java:321) at org.springframework.beans.BeanWrapperImpl.getPropertyValue (BeanWrapperImpl.java:408) at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:297) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:274)
Any ideas? If the collection is empty, it should go into foreach block only but from the debugging it is clear that the collection is having its associated values but it fails when it encounters the spring bind.Code:<c:forEach var="resourceEntry" items="${command.alternateResources}" varStatus="lineInfo"> ..................... <spring:bind path="command.alternateResources[${lineInfo.index}].price"> ....................


Reply With Quote
