Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-445

Bean property binding multi dimentional array or collection error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1 final
    • Fix Version/s: 1.1.2
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      When I tried to bind properties for multi dimensional array or nested list, I get the following error.

      BeanWrapperImpl does not support multi dimensional array/collection.

      org.springframework.beans.NullValueInNestedPathException: Invalid property 'data[InvalidUserInfoException][4][newUser]' of bean class [com.vonage.ebt.service.smbUserManagement.AddSmbUserTest]: Value of nested property 'data[InvalidUserInfoException][4][newUser]' is null
      at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:427)
      at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:401)
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:580)
      at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:720)
      at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:747)
      at org.springframework.validation.DataBinder.bind(DataBinder.java:240)

        Attachments

          Activity

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              janaki_srini Srinivas Janakiraman
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                13 years, 42 weeks, 6 days ago