AlbumenJ commented on issue #12885:
URL: https://github.com/apache/dubbo/issues/12885#issuecomment-1680469829

   > > 
![image](https://user-images.githubusercontent.com/9292748/260370471-11953ea3-c248-45e8-805b-200df0adf421.png)
   > > 在具体获取的地方还有再检查一次 ClassLoader 的
   > 
   > 
某些情况下readObject是在子线程里边,如使用Caffeine缓存异步加载数据,子线程的ClassLoader和父线程的ClassLoader不一致 
![image](https://user-images.githubusercontent.com/13815910/260898846-ac9ac7a3-27ec-491b-b490-01aac8c90c15.png)
   > 
   > 我是在开启子线程时设置了父线程的ClassLoader解决了该问题,如下: 
![image](https://user-images.githubusercontent.com/13815910/260898968-24744a30-d15f-41c1-a806-07f8cfd9b2c5.png)
   
   按照双亲委派机制,子 classloader 应该可以加载到父 classloader 的类吧


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