Why serialization is required and syntax Error,expect {

Source: Internet
Author: User
Tags serialization

Why serialization is required. The serialization mechanism holds the type information of the entity object and the type information and property values of its properties. If the entity object is not serialized or is not set SERIALVERSIONUID, after the transmission reaches the target node in the network, if the entity class applied by the other interface increases or decreases the attribute (filed), it is possible to cause entity parsing error and report an exception, such as: "Exception Info:syntax Error,expect {", but if Serialversionuid is set, a different property is deserialized with the default value, which avoids incompatibility issues.


When we use a treasure, sometimes after the first submission will also report this error (exception Info:syntax Error,expect {), re-submit sometimes succeeded, whether this is the reason.


In addition, we use a treasure to pay the order, such as the use of certain tickets or booking app, there will be a recurring issue, whether it is because the order after the first payment failed, Alipay's Message Queuing mechanism re-transmitted the order information, and the app received a return error or after the timeout has been resubmitted, This resulted in two payment problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.