I have a Spring application context that I’ve been using for several months. In ME 4.1.1 I had no problems with it but as soon as I loaded this project in 5.0 GA I got a validation error on a BeanNameAutoProxyCreator bean. Here is the bean definition:
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="interceptorNames">
<list>
<idref local="matchAllTxInterceptor" />
<idref bean="hibInterceptor" />
</list>
</property>
<property name="beanNames">
<list>
<idref local="StoreLoginsDAO" />
<idref local="CustomersDAO" />
<idref local="StoresDAO" />
<idref local="ProductTypesDAO"/>
<idref local="ProductClassListDAO"/>
<idref local="VendorListDAO"/>
</list>
</property>
</bean>
The error is “Error registering bean in file…: Unexpected failure during bean definition parsing; nested exception is java.lang.IllegalArgumentException: Bean name must not be empty.
If I add the name attribute to the <bean> element I still get the same error. This bean is right out of the Spring documentation.