[
https://issues.jboss.org/browse/JBWS-3869?page=com.atlassian.jira.plugin....
]
Viral Gohel updated JBWS-3869:
------------------------------
Description:
Caused by: org.apache.cxf.staxutils.DepthExceededStaxException: reach the
innerElementCountThreshold:50000
at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:726)
at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:223)
at
org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:78)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:257)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:161)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:124)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)
This happens because the SAAJInInterceptor invokes StaxUtils.copy() with the value of the
fourth argument as true, which means StaxUtils uses its static properties to check
innerElementLevelThreshold and innerElementCountThreshold. If the XMLStreamReader passed
in to the method has custom values for these properties, they are ignored.
CXF Upstream Issue :
https://issues.apache.org/jira/browse/CXF-6173
was:
Caused by: org.apache.cxf.staxutils.DepthExceededStaxException: reach the
innerElementCountThreshold:50000
at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:726)
at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:223)
at
org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:78)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:257)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:161)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:124)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)
This happens because the SAAJInInterceptor invokes StaxUtils.copy() with the value of the
fourth argument as true, which means StaxUtils uses its static properties to check
innerElementLevelThreshold and innerElementCountThreshold. If the XMLStreamReader passed
in to the method has custom values for these properties, they are ignored.
To configure CXF StAX properties on a per-endpoint/client basis if a
JAX-WS handler is configured
-------------------------------------------------------------------------------------------------
Key: JBWS-3869
URL:
https://issues.jboss.org/browse/JBWS-3869
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf, jbossws-integration
Affects Versions: jbossws-cxf-4.3
Environment: JBoss EAP 6.3
Reporter: Viral Gohel
Caused by: org.apache.cxf.staxutils.DepthExceededStaxException: reach the
innerElementCountThreshold:50000
at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:726)
at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:223)
at
org.apache.cxf.jaxws.handler.soap.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:78)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.createProtocolMessageContext(SOAPHandlerInterceptor.java:257)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessageInternal(SOAPHandlerInterceptor.java:161)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:124)
at
org.apache.cxf.jaxws.handler.soap.SOAPHandlerInterceptor.handleMessage(SOAPHandlerInterceptor.java:71)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:845)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1624)
This happens because the SAAJInInterceptor invokes StaxUtils.copy() with the value of the
fourth argument as true, which means StaxUtils uses its static properties to check
innerElementLevelThreshold and innerElementCountThreshold. If the XMLStreamReader passed
in to the method has custom values for these properties, they are ignored.
CXF Upstream Issue :
https://issues.apache.org/jira/browse/CXF-6173
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)