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

2. org.apache.dubbo.config.spring.util.DubboAnnotationUtils#convertParameters

3.org.apache.dubbo.config.AbstractConfig#invokeSetParameters(java.util.Map<java.lang.String,java.lang.String>,
java.lang.Object)

4.org.apache.dubbo.config.AbstractConfig#refresh

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