edit-icon download-icon

com.taobao.diamond.client.impl.DiamondEnvRepo initialization failure

Last Updated: Jan 17, 2018

Error message:Could not initialize class com.taobao.diamond.client.impl.DiamondEnvRepo

Solution: If Diamond data in the address server is empty, check whether the address server is configured correctly and runs stably, and whether a response is returned properly when http://jmenv.tbsite.net:8080/diamond-server/diamond is accessed.

NOTE: Before accessing http://jmenv.tbsite.net:8080/diamond-server/diamond , add the following content to the hosts file to bind the address server domain: . jmenv.tbsite.net . (Replace with the address of your lightweight configuration center.) The path of the hosts file is as follows:

  • Windows: C:\Windows\System32\drivers\etc\hosts
  • Linux: /etc/hosts
Thank you! We've received your feedback.