[Bug] Optional configuration lookups log missing property bean errors in the server

Author: slievrlyCreated Sep 26, 2026Updated Sep 26, 2026

Check Ahead

  • Searched existing issues for the missing JSON property bean error.
  • Willing to fix.

Issue Description

SpringBootConfigurationProvider assumes every requested configuration prefix has a registered property class. Server applications do not load client autoconfiguration, but shared JSON utilities probe both the legacy client.rm saga parser key and the optional json.serializerType key. The provider throws and logs ShouldNeverHappenException before falling back anyway.

Evidence

Java 17 CI job, commit 96e84e52f, raw lines 30207 and 30415. Stack: JsonUtil.resolveJsonSerializerName -> configuration getConfig -> getDefaultValueFromPropertyObject. Prefixes seata.client.rm and seata.json are absent in the server property map.

Expected behavior

A missing optional property bean means no bean default is available. Continue to the original configuration without an error. Explicit values and caller defaults must retain precedence. Registered property-bean construction errors must not be hidden.

Environment

Seata 2.8.0-SNAPSHOT server, Java 17.