java.io.IOException: Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172

Spring JIRA | Sakib Mehasanewala | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hello, JIRA Issue says that Hessian 2 should work with Hessian 3.2.1. http://jira.springframework.org/browse/SPR-5469 . Are you sure this is working. I upgraded from Spring 3.0.0M2 to 3.0.0M3 and hessian from 3.2.0 to 3.2.1 and all my Hessian 2 calls started failing. I am filing this issue, because no one responsed to my comments for that issue. I hope this is okay. My Clients are configured like ... <bean id="userService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean"> <property name="serviceUrl" value="${cbs2BaseUrl}/remoting/hessian/UserService" /> <property name="serviceInterface" value="com.test.services.cbs2.service.UserService" /> <property name="hessian2" value="true"/> </bean> The errors I see on the server side are: java.io.IOException: Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172 at org.springframework.remoting.caucho.HessianExporter.doInvoke(HessianExporter.java:165) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.remoting.caucho.HessianExporter.invoke(HessianExporter.java:119) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceExporter.java:66) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49) [org.springframework.web.servlet-3.0.0.M3.jar:3.0.0.M3]

    Spring JIRA | 8 years ago | Sakib Mehasanewala
    java.io.IOException: Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172
  2. 0

    Hello, JIRA Issue says that Hessian 2 should work with Hessian 3.2.1. http://jira.springframework.org/browse/SPR-5469 . Are you sure this is working. I upgraded from Spring 3.0.0M2 to 3.0.0M3 and hessian from 3.2.0 to 3.2.1 and all my Hessian 2 calls started failing. I am filing this issue, because no one responsed to my comments for that issue. I hope this is okay. My Clients are configured like ... <bean id="userService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean"> <property name="serviceUrl" value="${cbs2BaseUrl}/remoting/hessian/UserService" /> <property name="serviceInterface" value="com.test.services.cbs2.service.UserService" /> <property name="hessian2" value="true"/> </bean> The errors I see on the server side are: java.io.IOException: Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172 at org.springframework.remoting.caucho.HessianExporter.doInvoke(HessianExporter.java:165) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.remoting.caucho.HessianExporter.invoke(HessianExporter.java:119) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceExporter.java:66) [org.springframework.web-3.0.0.M3.jar:3.0.0.M3] at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49) [org.springframework.web.servlet-3.0.0.M3.jar:3.0.0.M3]

    Spring JIRA | 8 years ago | Sakib Mehasanewala
    java.io.IOException: Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172

    Root Cause Analysis

    1. java.io.IOException

      Expected 'H' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 172

      at org.springframework.remoting.caucho.HessianExporter.doInvoke()
    2. Spring
      HessianServiceExporter.handleRequest
      1. org.springframework.remoting.caucho.HessianExporter.doInvoke(HessianExporter.java:165)[org.springframework.web-3.0.0.M3.jar:3.0.0.M3]
      2. org.springframework.remoting.caucho.HessianExporter.invoke(HessianExporter.java:119)[org.springframework.web-3.0.0.M3.jar:3.0.0.M3]
      3. org.springframework.remoting.caucho.HessianServiceExporter.handleRequest(HessianServiceExporter.java:66)[org.springframework.web-3.0.0.M3.jar:3.0.0.M3]
      3 frames
    3. Spring MVC
      HttpRequestHandlerAdapter.handle
      1. org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)[org.springframework.web.servlet-3.0.0.M3.jar:3.0.0.M3]
      1 frame