Error code: HSF-0006

更新时间:
复制 MD 格式

Error message

unsupported serialization [${serializeType}]

This error occurs during application startup when the High-speed Service Framework (HSF) detects an unsupported serialization type.

Possible causes

The serializeType or preferSerializeType attribute on the provider bean specifies a serialization protocol that the current HSF version does not recognize. Common scenarios include:

  • The provider bean has an invalid value for serializeType (HSF1) or preferSerializeType (HSF2).

  • The provider and consumer run different HSF versions with incompatible serialization protocols.

Resolution

  1. Identify the HSF version in use (HSF1 or HSF2).

  2. Check the provider bean configuration and verify that the serialization attribute contains a supported value.

  3. If the provider and consumer run different HSF versions, make sure both sides use a compatible serialization protocol.

Supported serialization protocols

HSF versionAttributeSupported valuesDefault
HSF1serializeTypeJava, hessianhessian
HSF2preferSerializeTypeJava, hessian, hessian2, kyro, jsonhessian2

serializeType configures serialization for HSF1. preferSerializeType configures serialization for HSF2. Do not mix these attributes across HSF versions.

Verify the fix

After you update the serialization configuration, restart the application and confirm that the HSF-0006 error no longer appears in the startup logs.