JAX webservice服务端怎么捕获异常

Nancy肖楠 2015-09-16 05:11:13
各位大侠;问题是JAX Webservice通过soapUI进行安全性测试,burpsuite篡改某一字段值为16进制的00,返回异常信息,要求是服务端response里不能有异常信息,不能暴露堆栈信息;server log异常信息如下:

<Sep 16, 2015 2:36:55 PM CST> <Error> <com.sun.xml.ws.transport.http.HttpAdapter> <BEA-000000> <Couldn't create SOAP message due to exception: javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character (NULL, unicode 0) encountered: not valid in any content
at [row,col {unknown-source}]: [7,19]
com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: javax.xml.ws.WebServiceException: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character (NULL, unicode 0) encountered: not valid in any content
at [row,col {unknown-source}]: [7,19]
at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:319)
at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:347)
at com.sun.xml.ws.transport.http.HttpAdapter.access$400(HttpAdapter.java:101)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:670)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:266)
Truncated. see log file for complete stacktrace


soapUI里response的错误信息如图
...全文
51 1 点赞 打赏 收藏 举报
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
qq_28551349 2015-09-16
你可以加我的QQ号:54250807 我帮你解决。
  • 打赏
  • 举报
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2015-09-16 05:11
社区公告
暂无公告