公交属性设置被忽略
我有cxf.xml文件:
<beans ....
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
</cxf:bus>
</beans>
但是在某些操作期间,我遇到了错误:
org.apache.cxf.interceptor.Fault: Unmarshalling Error: Maximum Number of Child Elements limit (50000) Exceeded
我发现它可以用org.apache.cxf.stax.maxchildelements值覆盖。因此,我首先尝试将org.apache.cxf.stax.maxchildlements = 120000在gradle中,在Idea grainments中不起作用,因此我修改了我的.xml文件,
<cxf:bus>
<cxf:features>
<cxf:logging/>
</cxf:features>
<cxf:properties>
<entry key="org.apache.cxf.stax.maxChildElements" value="120000"/>
</cxf:properties>
</cxf:bus>
但我目前都没有想法,但我目前没有想法,截至原因,此设置未被注册。
IM与库一起工作 cxf-rt-frontend-jaxws 和 cxf-rt-transports-http 均在版本3.2.7上。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也可以尝试通过Java代码进行配置。
您可以获取用于创建
org.apache.cxf.endpoint.client
的总线实例:或者,如果您拥有端点实现者,则可以做:
上面是从 cxf doc doc 。
You can try doing configuration via java code as well.
You can get Bus instance which is used for creating your
org.apache.cxf.endpoint.Client
:Or if you have your endpoint implementor then you can do :
Above Bus configuration psudo-code taken from CXF doc.
如果当您说“想法参数”时,您的意思是这个框(标记:程序参数)...
尝试启用修改选项 - &gt;添加VM选项
然后在标有VM选项的框中写入您的VM选项字符串。
尝试
这可能会根据您的想法参数的意思而作用,也可能不起作用。我的想法忽略了许多尝试通过工作中的“程序参数”框传递到JVM的选项。希望这能解决您的问题。如果失败,我将尝试监视此线程。
If when you say "IDEA Arguments" you mean this box (labeled: Program Arguments)...
Try instead enabling Modify Options -> Add VM Options
Then write your VM Option string in the box labeled VM options.
try
This may or may not work depending on what you meant by IDEA Arguments. I have had IDEA ignore many options that I have tried to pass to the JVM via the "Program Arguments" box at work. Hopefully this resolves your issue. If this fails, I will try to monitor this thread.