由innerElementCountThreshold引起的org.apache.cxf.staxutils.DepthExceededStaxException:50000

时间:2014-09-02 09:59:41

标签: cxf

我正在使用apache cxf 2.6.10,在处理调用时我总是得到DepthExceededException。文档说我可以覆盖这些值,但我该怎么做呢?我尝试在bean中定义那些不起作用的属性。我尝试在cxf中设置它们:总线它不起作用。

有什么想法吗?

1 个答案:

答案 0 :(得分:4)

我通过增加静态字段innerElementCountThreshold的值来解决这个问题。我在我的代码中设置它:

StaxUtils.setInnerElementCountThreshold(200000);