Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.1

Operating System version: win7

Java version: 1.8

Steps to reproduce this issue

在idea中右键run application

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

Expected Result

What do you expected from the above steps？

Actual Result

[08/05/19 21:39:04:471 CST] main WARN config.AbstractConfig: [DUBBO] There's no valid metadata config found, if you are using the simplified mode of registry url, please make sure you have a metadata address configured properly., dubbo version: , current host: 10.4.31.197

Exception in thread "main" java.lang.IllegalStateException: No such extension org.apache.dubbo.rpc.Protocol by name dubbo

at org.apache.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:517)

at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:524)

at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:348)

at org.apache.dubbo.config.ServiceConfig.findConfigedPorts(ServiceConfig.java:725)

at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:535)

at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:431)

at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:389)

at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:352)

at org.apache.dubbo.demo.provider.Application.main(Application.java:39)

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

Just put your stack trace here!

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4-release

Operating System version: windows 7

Java version: 1.8.0_101

Steps to reproduce this issue

1、运行org.apache.dubbo.demo.provider.Application

2、直接抛异常

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

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

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

[06/11/19 08:52:38:145 CST] main INFO logger.LoggerFactory: using logger: org.apache.dubbo.common.logger.log4j.Log4jLoggerAdapter
Exception in thread "main" java.lang.NullPointerException
at org.apache.dubbo.config.AbstractInterfaceConfig.lambda$null$7(AbstractInterfaceConfig.java:628)
at java.util.Optional.orElseGet(Optional.java:267)
at org.apache.dubbo.config.AbstractInterfaceConfig.lambda$useRegistryForConfigIfNecessary$8(AbstractInterfaceConfig.java:620)
at java.util.Optional.ifPresent(Optional.java:159)
at org.apache.dubbo.config.AbstractInterfaceConfig.useRegistryForConfigIfNecessary(AbstractInterfaceConfig.java:618)
at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:208)
at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:303)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:370)
at org.apache.dubbo.demo.provider.Application.main(Application.java:33)
[06/11/19 08:52:38:730 CST] DubboShutdownHook INFO config.DubboShutdownHook: [DUBBO] Run shutdown hook now., dubbo version: , current host: 172.17.32.176
[06/11/19 08:52:38:732 CST] DubboShutdownHook INFO support.AbstractRegistryFactory: [DUBBO] Close all registries [], dubbo version: , current host: 172.17.32.176