All Products
Search
Document Center

Enterprise Distributed Application Service:Error code: HSF-0007

Last Updated:Mar 11, 2026

Error message

The following error is thrown during application startup:

java.lang.IllegalArgumentException: unsurpport serialize type

Cause

The provider bean in your HSF configuration specifies an invalid value for the serializeType or preferSerializeType attribute. HSF rejects unrecognized serialization types at startup and throws this exception before the application can serve requests.

  • serializeType controls serialization for HSF1.

  • preferSerializeType controls serialization for HSF2.

Valid serialization types

AttributeHSF versionValid valuesDefault
serializeTypeHSF1Java, hessianhessian
preferSerializeTypeHSF2Java, hessian, hessian2, kyro, Jsonhessian2
Note: kyro is the HSF-specific spelling. Do not use kryo (the open-source project name) in HSF configuration.

Solution

  1. Open the Spring configuration file that defines your provider bean.

  2. Locate the serializeType or preferSerializeType attribute.

  3. Replace the invalid value with a supported value from the table above. We recommend that you set the value to hessian or hessian2.