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

   ### Environment
   
   *Dubbo version:apache dubbo 3.0.7-3.0.9
   
   ### Steps to reproduce this issue
   
   1.add jvm options: -Ddubbo.provider.parameters.keyA=valueB
   
   ### Expected Behavior
   Application started successfully && There is this KeyA parameter on the 
Dubbo provider interface URL
   
   ### Actual Behavior
   Application startup failed
   
   
   ```
   java.lang.IllegalStateException: Failed to override field value of config 
bean: <dubbo:service path="org.apache.dubbo.samples.api.GreetingService" 
version="1.0.0" deprecated="false" token="true" dynamic="true" 
id="ServiceBean:org.apache.dubbo.samples.api.GreetingService:1.0.0" 
ref="org.apache.dubbo.samples.impl.AnnotatedGreetingService@56ba8773" 
interface="org.apache.dubbo.samples.api.GreetingService" />
        at 
org.apache.dubbo.config.AbstractConfig.refresh(AbstractConfig.java:695)
        at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServiceInternal(DefaultModuleDeployer.java:320)
        at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.exportServices(DefaultModuleDeployer.java:313)
        at 
org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:145)
        at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
        at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
        at 
org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
        at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
        at 
org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
        at 
org.apache.dubbo.samples.ProviderBootstrap3.main(ProviderBootstrap3.java:33)
   Caused by: java.lang.UnsupportedOperationException
        at java.util.AbstractMap.put(AbstractMap.java:209)
        at java.util.AbstractMap.putAll(AbstractMap.java:281)
        at 
org.apache.dubbo.config.AbstractConfig.invokeSetParameters(AbstractConfig.java:814)
        at 
org.apache.dubbo.config.AbstractConfig.assignProperties(AbstractConfig.java:764)
        at 
org.apache.dubbo.config.AbstractConfig.refresh(AbstractConfig.java:688)
        ... 15 more
   ```
   
   ### Analysis
   
   1. 
org.apache.dubbo.config.spring.beans.factory.annotation.ServiceAnnotationPostProcessor#buildServiceBeanDefinition
   
![企业微信截图_16575438973280](https://user-images.githubusercontent.com/21294155/178268323-95527a93-d5ef-4b2a-b8c7-08e6a69aada0.png)
   
   2. org.apache.dubbo.config.spring.util.DubboAnnotationUtils#convertParameters
   
![企业微信截图_165754433836](https://user-images.githubusercontent.com/21294155/178269896-771a0035-bf36-46d6-a9cd-9f64551632eb.png)
   
   
3.org.apache.dubbo.config.AbstractConfig#invokeSetParameters(java.util.Map<java.lang.String,java.lang.String>,
 java.lang.Object)
   
![企业微信截图_16575446186913](https://user-images.githubusercontent.com/21294155/178270596-376ee575-7fb2-4389-9316-a22038f708da.png)
   
   4.org.apache.dubbo.config.AbstractConfig#refresh
   
![企业微信截图_1657544769224](https://user-images.githubusercontent.com/21294155/178271070-1d5f685e-a06f-4e5e-9801-c37723f5c93b.png)
   
    


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