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

   version: <dubbo.version>3.3.0-beta.1</dubbo.version>
   
   ```
   Caused by: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class 
defined by interfaces [interface com.xxx.api.service.DubboSettingService, 
interface org.apache.dubbo.rpc.service.EchoService, interface 
org.apache.dubbo.rpc.service.Destroyable] not found. Generating proxy classes 
at runtime is not supported. Proxy classes need to be defined at image build 
time by specifying the list of interfaces that they implement. To define proxy 
classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> 
and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> 
options.
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:89)
        at 
org.graalvm.nativeimage.builder/com.oracle.svm.core.reflect.proxy.DynamicProxySupport.getProxyClass(DynamicProxySupport.java:171)
        at 
java.base@17.0.5/java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:47)
        at 
java.base@17.0.5/java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1037)
        at 
org.apache.dubbo.config.spring.ReferenceBean.generateFromJdk(ReferenceBean.java:396)
        at 
org.apache.dubbo.config.spring.ReferenceBean.createLazyProxy(ReferenceBean.java:362)
        at 
org.apache.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:206)
        at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:148)
        ... 17 common frames omitted
   
   ```
   
   if I add this setting to file proxy-config.json ,It can be resolved.
   
   ```
     {
       "interfaces": [
         "com.xxx.api.service.DubboSettingService",
         "org.apache.dubbo.rpc.service.EchoService",
         "org.apache.dubbo.rpc.service.Destroyable"
       ]
     }
   ```
   
   But too many api should be added.
   
   how to resolve?


-- 
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-unsubscr...@dubbo.apache.org.apache.org

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


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

Reply via email to