You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/11 07:38:35 UTC

[GitHub] [dubbo] YsoulM opened a new issue #9017: 启动报warn日志,项目启动正常。

YsoulM opened a new issue #9017:
URL: https://github.com/apache/dubbo/issues/9017


   - [ * ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ * ] 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: 3.0.3
   * Operating System version: centos 7.5
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   dubbo 3.0.3 启动项目时报warn<error state, exporter should not be null>,详细日志见下堆栈。
   
   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:
   
   ```
   error state, exporter should not be null
   java.lang.IllegalStateException: error state, exporter should not be null
     at org.apache.dubbo.registry.integration.RegistryProtocol$OverrideListener.doOverrideIfNecessary(RegistryProtocol.java:731)
     at org.apache.dubbo.registry.integration.RegistryProtocol$ProviderConfigurationListener.lambda$notifyOverrides$0(RegistryProtocol.java:824)
     at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
     at org.apache.dubbo.registry.integration.RegistryProtocol$ProviderConfigurationListener.notifyOverrides(RegistryProtocol.java:824)
     at org.apache.dubbo.registry.integration.AbstractConfiguratorListener.process(AbstractConfiguratorListener.java:100)
     at org.apache.dubbo.configcenter.support.zookeeper.CacheListener.lambda$dataChanged$1(CacheListener.java:107)
     at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891)
     at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404)
     at org.apache.dubbo.configcenter.support.zookeeper.CacheListener.dataChanged(CacheListener.java:107)
     at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient$NodeCacheListenerImpl.nodeChanged(CuratorZookeeperClient.java:345)
     at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:326)
     at org.apache.curator.framework.recipes.cache.NodeCache$4.apply(NodeCache.java:320)
     at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:100)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
     at java.lang.Thread.run(Thread.java:748)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] haoyann commented on issue #9017: 启动报warn日志,项目启动正常。

Posted by GitBox <gi...@apache.org>.
haoyann commented on issue #9017:
URL: https://github.com/apache/dubbo/issues/9017#issuecomment-943238375


   这是因为这行代码抛出的异常。
   https://github.com/apache/dubbo/blob/54b2096f2a3b2ccbb55409c4073324b4dc8753c7/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java#L740-L743
   这是因为你在配置中心添加了一些配置,在服务导出的时候会监听配置中心的数据,然后触发了这段代码,监听触发的时机在往 `bounds` put 数据之前也就是这段代码`final ExporterChangeableWrapper<T> exporter = doLocalExport(originInvoker, providerUrl);`。
   其实这并不影响配置的重载,因为添加配置中心监听的时候,会获取配置中心的内容然后刷新 URL。
   这里是否可以只打印 WARN,不抛出`IllegalStateException`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] YsoulM edited a comment on issue #9017: 启动报warn日志,项目启动正常。

Posted by GitBox <gi...@apache.org>.
YsoulM edited a comment on issue #9017:
URL: https://github.com/apache/dubbo/issues/9017#issuecomment-940590726


   是的,这个项目是一个provider。
   
   ------
   Yes, this project is a provider。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] YsoulM commented on issue #9017: 启动报warn日志,项目启动正常。

Posted by GitBox <gi...@apache.org>.
YsoulM commented on issue #9017:
URL: https://github.com/apache/dubbo/issues/9017#issuecomment-940590726


   是的,这个项目是一个provider。
   --
   Yes, this project is a provider。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9017: 启动报warn日志,项目启动正常。

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9017:
URL: https://github.com/apache/dubbo/issues/9017#issuecomment-939828690


   Is there an exposed service?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org