javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Unexpected character '<' (code 60) in end tag Expected '>'

2017-06-12 16:59:00,127 ERROR [com.css.portal.ret.controller.XXXX] - <Fault occurred while processing.>
2017-06-12 16:59:00,127 ERROR [com.css.portal.ret.controller.XXXX] - <javax.xml.ws.WebServiceException: Could not send Message.>
2017-06-12 17:01:36,904 ERROR [com.css.portal.ret.controller.XXXX] - <Fault occurred while processing.>
2017-06-12 17:01:50,480 ERROR [com.css.portal.ret.controller.XXXX] - <javax.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Unexpected character '<' (code 60) in end tag Expected '>'.

 

问题场景:

  WebService接口方法,返回参数为Spring的ModelMap,经看源码ModelMap,其就是继承了一下LinkedHashMap 扩展了几个方法

当ModelMap中put的都是String类型时运行正常,但当ModelMap中put javaBean时,就会报上面这个错误,这说明Cxf是处理不了这样的数据结构的

posted @ 2018-03-19 08:59  liushengit  阅读(4284)  评论(1)    收藏  举报