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

IntrospectionException: type mismatch between indexed and non-indexed methods

    XMLWordPrintable

    Details

    • Last commented by a User:
      true

      Description

      The application fails to create beans of type com.amazonaws.ClientConfiguration due to

      [...]
      Caused by: org.springframework.beans.FatalBeanException: Failed to obtain BeanInfo for class [com.amazonaws.ClientConfiguration]; nested exception is java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: socketBufferSizeHints
      	at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:262)
      	at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149)
      	at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:324)
      	at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:331)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1242)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1101)
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
      	... 43 more
      Caused by: java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: socketBufferSizeHints
      	at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:395)
      	at java.beans.IndexedPropertyDescriptor.setIndexedWriteMethod(IndexedPropertyDescriptor.java:292)
      	at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:314)
      	at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:170)
      	at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)
      

      The error does not occur in release 3.1.2 or earlier versions.

        Attachments

        1. BeanCreationTest.java
          0.6 kB
        2. config.xml
          0.4 kB
        3. pom.xml
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              cbeams Chris Beams
              Reporter:
              matsev Mattias Severson
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 24 weeks, 4 days ago