Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“NoSuchMethodErrors” due to multiple versions of org.springframework:spring-core:jar #272

Open
Bing-ok opened this issue Aug 25, 2020 · 3 comments

Comments

@Bing-ok
Copy link

Bing-ok commented Aug 25, 2020

Issue description

Hi, there are multiple versions of org.springframework:spring-core in onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp. As shown in the following dependency tree, library org.springframework:spring-core:3.0.3.RELEASE is transitively introduced by org.springframework:spring-web:3.0.3.RELEASE, but has been managed to be version 4.3.18.RELEASE.

However, several methods defined in shadowed version org.springframework:spring-core:3.0.3.RELEASE is referenced by client project via org.springframework:spring-web:3.0.3.RELEASE, but missing in the actually loaded version org.springframework:spring-core:4.3.18.RELEASE.

For instance, the following missing methods(defined in org.springframework:spring-core:3.0.3.RELEASE) are actually referenced by onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp, which will introduce a runtime error(i.e., "NoSuchMethodErrors") into onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp.

1. org.springframework.core.convert.TypeDescriptor: org.springframework.core.MethodParameter getMethodParameter() is invoked by onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp via the following path:


paths------
<org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp\target\classes
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String,java.util.Set)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.support.EncodedResource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int doLoadBeanDefinitions(org.xml.sax.InputSource,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int registerBeanDefinitions(org.w3c.dom.Document,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void registerBeanDefinitions(org.w3c.dom.Document,org.springframework.beans.factory.xml.XmlReaderContext)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseBeanDefinitions(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseDefaultElement(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void processBeanDefinition(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element,org.springframework.beans.factory.config.BeanDefinition)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isBeanNameInUse(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean containsLocalBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isFactoryBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: java.lang.Object getSingleton(java.lang.String,boolean)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectFactory: java.lang.Object getObject()> 
<org.springframework.beans.factory.support.DefaultListableBeanFactory: java.lang.Object doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor,java.lang.Class,java.lang.String,java.util.Set,org.springframework.beans.TypeConverter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.AbstractPropertyAccessor: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.DirectFieldAccessor: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class,org.springframework.core.MethodParameter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.TypeConverterDelegate: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class,org.springframework.core.MethodParameter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.TypeConverterDelegate: java.lang.Object convertIfNecessary(java.lang.String,java.lang.Object,java.lang.Object,java.lang.Class,org.springframework.core.convert.TypeDescriptor)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.core.convert.TypeDescriptor: org.springframework.core.MethodParameter getMethodParameter()> 

2. org.springframework.core.io.support.ResourceArrayPropertyEditor: void init (org.springframework.core.io.support.ResourcePatternResolver) is invoked by onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp via the following path:


paths------
<org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)>> onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp\target\classes
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String,java.util.Set)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.support.EncodedResource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int doLoadBeanDefinitions(org.xml.sax.InputSource,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int registerBeanDefinitions(org.w3c.dom.Document,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void registerBeanDefinitions(org.w3c.dom.Document,org.springframework.beans.factory.xml.XmlReaderContext)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseBeanDefinitions(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseDefaultElement(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void processBeanDefinition(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element,org.springframework.beans.factory.config.BeanDefinition)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isBeanNameInUse(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean containsLocalBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isFactoryBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: java.lang.Object getSingleton(java.lang.String,boolean)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectFactory: java.lang.Object getObject()>  
<org.springframework.beans.factory.support.DefaultListableBeanFactory: java.lang.Object doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor,java.lang.Class,java.lang.String,java.util.Set,org.springframework.beans.TypeConverter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: org.springframework.beans.TypeConverter getTypeConverter()> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.support.ResourceEditorRegistrar: void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.core.io.support.ResourceArrayPropertyEditor: void init(org.springframework.core.io.support.ResourcePatternResolver)> 

3. org.springframework.core.convert.TypeDescriptor: org.springframework.core.convert.TypeDescriptor forElementType(java.lang.Class) is invoked by onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp via the following path:


paths------
<org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp\target\classes
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String,java.util.Set)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.support.EncodedResource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int doLoadBeanDefinitions(org.xml.sax.InputSource,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int registerBeanDefinitions(org.w3c.dom.Document,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void registerBeanDefinitions(org.w3c.dom.Document,org.springframework.beans.factory.xml.XmlReaderContext)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseBeanDefinitions(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseDefaultElement(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void processBeanDefinition(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element,org.springframework.beans.factory.config.BeanDefinition)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isBeanNameInUse(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean containsLocalBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isFactoryBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: java.lang.Object getSingleton(java.lang.String,boolean)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectFactory: java.lang.Object getObject()> 
<org.springframework.beans.factory.support.DefaultListableBeanFactory: java.lang.Object doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor,java.lang.Class,java.lang.String,java.util.Set,org.springframework.beans.TypeConverter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.AbstractPropertyAccessor: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.DirectFieldAccessor: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class,org.springframework.core.MethodParameter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.TypeConverterDelegate: java.lang.Object convertIfNecessary(java.lang.Object,java.lang.Class,org.springframework.core.MethodParameter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.TypeConverterDelegate: java.lang.Object convertIfNecessary(java.lang.String,java.lang.Object,java.lang.Object,java.lang.Class,org.springframework.core.convert.TypeDescriptor)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.core.convert.TypeDescriptor: org.springframework.core.convert.TypeDescriptor forElementType(java.lang.Class)> 

4. org.springframework.core.io.ResourceEditor: void init (org.springframework.core.io.ResourceLoader) is invoked by onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp via the following path:


paths------
<org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp\target\classes
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.support.DefaultListableBeanFactory)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.web.context.support.XmlWebApplicationContext: void loadBeanDefinitions(org.springframework.beans.factory.xml.XmlBeanDefinitionReader)> Repositories\org\springframework\spring-web\3.0.3.RELEASE\spring-web-3.0.3.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanDefinitionReader: int loadBeanDefinitions(java.lang.String,java.util.Set)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int loadBeanDefinitions(org.springframework.core.io.support.EncodedResource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int doLoadBeanDefinitions(org.xml.sax.InputSource,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.XmlBeanDefinitionReader: int registerBeanDefinitions(org.w3c.dom.Document,org.springframework.core.io.Resource)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void registerBeanDefinitions(org.w3c.dom.Document,org.springframework.beans.factory.xml.XmlReaderContext)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseBeanDefinitions(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void parseDefaultElement(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader: void processBeanDefinition(org.w3c.dom.Element,org.springframework.beans.factory.xml.BeanDefinitionParserDelegate)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.xml.BeanDefinitionParserDelegate: org.springframework.beans.factory.config.BeanDefinitionHolder parseBeanDefinitionElement(org.w3c.dom.Element,org.springframework.beans.factory.config.BeanDefinition)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isBeanNameInUse(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean containsLocalBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: boolean isFactoryBean(java.lang.String)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultSingletonBeanRegistry: java.lang.Object getSingleton(java.lang.String,boolean)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectFactory: java.lang.Object getObject()> 
<org.springframework.beans.factory.support.DefaultListableBeanFactory: java.lang.Object doResolveDependency(org.springframework.beans.factory.config.DependencyDescriptor,java.lang.Class,java.lang.String,java.util.Set,org.springframework.beans.TypeConverter)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: org.springframework.beans.TypeConverter getTypeConverter()> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.factory.support.AbstractBeanFactory: void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.beans.support.ResourceEditorRegistrar: void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry)> Repositories\org\springframework\spring-beans\4.3.18.RELEASE\spring-beans-4.3.18.RELEASE.jar
<org.springframework.core.io.ResourceEditor: void (org.springframework.core.io.ResourceLoader)> 

Suggested fixing solutions

  1. Upgrade dependency org.springframework:spring-web from 3.0.3.RELEASE to 3.1.0.RELEASE. Because the newer version org.springframework:spring-web:3.1.0.RELEASE does not invoke the above missing methods, such upgrading can solve the problem.
  2. Declare a direct dependency org.springframework:spring-core:3.0.3.RELEASE in the pom file of onebusaway-application-modules\onebusaway-quickstart\onebusaway-quickstart-webapp, to override org.springframework:spring-core's managed version.

Please let me know which solution do you prefer? I can submit a PR to fix it.

Thank you very much for your attention.
Best regards,

Dependency tree----



[INFO] org.onebusaway:onebusaway-quickstart-webapp:jar:2.0.1-SNAPSHOT
[INFO] +- org.onebusaway:onebusaway-quickstart-common:jar:2.0.1-SNAPSHOT:provided
[INFO] +- commons-cli:commons-cli:jar:1.2:provided
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided
[INFO] \- org.springframework:spring-web:jar:3.0.3.RELEASE:provided
[INFO] +- aopalliance:aopalliance:jar:1.0:provided
[INFO] +- org.springframework:spring-beans:jar:4.3.18.RELEASE:provided (version managed from 3.0.3.RELEASE)
[INFO] | \- (org.springframework:spring-core:jar:4.3.18.RELEASE:provided - version managed from 3.0.3.RELEASE; omitted for duplicate)
[INFO] +- org.springframework:spring-context:jar:4.3.18.RELEASE:provided (version managed from 3.0.3.RELEASE)
[INFO] | +- org.springframework:spring-aop:jar:4.3.18.RELEASE:provided
[INFO] | | +- (org.springframework:spring-beans:jar:4.3.18.RELEASE:provided - version managed from 3.0.3.RELEASE; omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:4.3.18.RELEASE:provided - omitted for duplicate)
[INFO] | +- (org.springframework:spring-beans:jar:4.3.18.RELEASE:provided - version managed from 3.0.3.RELEASE; omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:4.3.18.RELEASE:provided - omitted for duplicate)
[INFO] | \- org.springframework:spring-expression:jar:4.3.18.RELEASE:provided
[INFO] | \- (org.springframework:spring-core:jar:4.3.18.RELEASE:provided - omitted for duplicate)
[INFO] \- org.springframework:spring-core:jar:4.3.18.RELEASE:provided
[INFO] \- commons-logging:commons-logging:jar:1.2:provided
@sheldonabrown
Copy link
Member

Independent of your specific questions, let's step back a minute. The onebusaway-quickstart modules have fallen significantly out-of-date, and are somewhat deprecated based on the onebusaway-admin-webapp and a separate effort to dockerize OneBusAway.

So let me ask this:

  1. Do you have a use case that demands onebusaway-quickstart?
  2. If you made the above changes, would onebusaway-quickstart work?

I'm happy to support you if so -- I'm just trying to understand the use-case behind this.

Thanks!

Sheldon

@Bing-ok
Copy link
Author

Bing-ok commented Aug 27, 2020

Onebusaway-quickstart worked when I made the above changes.

@sheldonabrown
Copy link
Member

Define worked....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants