Dubbo: 升级2.6.5后启动报找不到类异常 com.alibaba.spring.util.PropertySourcesUtils

Created on 21 Nov 2018  ·  8Comments  ·  Source: apache/dubbo

  • [x] I have searched the issues of this repository and believe that this is not a duplicate.
  • [x] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.6.5
  • Operating System version: win10
  • Java version: 1.8

Steps to reproduce this issue

使用dubbo-spring-boot-starter,之前是用 dubbo-spring-boot-starter 自动引入的 2.6.2,没问题(除了QOS端口修改不生效),后面听说 2.6.5解决了QOS端口修改不了的问题.
然后通过单独修改 dubbo 版本号的方式升级到了 2.6.5,其他什么都没动.启动项目后报错: com.alibaba.spring.util.PropertySourcesUtils 找不到.
对比了报错部分的源码, 2.6.2 使用的是 com.alibaba.dubbo.config.spring.util.PropertySourcesUtils,该类就在dubbo的jar包里
而 2.6.5 用的是 com.alibaba.spring.util.PropertySourcesUtils
实在找不到 2.6.5 使用的 PropertySourcesUtils 在哪个包......

Most helpful comment

If you are in a hurry, you can add dependency firstly:


com.alibaba.spring
spring-context-support
1.0.2

I will check the cause of this issue soon later.

zhangjr notifications@github.com 于2018年11月23日周五 下午1:22写道:

遇到同样的问题


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-dubbo/issues/2812#issuecomment-441158338,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ
.

--

Best Regard!
cvitory

All 8 comments

遇到同样的问题

If you are in a hurry, you can add dependency firstly:


com.alibaba.spring
spring-context-support
1.0.2

I will check the cause of this issue soon later.

zhangjr notifications@github.com 于2018年11月23日周五 下午1:22写道:

遇到同样的问题


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-dubbo/issues/2812#issuecomment-441158338,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ
.

--

Best Regard!
cvitory

If you are in a hurry, you can add dependency firstly: com.alibaba.spring spring-context-support 1.0.2 I will check the cause of this issue soon later. zhangjr notifications@github.com 于2018年11月23日周五 下午1:22写道:

遇到同样的问题 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2812 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ .
-- Best Regard! cvitory

灰常感谢~~~

I also want to know which version you used before you raised your version.
I think this is very important for us.

邪影oO notifications@github.com 于2018年11月23日周五 下午3:01写道:

Closed #2812 https://github.com/apache/incubator-dubbo/issues/2812.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-dubbo/issues/2812#event-1983522060,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD5mbLka0vAFcq4hBbQFbtMymi432u-Kks5ux51OgaJpZM4Ys_qZ
.

--

Best Regard!
cvitory

I also want to know which version you used before you raised your version. I think this is very important for us.

之前使用的 2.6.2 因为听说 2.6.5 修复了 QOS 端口无法修改的问题,才升级试试的

If you are in a hurry, you can add dependency firstly: com.alibaba.spring spring-context-support 1.0.2 I will check the cause of this issue soon later. zhangjr notifications@github.com 于2018年11月23日周五 下午1:22写道:

遇到同样的问题 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2812 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ .
-- Best Regard! cvitory

按照你的方式,问题已解决,谢谢

If you are in a hurry, you can add dependency firstly: com.alibaba.spring spring-context-support 1.0.2 I will check the cause of this issue soon later. zhangjr [email protected] 于2018年11月23日周五 下午1:22写道:

遇到同样的问题 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2812 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ .
-- Best Regard! cvitory

按照你的方式,问题已解决,谢谢

PropertySourcesUtils这个类在com.alibaba.spring.util包下,
dubbp-spring-boot-autoconfiguration-starter的RelaxedDubboConfigBinder中
import static com.alibaba.dubbo.config.spring.util.PropertySourcesUtils.getSubProperties;
这个类导入的路径对不上,还是启动不起来
dubbo版本已升级到2.6.5 spring-context-support已经导入版本1.0.2

dubbo版本已升级到2.6.5 spring-context-support已经导入版本1.0.2
同样找不到

If you are in a hurry, you can add dependency firstly: com.alibaba.spring spring-context-support 1.0.2 I will check the cause of this issue soon later. zhangjr [email protected] 于2018年11月23日周五 下午1:22写道:

遇到同样的问题 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2812 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AD5mbKLhAfzI6PhVDRsM5A6CG8azUngXks5ux4YqgaJpZM4Ys_qZ .
-- Best Regard! cvitory

按照你的方式,问题已解决,谢谢

PropertySourcesUtils这个类在com.alibaba.spring.util包下,
dubbp-spring-boot-autoconfiguration-starter的RelaxedDubboConfigBinder中
import static com.alibaba.dubbo.config.spring.util.PropertySourcesUtils.getSubProperties;
这个类导入的路径对不上,还是启动不起来
dubbo版本已升级到2.6.5 spring-context-support已经导入版本1.0.2

同样找不到

Was this page helpful?
0 / 5 - 0 ratings