# com.wm.app.tn.err.EXMLException

**URL:** <https://techcommunity.softwareag.com/t/com-wm-app-tn-err-exmlexception/124548>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [December 6, 2006, 12:25pm UTC](https://techcommunity.softwareag.com/t/com-wm-app-tn-err-exmlexception/124548 "2006-12-06T12:25:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ranjit\_Pillai1](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@Ranjit\_Pillai1](https://techcommunity.softwareag.com/u/Ranjit_Pillai1)\
**Post date:** [December 6, 2006, 12:25pm UTC](https://techcommunity.softwareag.com/t/com-wm-app-tn-err-exmlexception/124548/1 "2006-12-06T12:25:19Z")

</div>

Hello All,  
I am working on wM 6.0.1(Developer&TN).I am retrieving data from aTNDocument (which has been Large Document handled) in my custom code in developer .  
This flow of custom code is as below  
1.wm.tnweb.querySvc:getDocuments 2.wm.tnweb.querySvc:getContentPartBytes  
3.wm.tn.doc:getContentPartData(get as stream)

This stream first I convert to bytes, then bytes to string and I use this string .

But the service throws the below error at runtime:  
error  
 TRNSERV.000018.000066 Error encountered in invoking service wm.tnweb.querySvc:getDocDetails java.lang.OutOfMemoryError java.lang.OutOfMemoryError 0   
 errorType  
 com.wm.app.tn.err.EXMLException

Suggestions if any,would be highly appreciated.

Thnx in advance,  
Ranjit.
