Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Fix caches actuator endpoint #1200

Closed
Closed

Description

@phejl

Web endpoint extension such as CachesEndpointWebExtension (or custom extension) throws:

org.springframework.http.converter.HttpMessageNotWritableException: No converter for [class org.springframework.boot.actuate.cache.CachesEndpoint$CachesReport] with preset Content-Type 'null'
	at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:312)
	at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:183)
	at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:78)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:135)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)

Just invoke curl -v http://localhost:8099/actuator/caches

Activity

  1. added
    status: waiting-for-triage
    on Oct 29, 2021
  2. phejl commented on Oct 29, 2021

    @phejl
    Author

    I belive this can be fixed by allowing method/constructor reflective acces on org.springframework.boot.actuate.cache.CachesEndpoint$CachesReport

  3. added
    type: compatibility
    and removed
    status: waiting-for-triage
    on Nov 3, 2021
  4. self-assigned this
    on Nov 3, 2021
  5. added this to the 0.11.0-RC1 milestone on Nov 3, 2021
  6. changed the title [-]@EndpointWebExtension throws exception and returns 500 in native image[/-] [+]Fix caches actuator endoint[/+] on Nov 10, 2021
  7. changed the title [-]Fix caches actuator endoint[/-] [+]Fix caches actuator endpoint[/+] on Nov 10, 2021
  8. added a commit that references this issue on Feb 17, 2024
    77be942
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: compatibility

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions