用谷歌浏览器的postman测试的,提交的代码如下:
POST /huzchange/dataEx/company HTTP/1.1
Host: 192.168.20.1:8160
Content-Type: application/json
Cache-Control: no-cache
{
"dataSource": "DEQING",
"username": "deqing",
"password": "123456",
"entity_name": "COMPANY",
"entitys": {
"COMPANY_NAME": "县区综合四四数据交换接口测试企业",
"ADDRESS": "综合1003号",
"FD_DELEGATE": "张四四",
"PHONE": "13522222222",
"FIRST_AREA": "330500",
"SECOND_AREA": "330521",
"THIRD_AREA": "330521100000",
"FOUTH_AREA": "4",
"FIFTH_AREA": "5",
"BUSINESS_REG_NUMBER": "BUS1001",
"ORGAN_CODE": "22323232-2",
"SALE_MONEY": "100",
"EMPLOYEE_NUMBER": "10",
"DEAL_IN_RANGE": "经营范围经营范围经营范围经营范围",
"TRADE_DEPT": "tradeDept01",
"TRADE_TYPE": "tradeType08",
"TRADE_BIG": "tradeType08_2",
"TRADE_MID": "tradeType08_2_2",
"TRADE_SMA": "tradeType08_2_2_6",
"CREATE_DEPT": "PRODUCE) =PRODUCE) =文件柜查看) =下载权限",
"SUPERVISION_TYPE": "supervisionType_80",
"COUNTY_DEPT": "county_dept3",
"PARTITION_SCORE": "97.5",
"CORPORATE_TYPES": "法人类型法人类型法人类型",
"ECONOMY_KIND": "economyType04",
"SECTORAL": "部门部门部门部门",
"BUSINESS_PRACTICE": "经营方式经营方式",
"SAFETY_SUPERVISOR": "安全主管人安全主管人",
"SAFETY_SUPERVISOR_PHONE": "13222222222",
"SAFETY_SUPERVISOR_FAX_PHONE": "0574-22222222",
"TECHNOLOGY_NUMBER": "20",
"SAFETY_NUMBER": "30",
"REGISTERED_CAPITAL": "40",
"FIXED_ASSETS": "50",
"LAST_YEAR_SALES": "60",
"TYPE": "0",
"INDUSTRYID_BIG": "90261",
"INDUSTRYID_MID": "5995",
"INDUSTRYID_SMA": "5996"
}
}
提示错误,不知道怎么解决了,有知道的么?
type Exception report
message Hessian skeleton invocation failed; nested exception is java.io.IOException: Expected 'H'/'C' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 123
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Hessian skeleton invocation failed; nested exception is java.io.IOException: Expected 'H'/'C' (Hessian 2.0) or 'c' (Hessian 1.0) in hessian input at 123
cn.safetys.hessian.service.impl.HessianServiceExporter.handleRequest(HessianServiceExporter.java:42)
org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:822)
javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:233)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)