Hi Praveen,
I don't see any reason for JRE behaving in this way. It has to be data issue. Are you doing some manipulation on data post retrieval?
You said testing QT returned proper result but it's failing in DT, i would suggest export the result in xml structure and check it in some xml editor. It would be easier to identify if there are some issues.
The problem i sense is, xml format of result set is breaking and hence out of bound excepton.
Regards,
Swaroop