xiangzz159 opened a new issue, #10740:
URL: https://github.com/apache/dubbo/issues/10740

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.0.10
   * Operating System version: CentOS Linux release 7.9.2009
   * Java version: 1.8.0_151-b12
   
   ### Steps to reproduce this issue
   
   使用kill -15 pid的时候应用优雅关闭,错误日志中输出如下错误
   ```
   [2022-10-11T17:04:38.048+08:00] [WARN] [DubboShutdownHook-33] 
[org.apache.dubbo.registry.support.RegistryManager] 
[PRO-xsyx-item-library-base-core-9-124] [10.32.9.124] [] [] [] [] 
[RegistryManager.java,107,org.apache.dubbo.registry.support.RegistryManager,destroyAll]
 [ [DUBBO] java.lang.NoClassDefFoundError: 
org/apache/dubbo/common/function/ThrowableAction, dubbo version: 3.0.10, 
current host: 10.32.9.124] ## ' java.lang.BootstrapMethodError: 
java.lang.NoClassDefFoundError: org/apache/dubbo/common/function/ThrowableAction
           at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.destroy(ServiceDiscoveryRegistry.java:284)
           at 
org.apache.dubbo.registry.support.RegistryManager.destroyAll(RegistryManager.java:105)
           at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.destroyRegistries(DefaultApplicationDeployer.java:1019)
           at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.preDestroy(DefaultApplicationDeployer.java:767)
           at 
org.apache.dubbo.rpc.model.ApplicationModel.onDestroy(ApplicationModel.java:244)
           at org.apache.dubbo.rpc.model.ScopeModel.destroy(ScopeModel.java:110)
           at 
org.apache.dubbo.config.DubboShutdownHook.doDestroy(DubboShutdownHook.java:78)
           at 
org.apache.dubbo.config.DubboShutdownHook.run(DubboShutdownHook.java:73)
   Caused by: java.lang.NoClassDefFoundError: 
org/apache/dubbo/common/function/ThrowableAction
           ... 8 more
   Caused by: java.lang.ClassNotFoundException: 
org.apache.dubbo.common.function.ThrowableAction
           at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
           at 
org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           ... 8 more
   ```
   
   应用启动参数为:
   ```
   java -DappName=demo -server -Xmx5144M -Xms5144M -Xmn2048M -Xss1024k 
-XX:+DisableExplicitGC -XX:+ScavengeBeforeFullGC -XX:-CMSParallelRemarkEnabled 
-XX:-CMSClassUnloadingEnabled -XX:+ExplicitGCInvokesConcurrent 
-XX:+PrintGCDetails -XX:+PrintGCDateStamps 
-XX:+PrintGCApplicationConcurrentTime -XX:+PrintHeapAtGC 
-XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:+UseG1GC 
-Dapp.env=prod -Ddk.class.preload.timeout=140 -Ddk.logging.path=/home 
-Dfastjson.parser.safeMode=true -jar demo.jar
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


-- 
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