Error message

The following error message is reported when the application starts:
java.lang.IllegalArgumentException: unsurpport serialize type

Solution

If the serializeType or preferSerializeType attribute is configured for the bean of the provider, the preceding error message indicates that the value of the serializeType or preferSerializeType attribute is invalid. Check the configuration file. We recommend that you set the value to hessian or hessian2.
  • The serializeType attribute specifies the serialization method of HSF1. Valid values: Java and hessian. Default value: hessian.
  • The preferSerializeType attribute specifies the serialization method of HSF2. Valid values: Java, hessian, hessian2, kyro, and Json. Default value: hessian2.