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

Add reflection configuration for Actuator endpoints #999

Closed
bclozel opened this issue Aug 26, 2021 · 1 comment
Closed

Add reflection configuration for Actuator endpoints #999

bclozel opened this issue Aug 26, 2021 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@bclozel
Copy link
Contributor

bclozel commented Aug 26, 2021

After the fix for #992, we're seeing that the actuator-webmvc sample fails with the following behavior:

  • all 15 endpoints are detected by actuator
  • the CustomNoComponent endpoint is created as a bean as expected
  • fetching localhost:8080/actuator/customnc fails with a 404

It seems that reflection information is registered for the Custom endpoint, because it is annotated with @Component:

  {
    "name": "com.example.demo.Custom",
    "allDeclaredFields": true,
    "allDeclaredConstructors": true,
    "allDeclaredMethods": true,
    "allPublicMethods": true,
    "allDeclaredClasses": true,
    "methods": [
      {
        "name": "<init>",
        "parameterTypes": []
      }
    ]
  },

On the other hand, nothing is registered for the CustomNoComponent endpoint - actuator cannot look for a @ReadOperation-annotated method and won't register that as an endpoint.

@bclozel bclozel added type: bug A general bug theme: aot labels Aug 26, 2021
@bclozel bclozel added this to the 0.11.0 milestone Aug 26, 2021
@snicoll snicoll self-assigned this Sep 22, 2021
snicoll added a commit that referenced this issue Sep 22, 2021
This commit registers the necessary reflection configuration to be able
to invoke operation methods via reflection. Both endpoints and endpoint
extensions are supported.

Closes gh-999
@snicoll
Copy link
Contributor

snicoll commented Sep 22, 2021

Fixed by 7298292

@snicoll snicoll closed this as completed Sep 22, 2021
snicoll added a commit that referenced this issue Sep 28, 2021
This commit registers the necessary reflection configuration to be able
to invoke operation methods via reflection. Both endpoints and endpoint
extensions are supported.

Closes gh-999
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A general bug
Development

No branches or pull requests

2 participants