com.caucho.hessian.io.HessianProtocolException:expected string at 0x6d

Source: Internet
Author: User
Tags response code

1. Phenomena

When learning Hessian, a system calls B through Hessian, but receives a 500 error:

Java.io.IOException:Server returned HTTP response code:500 for URL

Debug B, see the exception described in the title.

2. Analysis

After searching, see this information:

"is caused by incompatible versions of Hessian and spring" http://itlab.idcquan.com/Java/base/849773_4.html

3. Causes

The analysis found that the Hessian used by B was implemented by Spring-remoting 2.0, The class used is org.springframework.remoting.caucho.HessianServiceExporter, and from 2.5 onwards, the contents of the spring-remoting are split into Spring-webmvc or Spring-web.

A is using the Spring-web 4.2.1.final, the class used is Org.springframework.remoting.caucho.HessianProxyFactoryBean

4. Workaround

Discard the use of Spring-remoting 2.0 in B and use Spring-web 4.2.1.final instead.

com.caucho.hessian.io.HessianProtocolException:expected string at 0x6d

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.