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是處理不了這樣的數據結構的