You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "daiqun (GitHub)" <gi...@apache.org> on 2019/01/17 09:43:43 UTC

[GitHub] [incubator-dubbo-ops] daiqun opened issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

#### 启动错误如下图所示

#### 根本原因:com.google.guava 包版本不兼容,当前系统中为24.0-jre版本,亲测换为27.0.1-jre有效
[
![image](https://user-images.githubusercontent.com/27068235/51309268-f7f8f400-1a7e-11e9-838c-864c1cc4b2a7.png)
](url)

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
> 依赖关系: dubbo-admin-backend --> spring-boot-starter-test(test scope) --> assertj-core(compile scope) --> guava 24.0-jre(test scope) 所以这个版本的guava是传不进来的,你打个maven dependency看一下

抱歉,找错版本了,从打印信息来看应该是com.google.guava:guava:jar:16.0.1
[
![image](https://user-images.githubusercontent.com/27068235/51325008-00fdbb80-1aa7-11e9-93a9-0ba8ee46f848.png)
](url)
[
![image](https://user-images.githubusercontent.com/27068235/51325151-41f5d000-1aa7-11e9-94ca-3a16468753b0.png)
](url)

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] nzomkxia commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "nzomkxia (GitHub)" <gi...@apache.org>.
已修复,下午提交到其他分支了,你更新代码试一下

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
> 已修复,下午提交到其他分支了,你更新代码试一下

ok,启动成功

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] nzomkxia commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "nzomkxia (GitHub)" <gi...@apache.org>.
24.0-jre的guava是哪里依赖进来的?ops本身并不依赖这个版本

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
> 24.0-jre的guava是哪里依赖进来的?ops本身并不依赖这个版本

只是版本对不上的问题,第一张图中append方法在24.0-jre中不存在
[
![image](https://user-images.githubusercontent.com/27068235/51309848-45299580-1a80-11e9-80e7-44256da7bbed.png)
](url)

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun closed issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
[ issue closed by daiqun ]

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo-ops] nzomkxia commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "nzomkxia (GitHub)" <gi...@apache.org>.
依赖关系: dubbo-admin-backend --> spring-boot-starter-test(test scope)  --> assertj-core(compile scope) --> guava 24.0-jre(test scope) 所以这个版本的guava是传不进来的,你打个maven dependency看一下

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
> 如果不需要guava,排除掉吧 daiqun <no...@github.com> 于2019年1月17日周四 下午5:50写道:
> […](#)
> 24.0-jre的guava是哪里依赖进来的?ops本身并不依赖这个版本 只是版本对不上的问题,第一张图中append方法在24.0-jre中不存在 [image: image] <http://url> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <[#252 (comment)](https://github.com/apache/incubator-dubbo-ops/issues/252#issuecomment-455109679)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAye6DvItLp3pwDMOkoMhtv3lEybK-_mks5vEEdxgaJpZM4aEz1g> .

请看第一张截图,这份代码是从dev分支上直接download下来的,并没有修改代码,启动直接报错。

报错的是 `ApiListingScanner.java`类中第117行,guava包中的FluentIterable类调用append方法导致的报错,ApiListingScanner在springfox-spring-web-2.9.2.jar中被用到。在dubbo-admin中配置的springfox-swagger2中用到了springfox-spring-web-2.9.2依赖,请看下图

[
![image](https://user-images.githubusercontent.com/27068235/51316337-575f0000-1a8f-11e9-99be-09b65a4ebc04.png)
](url)
[
![image](https://user-images.githubusercontent.com/27068235/51316376-6c3b9380-1a8f-11e9-9b40-46fa62e2e50c.png)
](url)

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] daiqun commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "daiqun (GitHub)" <gi...@apache.org>.
> 如果不需要guava,排除掉吧 daiqun <no...@github.com> 于2019年1月17日周四 下午5:50写道:
> […](#)
> 24.0-jre的guava是哪里依赖进来的?ops本身并不依赖这个版本 只是版本对不上的问题,第一张图中append方法在24.0-jre中不存在 [image: image] <http://url> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <[#252 (comment)](https://github.com/apache/incubator-dubbo-ops/issues/252#issuecomment-455109679)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAye6DvItLp3pwDMOkoMhtv3lEybK-_mks5vEEdxgaJpZM4aEz1g> .

请看第一张截图,这份代码是从dev分支上直接download下来的,并没有修改代码,启动直接报错。

报错的是 `ApiListingScanner.java`类中第117行,guava包中的FluentIterable类没有append方法导致的报错,ApiListingScanner在springfox-spring-web-2.9.2.jar中被用到。在dubbo-admin中配置的springfox-swagger2中用到了springfox-spring-web-2.9.2依赖,请看下图

[
![image](https://user-images.githubusercontent.com/27068235/51316337-575f0000-1a8f-11e9-99be-09b65a4ebc04.png)
](url)
[
![image](https://user-images.githubusercontent.com/27068235/51316376-6c3b9380-1a8f-11e9-9b40-46fa62e2e50c.png)
](url)

[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org

[GitHub] [incubator-dubbo-ops] lovepoem commented on issue #252: dubbo-admin-backend 2.7.0-SNAPSHOT 启动报错

Posted by "lovepoem (GitHub)" <gi...@apache.org>.
如果不需要guava,排除掉吧

daiqun <no...@github.com> 于2019年1月17日周四 下午5:50写道:

> 24.0-jre的guava是哪里依赖进来的?ops本身并不依赖这个版本
>
> 只是版本对不上的问题,第一张图中append方法在24.0-jre中不存在
>
> [image: image]
> <http://url>
>
> —
> 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-ops/issues/252#issuecomment-455109679>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAye6DvItLp3pwDMOkoMhtv3lEybK-_mks5vEEdxgaJpZM4aEz1g>
> .
>


[ Full content available at: https://github.com/apache/incubator-dubbo-ops/issues/252 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org