HGD-coder commented on issue #15887:
URL: https://github.com/apache/dubbo/issues/15887#issuecomment-3689145424

   > > > try address should use apollo://
   > > 
   > > 
   > > I tried this before, it didn't 
work.`configCenter.setAddress("apollo://127.0.0.1:8080")`
   > 
   > Same error?
   
   Not same.Dubbo can't connect to config center in this condition.
   `[WARNING] 
   java.lang.IllegalStateException: java.lang.IllegalStateException: Failed to 
connect to config center, the config center is Apollo, the address is: 
http://127.0.0.1:8080
       at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.prepareEnvironment 
(DefaultApplicationDeployer.java:798)
       at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.startConfigCenter 
(DefaultApplicationDeployer.java:289)
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.initialize 
(DefaultApplicationDeployer.java:209)
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.start 
(DefaultApplicationDeployer.java:633)
       at org.apache.dubbo.config.bootstrap.DubboBootstrap.start 
(DubboBootstrap.java:227)
       at org.apache.dubbo.config.bootstrap.DubboBootstrap.start 
(DubboBootstrap.java:216)
       at org.example.client.ApolloJavaClient.main (ApolloJavaClient.java:33)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:566)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.executeMainMethod 
(AbstractExecJavaBase.java:402)
       at org.codehaus.mojo.exec.ExecJavaMojo.executeMainMethod 
(ExecJavaMojo.java:142)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.doExecClassLoader 
(AbstractExecJavaBase.java:377)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.lambda$execute$0 
(AbstractExecJavaBase.java:287)
       at java.lang.Thread.run (Thread.java:829)
   Caused by: java.lang.IllegalStateException: Failed to connect to config 
center, the config center is Apollo, the address is: http://127.0.0.1:8080
       at 
org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfiguration.<init> 
(ApolloDynamicConfiguration.java:114)
       at 
org.apache.dubbo.configcenter.support.apollo.ApolloDynamicConfigurationFactory.createDynamicConfiguration
 (ApolloDynamicConfigurationFactory.java:37)
       at 
org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.lambda$getDynamicConfiguration$0
 (AbstractDynamicConfigurationFactory.java:39)
       at java.util.concurrent.ConcurrentHashMap.computeIfAbsent 
(ConcurrentHashMap.java:1705)
       at org.apache.dubbo.common.utils.ConcurrentHashMapUtils.computeIfAbsent 
(ConcurrentHashMapUtils.java:42)
       at 
org.apache.dubbo.common.config.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration
 (AbstractDynamicConfigurationFactory.java:39)
       at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.getDynamicConfiguration
 (DefaultApplicationDeployer.java:848)
       at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.prepareEnvironment 
(DefaultApplicationDeployer.java:791)
       at 
org.apache.dubbo.config.deploy.DefaultApplicationDeployer.startConfigCenter 
(DefaultApplicationDeployer.java:289)
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.initialize 
(DefaultApplicationDeployer.java:209)
       at org.apache.dubbo.config.deploy.DefaultApplicationDeployer.start 
(DefaultApplicationDeployer.java:633)
       at org.apache.dubbo.config.bootstrap.DubboBootstrap.start 
(DubboBootstrap.java:227)
       at org.apache.dubbo.config.bootstrap.DubboBootstrap.start 
(DubboBootstrap.java:216)
       at org.example.client.ApolloJavaClient.main (ApolloJavaClient.java:33)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
       at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:566)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.executeMainMethod 
(AbstractExecJavaBase.java:402)
       at org.codehaus.mojo.exec.ExecJavaMojo.executeMainMethod 
(ExecJavaMojo.java:142)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.doExecClassLoader 
(AbstractExecJavaBase.java:377)
       at org.codehaus.mojo.exec.AbstractExecJavaBase.lambda$execute$0 
(AbstractExecJavaBase.java:287)
       at java.lang.Thread.run (Thread.java:829)
   `


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