Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When opening the gateway overview page, there is an "Exception evaluating SpringEL expression" #146

Closed
gr-hovest-atb opened this issue Aug 30, 2021 · 0 comments · Fixed by #147
Assignees
Labels
bug Something isn't working

Comments

@gr-hovest-atb
Copy link
Contributor

gr-hovest-atb commented Aug 30, 2021

When opening the page /admin/proxies, there is an internal server error due to a thymeleaf exception:

Message: Exception evaluating SpringEL expression: "proxy.timeOfLastSuccessfulCallToAdmin != null ? #dates.format(new java.util.Date(proxy?.timeOfLastSuccessfulCallToAdmin)) : #{admin.dashboard.gatewayhealthmonitor.notconnectedgateway}" (admin/fragments/proxies/list:146)

Exception | org.thymeleaf.exceptions.TemplateProcessingException

The log says:

2021-08-30 10:41:42.255 ERROR 6332 --- [io-8083-exec-10] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8083-exec-10] Exception processing template "admin/proxies/list": Exception evaluating SpringEL expression: "proxy.timeOfLastSuccessfulCallToAdmin != null ? #dates.format(new java.util.Date(proxy?.timeOfLastSuccessfulCallToAdmin)) : #{admin.dashboard.gatewayhealthmonitor.notconnectedgateway}" (admin/fragments/proxies/list:146)
2021-08-30 10:41:42.255 DEBUG 6332 --- [io-8083-exec-10] s.s.w.c.SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2021-08-30 10:41:42.257 ERROR 6332 --- [io-8083-exec-10] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "proxy.timeOfLastSuccessfulCallToAdmin != null ? #dates.format(new java.util.Date(proxy?.timeOfLastSuccessfulCallToAdmin)) : #{admin.dashboard.gatewayhealthmonitor.notconnectedgateway}" (admin/fragments/proxies/list:146)] with root cause

org.springframework.expression.spel.SpelParseException: Expression [proxy.timeOfLastSuccessfulCallToAdmin != null ? #dates.format(new java.util.Date(proxy?.timeOfLastSuccessfulCallToAdmin)) : #{admin.dashboard.gatewayhealthmonitor.notconnectedgateway}] @125: EL1043E: Unexpected token. Expected 'identifier' but was 'lcurly({)'
	at org.springframework.expression.spel.standard.InternalSpelExpressionParser.raiseInternalException(InternalSpelExpressionParser.java:1005) ~[spring-expression-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]
	at org.springframework.expression.spel.standard.InternalSpelExpressionParser.eatToken(InternalSpelExpressionParser.java:919) ~[spring-expression-4.3.13.RELEASE.jar!/:4.3.13.RELEASE]
[...]
@gr-hovest-atb gr-hovest-atb added the bug Something isn't working label Aug 30, 2021
BrunoSilvaATB added a commit to BrunoSilvaATB/coatrack that referenced this issue Sep 2, 2021
…hen-opening-the-gateway-overview-page,-there-is-an-Exception-evaluating-SpringEL-expression' into bugfix/coatrack#146-When-opening-the-gateway-overview-page,-there-is-an-Exception-evaluating-SpringEL-expression
perezdf pushed a commit that referenced this issue Sep 20, 2021
…he-gateway-overview-page,-there-is-an-Exception-evaluating-SpringEL-expression

Bugfix/#146-When-opening-the-gateway-overview-page,-there-is-an-Exception-evaluating-SpringEL-expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants