guohao opened a new issue #8706:
URL: https://github.com/apache/dubbo/issues/8706


   - [ ] 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-SNAPSHOT
   * Operating System version: macos
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   1. Start a consumer 
   2. Close the consumer
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   No exception
   
   ### Actual Result
   
   What actually happens?
   
   If there is an exception, please attach the exception trace:
   
   ```
   java.lang.IllegalArgumentException: Current ServiceModel is not a 
ProviderModel
        at 
org.apache.dubbo.rpc.model.ServiceModel.getServiceConfig(ServiceModel.java:106)
        at org.apache.dubbo.rpc.model.ModuleModel.destroy(ModuleModel.java:68)
        at 
org.apache.dubbo.rpc.model.ApplicationModel.destroy(ApplicationModel.java:186)
        at 
org.apache.dubbo.rpc.model.ApplicationModel.removeModule(ApplicationModel.java:258)
        at org.apache.dubbo.rpc.model.ModuleModel.destroy(ModuleModel.java:84)
        at 
org.apache.dubbo.rpc.model.ApplicationModel.destroy(ApplicationModel.java:186)
        at 
org.apache.dubbo.config.bootstrap.DubboBootstrap.destroy(DubboBootstrap.java:1669)
        at 
org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:46)
        at 
org.apache.dubbo.common.lang.ShutdownHookCallbacks.lambda$callback$0(ShutdownHookCallbacks.java:70)
        at java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.apache.dubbo.common.lang.ShutdownHookCallbacks.callback(ShutdownHookCallbacks.java:70)
        at 
org.apache.dubbo.config.DubboShutdownHook.callback(DubboShutdownHook.java:85)
        at 
org.apache.dubbo.config.DubboShutdownHook.run(DubboShutdownHook.java:72)
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to