Tag Archives: Distributed and big data

Eureka starts abnormally and prompts FreeMarker template error

When starting Eureka, an error is reported in DS replicas. The error contents are as follows:

FreeMarker template error (DEBUG mode; use RETHROW in production!): The following has evaluated to null or missing: ==> replica.key [in template "eureka/navbar.ftlh" at line 68, column 62] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either

More exceptions will not be written. In short, it is FreeMarker’s exception.  

This should be the configuration file of spring boot. The default zone configuration of euraka is not standardized.

Note: this defaultzone requires absolute specifications, otherwise FreeMarker exceptions will be reported.

Two mistakes have been found:

  one    defaultZone: localhost:10000/eureka   

    Should be     defaultZone: http://localhost:10000/eureka

two   defaultZone: http://eurekaServer2:8762/eureka , http://eurekaServer3:8763/eureka ,

  For multiple zones, write an extra comma at the end. Just remove the last comma.