Issue 1:
Cameron Braid opened SPR-4089 and commented

I initially posted to the forum http://forum.springframework.org/showthread.php?p=150766

There is a method signature change in org.springframework.beans.factory.xml.XmlReaderCon text that causes apache xbean to fail. I submitted a bug report at the xbean site https://issues.apache.org/jira/browse/XBEAN-88 but here is a stack trace excerpt :

Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderCon text.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;

at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.loadResource(XBeanNamespaceHandler.java:81 8)

at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.findNamespaceProperties(XBeanNamespaceHand ler.java:778)

at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parseBeanFromExtensionElement(XBeanNamespa ceHandler.java:257)

at org.apache.xbean.spring.context.v2c.XBeanNamespace Handler.parse(XBeanNamespaceHandler.java:155)

at org.apache.xbean.spring.context.v2.XBeanNamespaceH andler.parse(XBeanNamespaceHandler.java:49)

at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1246)

at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1236)

This change prevents spring 2.5 being a "drop in" upgrade from 2.0

Is this method signature change required ?

Could the old method be left as deprecated ?

Affects: 2.1 M1, 2.1 M2, 2.1 M3, 2.1 M4, 2.5 RC1, 2.5 RC2

Issue Links:

#8760 Return type of o.s.b.f.x.XmlBeanDefinitionReader#getReader() changed ("duplicates")

Issue 2:
Reinhard Pötz opened SPR-4081 and commented

The return type of o.s.b.f.x.XmlBeanDefinitionReader#getReader() has changed from

org.springframework.beans.factory.xml.XmlBeanDefinitionReader

to

org.springframework.beans.factory.support.BeanDefinitionReader

If you use this method you have to recompile your code, otherwise you get following exception:

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlReaderContext.getReader()Lorg/springframework/beans/factory/xml/XmlBeanDefinitionReader;

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:385)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:313)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:290)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)

at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:97)

at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:411)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:338)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

Since this change prevents you from just dropping in the new Spring libs into your application, I marked this report as "blocker".

BTW, I'm not the only one who run into this problem: See also https://issues.apache.org/jira/browse/XBEAN-88

Affects: 2.5 RC1

Issue Links:

#8768 Issue with apache xbean when upgrading spring from 2.0 to 2.1-rc or 2.5-rc1 ("is duplicated by")