You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ujjboy (GitHub)" <gi...@apache.org> on 2019/02/25 07:23:18 UTC

[GitHub] [incubator-dubbo] ujjboy opened issue #3556: NPE when package of interface is empty.

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

### Environment

* Dubbo version: 2.7.0

### Steps to reproduce this issue

1. Interface without package.

![image](https://user-images.githubusercontent.com/1424920/53320488-ca6e5880-3910-11e9-9493-e074ff1f91a7.png)

2. Export service.
```java
serviceConfig.setInterface(HelloService.class.getName());
serviceConfig.setRef(new HelloServiceImpl());
```

### Expected Result

Export service.

### Actual Result

Catch NPE when export service.

```
java.lang.NullPointerException
	at com.alibaba.dubbo.common.Version.getVersion(Version.java:127)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:440)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:358)
	at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:317)
```


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


[GitHub] [incubator-dubbo] tswstarplanet commented on issue #3556: NPE when package of interface is empty.

Posted by "tswstarplanet (GitHub)" <gi...@apache.org>.
Does the picture have problems ? The interface is in package "com".

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


[GitHub] [incubator-dubbo] ralf0131 closed issue #3556: NPE when package of interface is empty.

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

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