在ESB上抛出Uncaught异常时没有响应

时间:2014-01-22 16:27:20

标签: wso2 wso2esb uncaught-exception

有一些接收SOAP 1.1 HTTP请求的代理,当某个像soapui这样的客户端发送请求代理传递格式错误的xml时,ESB会抛出此异常并且此堆栈跟踪会出现在日志中:

[2014-01-22 11:37:54,656] ERROR - NativeWorkerPool Uncaught exception
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF; was expecting a close tag for element <get:GetCapacityRequest>
 at [row,col {unknown-source}]: [1,192]
    at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296)
    at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:653)
    at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstOMChild(OMElementImpl.java:670)
    at org.apache.axiom.om.impl.llom.OMElementImpl.getChildren(OMElementImpl.java:352)
    at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:553)
    at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
    at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeChildren(OMSerializerUtil.java:555)
    at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:875)
    [...]

我想向客户端发回一些适当的响应,比如SoapFault,因为在这种情况下客户端没有得到任何答案,并且在一段时间后,它会给出超时。

我配置了<errorSequence>,但它也没有用。有办法做到这一点吗?
我正在使用WSO2 ESB 4.6.0。

0 个答案:

没有答案