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) orpreferSerializeType(HSF2).The provider and consumer run different HSF versions with incompatible serialization protocols.
Resolution
Identify the HSF version in use (HSF1 or HSF2).
Check the provider bean configuration and verify that the serialization attribute contains a supported value.
If the provider and consumer run different HSF versions, make sure both sides use a compatible serialization protocol.
Supported serialization protocols
| HSF version | Attribute | Supported values | Default |
|---|---|---|---|
| HSF1 | serializeType | Java, hessian | hessian |
| HSF2 | preferSerializeType | Java, hessian, hessian2, kyro, json | hessian2 |
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.