java.lang.AssertionError: java.beans.IntrospectionException: type mismatch between indexed read and indexed write methods: index

JDK Bug System | Aleksandr Sakharuk | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fails on custom jdk1.8.0b120(link in comment) and jdk1.8.0b119. Fails on jdk1.7.0_45b18 for another reason. So it can be regression. on jdk1.8.0 fails with exception java.lang.Error: the child property type is not override the parent property type at Test8027648.test(Test8027648.java:45) at Test8027648.main(Test8027648.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:744) on jdk1.7.0_45b18 with java.lang.AssertionError: java.beans.IntrospectionException: type mismatch between indexed read and indexed write methods: index at java.beans.IndexedPropertyDescriptor.<init>(IndexedPropertyDescriptor.java:480) at java.beans.Introspector.processPropertyDescriptors(Introspector.java:647) at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:543) at java.beans.Introspector.getBeanInfo(Introspector.java:418) at java.beans.Introspector.getBeanInfo(Introspector.java:163) at BeanUtils.getPropertyDescriptors(BeanUtils.java:64) at BeanUtils.findPropertyDescriptor(BeanUtils.java:111) at Test8027648.getPropertyType(Test8027648.java:50) at Test8027648.test(Test8027648.java:43) at Test8027648.main(Test8027648.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:744) Caused by: java.beans.IntrospectionException: type mismatch between indexed read and indexed write methods: index at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:387) at java.beans.IndexedPropertyDescriptor.setIndexedReadMethod(IndexedPropertyDescriptor.java:215) at java.beans.IndexedPropertyDescriptor.<init>(IndexedPropertyDescriptor.java:471) ... 15 more

    JDK Bug System | 3 years ago | Aleksandr Sakharuk
    java.lang.AssertionError: java.beans.IntrospectionException: type mismatch between indexed read and indexed write methods: index
  2. 0

    Exception when trying to spy with Mockito

    Stack Overflow | 7 months ago | Tommy
    java.lang.IllegalStateException: Failed to load ApplicationContext

    Root Cause Analysis

    1. java.beans.IntrospectionException

      type mismatch between indexed read and indexed write methods: index

      at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType()
    2. Java RT
      Introspector.getBeanInfo
      1. java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:387)
      2. java.beans.IndexedPropertyDescriptor.setIndexedReadMethod(IndexedPropertyDescriptor.java:215)
      3. java.beans.IndexedPropertyDescriptor.<init>(IndexedPropertyDescriptor.java:471)
      4. java.beans.Introspector.processPropertyDescriptors(Introspector.java:647)
      5. java.beans.Introspector.getTargetPropertyInfo(Introspector.java:543)
      6. java.beans.Introspector.getBeanInfo(Introspector.java:418)
      7. java.beans.Introspector.getBeanInfo(Introspector.java:163)
      7 frames
    3. Unknown
      Test8027648.main
      1. BeanUtils.getPropertyDescriptors(BeanUtils.java:64)
      2. BeanUtils.findPropertyDescriptor(BeanUtils.java:111)
      3. Test8027648.getPropertyType(Test8027648.java:50)
      4. Test8027648.test(Test8027648.java:43)
      5. Test8027648.main(Test8027648.java:37)
      5 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. com.sun.javatest
      MainWrapper$MainThread.run
      1. com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      1 frame
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame