You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "meixinbin (GitHub)" <gi...@apache.org> on 2019/01/20 08:11:36 UTC
[GitHub] [incubator-dubbo] meixinbin opened issue #3279: use dubbo in
spring boot junit test cannot get service
### Environment
* Dubbo version: 2.6.5
* Operating System version: mac os
* Java version: 1.8
### Steps to reproduce this issue
1. use dubbo in spring boot 2.0.4 junit test cannot get service
### Expected Result
通过@Reference 注解注入服务调用方法
### Actual Result
无法注入相应的服务,获取的bean是null
```
Method threw 'java.lang.NullPointerException' exception. Cannot evaluate com.sun.proxy.$Proxy158.toString()
<img width="923" alt="default" src="https://user-images.githubusercontent.com/16658917/51436694-edcc3500-1ccc-11e9-89cb-2c44ba26c679.png">
<img width="925" alt="default" src="https://user-images.githubusercontent.com/16658917/51436676-af367a80-1ccc-11e9-921a-62e08dc5b2b5.png">
```
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] beiwei30 commented on issue #3279: use
dubbo in spring boot junit test cannot get service
Posted by "beiwei30 (GitHub)" <gi...@apache.org>.
not a bug.
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] beiwei30 closed issue #3279: use dubbo in
spring boot junit test cannot get service
Posted by "beiwei30 (GitHub)" <gi...@apache.org>.
[ issue closed by beiwei30 ]
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] Bricks-Man commented on issue #3279: use
dubbo in spring boot junit test cannot get service
Posted by "Bricks-Man (GitHub)" <gi...@apache.org>.
Plz pull up a demo project to git.
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] meixinbin commented on issue #3279: use
dubbo in spring boot junit test cannot get service
Posted by "meixinbin (GitHub)" <gi...@apache.org>.
这确实是一个bug,同样的代码,我用dubbo2.5版本是没有问题的
![default](https://user-images.githubusercontent.com/16658917/52160275-68457d80-26ed-11e9-9ff5-2b4dfd6d451b.png)
![default](https://user-images.githubusercontent.com/16658917/52160280-7e533e00-26ed-11e9-8050-ad65f9a95dd1.png)
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] mercyblitz commented on issue #3279: use
dubbo in spring boot junit test cannot get service
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Please DO NOT evaluate DEBUG object in IDEA with `toString()` review
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo] Bricks-Man commented on issue #3279: use
dubbo in spring boot junit test cannot get service
Posted by "Bricks-Man (GitHub)" <gi...@apache.org>.
Plz pull up a demo project to git.
PS: Your img can't preview.
[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3279 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org