You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/05/06 03:31:53 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 opened a new issue, #2821: Duplicate schemaId validation can be more strict

yhs0092 opened a new issue, #2821:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2821

   Hi, we're using Java-Chassis 1.3.7 and find that if some controllers are using the same `schemaId`(carried by annotation `@RestSchema`), Java-Chassis does not throw any Exception at the boot up stage. And there may be some strange and obscure problem caused by this problem at the runtime stage.
   
   I guess we can put certain validation logic in the boot up stage, to point out such problem explicitly.


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


Re: [I] Duplicate schemaId validation can be more strict [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 closed issue #2821: Duplicate schemaId validation can be more strict
URL: https://github.com/apache/servicecomb-java-chassis/issues/2821


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


Re: [I] Duplicate schemaId validation can be more strict [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #2821:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2821#issuecomment-1786401370

   I tested 2.8.x and 3.0.0, will throw exception
   
   ```
   Exception in thread "main" java.lang.IllegalStateException: ServiceComb init failed.
   	at org.apache.servicecomb.core.SCBEngine.run(SCBEngine.java:335)
   	at org.apache.servicecomb.core.SCBApplicationListener.onApplicationEvent(SCBApplicationListener.java:89)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169)
   	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143)
   	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:421)
   	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:378)
   	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:941)
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:586)
   	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
   	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:95)
   	at org.apache.servicecomb.foundation.common.utils.BeanUtils.init(BeanUtils.java:65)
   	at org.apache.servicecomb.foundation.common.utils.BeanUtils.init(BeanUtils.java:56)
   	at org.apache.servicecomb.demo.springmvc.SpringmvcServer.main(SpringmvcServer.java:26)
   Caused by: java.lang.IllegalStateException: failed to register SchemaMeta caused by duplicated schemaId, appId=springmvctest, microserviceName=springmvc, schemaId=RetrySchema.
   	at org.apache.servicecomb.core.definition.MicroserviceMeta.registerSchemaMeta(MicroserviceMeta.java:125)
   	at org.apache.servicecomb.core.provider.producer.ProducerProviderManager.registerSchema(ProducerProviderManager.java:106)
   	at org.apache.servicecomb.core.provider.producer.ProducerProviderManager.registerProducerMetas(ProducerProviderManager.java:87)
   	at org.apache.servicecomb.core.provider.producer.ProducerProviderManager.init(ProducerProviderManager.java:73)
   	at org.apache.servicecomb.core.SCBEngine.doRun(SCBEngine.java:375)
   	at org.apache.servicecomb.core.SCBEngine.run(SCBEngine.java:322)
   	... 13 more
   ```
   
   Will not fix in 1.3.x any more, please upgrade. 
   


-- 
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: commits-unsubscribe@servicecomb.apache.org

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