CAA WS increasing the maximum element count for soap message

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CAA WS increasing the maximum element count for soap message

  • Creator
    Topic
  • #55013
    Elisha Gould
    Participant

      I’ve just come across an issue with CAA WS throwing an exception when the element count of an xml document is over 50000.

      Is there any way to increase this count?

      we have an interface that has an obscenely large xml document sent through it, that can be over 30MB in size.

      Code:

      …. has thrown exception, unwinding now
      org.apache.cxf.staxutils.DepthExceededStaxException: reach the innerElementCountThreshold:50000
             at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1262)
             at org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:1192)
             at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:223)
             at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:75)
             at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
             at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
             at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:355)
             at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:319)
             at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
             at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1088)
             at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1024)
             at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
             at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
             at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
             at org.eclipse.jetty.server.Server.handle(Server.java:370)
             at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
             at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:982)
             at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1043)
             at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
             at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
             at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
             at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667)
             at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
             at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
             at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
             at java.lang.Thread.run(Thread.java:724)

    Viewing 3 reply threads
    • Author
      Replies
      • #83796
        Rob Abbott
        Keymaster

          Hi Elisha, I strongly suggest you open a support ticket on this so we can get it addressed.  thank you!

          Rob Abbott
          Cloverleaf Emeritus

        • #83797
          Elisha Gould
          Participant

            It appears this has been fixed in the 3.x versions of CXF, but the 2.7 version does not have this fix (CAA-WS is using 2.7.8 ):

            https://issues.apache.org/jira/browse/CXF-6173

            There may be a workaround by changing innerElementCountThreshold to a higher value, but I’m not hugely familiar with java beans, so I haven’t worked out where it goes:


            [code]

          • #83798
            Elisha Gould
            Participant

              It appears from a preliminary review, upgrading to CXF 2.7.18 fixes the issue.

              I downloaded it from: http://cxf.apache.org/download.html

              backed up the $HCIROOT/CAA/ws/lib/GJDWS_lib folder

              copied apache-cxf-2.7.18/lib to $HCIROOT/CAA/ws/lib/GJDWS_lib

              I haven’t done a full check if this breaks anything.

            • #83799
              Rob Abbott
              Keymaster

                Great thanks Elisha.  We’ll plan to upgrade CXF in the next release.  Please let me know if the upgrade broke anything!

                Rob Abbott
                Cloverleaf Emeritus

            Viewing 3 reply threads
            • The forum ‘Cloverleaf’ is closed to new topics and replies.