Skip to content

spring-modulith-observability causes Kotlin bean properties to be initialized as null #800

@itanxiao

Description

@itanxiao

When enabling spring-modulith-observability, Kotlin bean properties are unexpectedly initialized as null. For example, after enabling this module, properties such as hisHttpClient and medicalInstitutionCode are null. Disabling the module resolves the problem.

Expected behavior:

  • Kotlin bean properties should be correctly initialized when observability is enabled.

Actual behavior:

  • When spring-modulith-observability is enabled, the properties in the Kotlin bean are null as seen in the following screenshots.

Screenshots:

  1. Bean initialization with null values:
image
  1. CGLIB proxy details showing null for constructor-injected properties:
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions