Hi,

It seems that we have to populate the OM (calling OMNode.build()) from the http connection and then call operationClient.complete() to release the connection. We have to pay the performance penality as we cannot streamline the creation of SDO directly from the HTTP stream unless there is a way in Axis2 to allow us to close associated HTTP connection after the OM data is consumed.

I'll check in the fix unless somebody find a better approach.

Thanks,
Raymond

----- Original Message ----- From: "Raymond Feng (JIRA)" <tuscany-dev@ws.apache.org>
To: <tuscany-dev@ws.apache.org>
Sent: Tuesday, August 28, 2007 1:21 PM
Subject: [jira] Commented: (TUSCANY-1541) XMLStreamException in when calling XMLHelper.load() with a large XML



[ https://issues.apache.org/jira/browse/TUSCANY-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523335 ]

Raymond Feng commented on TUSCANY-1541:
---------------------------------------

We cannot simply comment out the operationClient.complete() call as it releases the HTTP connection. Otherwise, we start to see hangs in org.apache.tuscany.sca.itest.sdodatabinding.DatabindingTestCase.java because we run out of connections in the pool. I'll invesigate a way to flush the OM data before the http connection is closed.

XMLStreamException in when calling XMLHelper.load() with a large XML
--------------------------------------------------------------------

                Key: TUSCANY-1541
                URL: https://issues.apache.org/jira/browse/TUSCANY-1541
            Project: Tuscany
         Issue Type: Bug
         Components: Java SCA Problem Determination
   Affects Versions: Java-SCA-0.99, Java-SCA-Next
        Environment: Tomcat
           Reporter: Sunny Ip
           Assignee: Raymond Feng
           Priority: Critical
            Fix For: Java-SCA-Next

        Attachments: ifx-ws-sdo.zip


When XMLHelper.load() is called with a very long XML string, OMStAXWrapper throws an XMLStreamException. I get this problem when I'm receiving a WS response with an SDO object containing a collection of records, leading to a TransformationException when databinding.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to