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

2019-04-19 Thread GitBox
yhs0092 commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484809405
 
 
   不要用`servicecomb.configurationSource.defaultFileName`修改配置文件的名字,改为在System 
Property里设置`servicecomb.configurationSource.additionalUrls`,追加配置文件覆盖默认配置行不行呢?
   
相关逻辑的位置在`org.apache.servicecomb.config.archaius.sources.MicroserviceConfigLoader#loadAdditionalConfig`里


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] yhs0092 commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误

2019-04-19 Thread GitBox
yhs0092 commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484794884
 
 
   在服务的启动日志里搜索 `microserviceVersionFactory is`,能搜到什么内容吗?
   如果找到的内容不是`microserviceVersionFactory is 
org.apache.servicecomb.core.definition.PrivateMicroserviceVersionMetaFactory.` 
这样的,那么在日志里搜索一下`create local 
config`关键字,应该能找到类似这样的内容,它展示了ServiceComb-Java-Chassis启动时加载了哪些配置文件
   ```
   [2019-04-19 15:38:38,467][INFO][main][]create local config: 
org.apache.servicecomb.config.ConfigUtil.createLocalConfig(ConfigUtil.java:118)
   [2019-04-19 15:38:38,467][INFO][main][] 
jar:file:/D:/.m2/repo/org/apache/servicecomb/java-chassis-core/1.3.0-SNAPSHOT/java-chassis-core-1.3.0-SNAPSHOT.jar!/microservice.yaml.
 org.apache.servicecomb.config.ConfigUtil.createLocalConfig(ConfigUtil.java:120)
   [2019-04-19 15:38:38,468][INFO][main][] 
jar:file:/D:/.m2/repo/org/apache/servicecomb/solution-basic/1.3.0-SNAPSHOT/solution-basic-1.3.0-SNAPSHOT.jar!/microservice.yaml.
 org.apache.servicecomb.config.ConfigUtil.createLocalConfig(ConfigUtil.java:120)
   [2019-04-19 15:38:38,468][INFO][main][] 
file:/D:/workspace/IDEA/yhs0092/JavaChassisFaultSimulator/fault-simulator-provider/target/classes/microservice.yaml.
 org.apache.servicecomb.config.ConfigUtil.createLocalConfig(ConfigUtil.java:120)
   [2019-04-19 15:38:38,468][INFO][main][] 
file:/D:/workspace/IDEA/yhs0092/JavaChassisFaultSimulator/fault-simulator-common/target/classes/microservice.yaml.
 org.apache.servicecomb.config.ConfigUtil.createLocalConfig(ConfigUtil.java:120)
   ```
   看看你搜到了几份配置文件呢?


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] yhs0092 commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误

2019-04-19 Thread GitBox
yhs0092 commented on issue #1186: 使用本地注册中心,自己调用自己,有一个类型转换的错误
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1186#issuecomment-484789519
 
 
   你好,建议参照文档 
[本地开发和测试](https://docs.servicecomb.io/java-chassis/zh_CN/general-development/local-develop-test.html)
 中 “跨进程调用” 的描述,配置一下再试试看?


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