Shekar, I'm going to lock this post. We ask people not to cross post as it makes discussion more complicated to follow. (Thanks for pointing out that you did so though.)
I posted a reply in your other thread. I think the problem is more about I/O and Serialization from the message. You can test this out by trying to output the binary stream itself. If this ends up being a JDBC question, PM a sheriff and they can move it back here.