[
https://issues.apache.org/jira/browse/TUSCANY-1541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520416
]
Sunny Ip commented on TUSCANY-1541:
-----------------------------------
I wasn't sure what the best way of getting all the various classes initialized
outside of the SCA environment was, so this is what I did to try to simulate
the serialize/deserialize process:
/* populate response */
String responseStr =
XMLHelper.INSTANCE.save((DataObject)response,"http://namespace","ResponseType");
XMLStreamHelperImpl strHelper = new
XMLStreamHelperImpl(HelperProvider.getDefaultContext());
XMLDocument doc = XMLHelper.INSTANCE.load(responseStr);
XMLStreamReader reader = strHelper.createXMLStreamReader(doc);
reader.next();
DataObject obj = strHelper.loadObject(reader);
return response;
after populating response (which is an SDO generated object) with a collection
of child SDO objects in my service impl, which is a component in the SCADomain.
This succeeded without any problems, and the resulting DataObject looked fine.
However, I return the original response back to the invoking client (through a
web service binding) and get the XMLStreamException. If the collection in my
response contains less objects, then everything works fine. When I have more
than 30 (in this case) objects in the collection, manually calling
XMLStreamHelper works but the invoking client fails.
> 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 SDO Implementation
> Affects Versions: Java-SDO-Next
> Environment: Tomcat
> Reporter: Sunny Ip
> Priority: Critical
> Fix For: Java-SDO-Next
>
>
> 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]