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

[GitHub] [dubbo] dreamquster opened issue #5057: Rest protocol can not get implement class under spring jdk proxy classx

- [ x ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ x ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.2
* Operating System version: mac
* Java version: 1.8

### Steps to reproduce this issue

1. Define a interface, put @Path annotation on the implement class
``` java
public interface PureService {
    String hello(String name);
}

// implement class
@Component
@Service(protocol = {"dubbo","rest"}, version = "1.0.0", group = "test")
@Consumes({MediaType.APPLICATION_JSON})
@Produces({MediaType.APPLICATION_JSON})
@Path("/pure-service")
public class PureServiceImpl implements PureService{

    @GET
    @Path("hello")
    @Override
    public String hello(String name) {
        return "hello " + name;
    }
}
```
2.  It report exception when starting application
![16_47_11__09_12_2019](https://user-images.githubusercontent.com/4962716/64769066-33e84880-d57d-11e9-9cd1-beb0d7c90b74.jpg)
3.  In RestProtocol class, it can not real implement class behind proxy.
![image](https://user-images.githubusercontent.com/4962716/64769400-d274a980-d57d-11e9-89c5-0109efc2c7b6.png)



Pls. provide [GitHub address] to reproduce this issue.

### Expected Result

What do you expected from the above steps?
It can normally start when putting @Path on the implement class
### Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

```
Just put your stack trace here!
```


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