kylixs opened a new pull request #8989:
URL: https://github.com/apache/dubbo/pull/8989


   ## What is the purpose of the change
   
   Fix duplicated `ApplicationConfig` of  
`testSystemPropertyOverrideReferenceConfig`
   
   ## Unit Tests Logs
   ```
   Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.05 
s <<< FAILURE! - in org.apache.dubbo.config.spring.ShutdownHookTest
   Error:  testDisableShutdownHook  Time elapsed: 0.05 s  <<< ERROR!
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dubboConfigBeanInitializer': Invocation of init method failed; 
nested exception is org.springframework.beans.FatalBeanException: 
Initialization dubbo config beans failed; nested exception is 
java.lang.IllegalStateException: Duplicate Configs found for ApplicationConfig, 
only one unique ApplicationConfig is allowed for one application. previous: 
<dubbo:application enableFileCache="false" 
name="testSystemPropertyOverrideReferenceConfig" protocol="dubbo" />, later: 
<dubbo:application enableFileCache="false" name="demo-provider" 
id="demo-provider" protocol="dubbo" />. According to config mode [STRICT], 
please remove redundant configs and keep only one.
        at 
org.apache.dubbo.config.spring.ShutdownHookTest.testDisableShutdownHook(ShutdownHookTest.java:40)
   Caused by: org.springframework.beans.FatalBeanException: Initialization 
dubbo config beans failed; nested exception is java.lang.IllegalStateException: 
Duplicate Configs found for ApplicationConfig, only one unique 
ApplicationConfig is allowed for one application. previous: <dubbo:application 
enableFileCache="false" name="testSystemPropertyOverrideReferenceConfig" 
protocol="dubbo" />, later: <dubbo:application enableFileCache="false" 
name="demo-provider" id="demo-provider" protocol="dubbo" />. According to 
config mode [STRICT], please remove redundant configs and keep only one.
        at 
org.apache.dubbo.config.spring.ShutdownHookTest.testDisableShutdownHook(ShutdownHookTest.java:40)
   Caused by: java.lang.IllegalStateException: Duplicate Configs found for 
ApplicationConfig, only one unique ApplicationConfig is allowed for one 
application. previous: <dubbo:application enableFileCache="false" 
name="testSystemPropertyOverrideReferenceConfig" protocol="dubbo" />, later: 
<dubbo:application enableFileCache="false" name="demo-provider" 
id="demo-provider" protocol="dubbo" />. According to config mode [STRICT], 
please remove redundant configs and keep only one.
        at 
org.apache.dubbo.config.spring.ShutdownHookTest.testDisableShutdownHook(ShutdownHookTest.java:40)
   ```
   
   
   


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