[GitHub] [servicecomb-java-chassis] johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误

2019-04-24 Thread GitBox
johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-486088720
 
 
   thanks @yhs0092  
   I solved the problem of static variables, by expanding the Juint.
   Use different classloader for every test case.
   


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [servicecomb-java-chassis] johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误

2019-04-19 Thread GitBox
johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484801596
 
 
   I know the reason. 
   
   I wanted to use different microservice.yaml in different  test case.
   so I set the "servicecomb.configurationSource.defaultFileName" to different 
name in different test case.
   
   so the microservice.yaml in java-chassis-core-1.xx.xx.jar is missed,  which 
contains "servicecomb.microserviceVersionFactory",  so it use the 
"DefaultMicroserviceVersionFactory".
   
   我找到原因了, 我是想在不同的测试用例里使用不同的microservice.yaml , 
所以我想在每次测试用例之前改下"servicecomb.configurationSource.defaultFileName”  以达到目的。
   
   但是因为修改"servicecomb.configurationSource.defaultFileName,导致 
java-chassis-core-1.xx.xx.jar包里的 microservice.yaml没有加载。 
而这个microservice.yaml包含servicecomb.microserviceVersionFactory=org.apache.servicecomb.core.definition.PrivateMicroserviceVersionMetaFactory的配置。
   
   既然microservice.yaml的名字可以换,servicecomb包里又预置microservice.yaml好像,是不是有点不太合适?
   
   此外我想在不同的单元测试用例里使用不同的微服务配置, 官方有什么好的建议呢?
   
   
   
   
   
   
   
   
   
   
   


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [servicecomb-java-chassis] johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误

2019-04-19 Thread GitBox
johnyannj commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484791295
 
 
   @yhs0092 我的目的是想进程内调用, 自己调用自己来实现单元测试
   我配置了
   System.setProperty("local.registry.file", "notExistJustForceLocal");
   也报相同的错误。


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services