You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
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:
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:
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.
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
The text was updated successfully, but these errors were encountered:
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:
Do you have a use case that demands onebusaway-quickstart?
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.
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:
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:
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:
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:
Suggested fixing solutions
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----
The text was updated successfully, but these errors were encountered: