Skip to content

Could not write JSON: Failed making field 'java.time.Instant#seconds' accessible on /info endpoint #5257

@czd890

Description

@czd890

apollo 2.2.0

[ec2-user@ip-172-17-88-41 /]$ java -version
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Corretto-22.0.2.9.1 (build 22.0.2+9-FR)
OpenJDK 64-Bit Server VM Corretto-22.0.2.9.1 (build 22.0.2+9-FR, mixed mode, sharing)

{
"exception": "org.springframework.http.converter.HttpMessageNotWritableException",
"message": "Could not write JSON: Failed making field 'java.time.Instant#seconds' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.; nested exception is com.google.gson.JsonIOException: Failed making field 'java.time.Instant#seconds' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.",
"status": 500,
"timestamp": "2024-10-22T03:35:33.863586699"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions