zrlw commented on PR #15754:
URL: https://github.com/apache/dubbo/pull/15754#issuecomment-3505894307

   This pr doesn't fix https://github.com/apache/dubbo/issues/15747 since 
```ServiceLoader.iterator()``` internally called ```hasNext``` method many 
times.
   <img width="1845" height="717" alt="2cf10ddd2acc094f4c1590a981219c8" 
src="https://github.com/user-attachments/assets/ea1f05d0-7f71-4fc8-851a-2e5f9e9997f5";
 />
   
   ```
   Caused by: java.lang.NoClassDefFoundError: com/alibaba/fastjson/JSONException
        at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
        at 
java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:2985)
        at java.base/java.lang.Class.getConstructor0(Class.java:3180)
        at java.base/java.lang.Class.getConstructor(Class.java:2199)
        at 
java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:623)
        at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1111)
        at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1142)
        at java.base/java.util.ServiceLoader$1.hasNext(ServiceLoader.java:1164)
        at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1246)
        at 
org.apache.dubbo.common.utils.JsonUtils.loadExtensions(JsonUtils.java:81)
   ```
   see details at 
https://github.com/apache/dubbo/actions/runs/19184848921/job/54849907702


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