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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM