Java Job not working

We have a java job that sends an XML to remote URL by opening OutputStreamWriter to URL and receives the response XML from same URL using InputStreamWriter.

This Job is working fine, when running on Solaris Env. Now we have new server installed on Red Hat Linux. This job is not working on this new environment.

Error i am getting is as below:

<message>XML Parse Error</message>

- <message>XML Parse Error</message>

<reason>Error #-1072896680

- <reason>Error #-1072896680

XML document must have a top level element.

- XML document must have a top level element.

</reason>

- </reason>

<position src_code_pos="1"><line>0</line><column>0</column></position><src></src>

- <position src_code_pos="1"><line>0</line><column>0</column></position><src></src>

</RCP_CONTROL><SERVICE_INCIDENT Acknowledge="0"/><TRANSACTION/></RCP>

- </RCP_CONTROL><SERVICE_INCIDENT Acknowledge="0"/><TRANSACTION/></RCP>

java.io.IOException: Bad file descriptor

I Dont see any issue with code as it is still working fine from server installed on Solaris. Pls help

[1331 byte] By [Viippya] at [2007-10-3 5:45:20]
# 1
Did you check sent and received xml files? Is there anything wrong with them? Maybe your server is nto returning a valid XML, there may be a problem with it...
bodhia at 2007-7-14 23:53:34 > top of Java-index,Java Essentials,Java Programming...
# 2

If Remote URL have received XML Successfully, then it creates some entries in its Database. But its not doing so. So i guess it is not even able to send the XML Successfully. And Since URL is not getting proper desired XML input so its returning error XML output.

But i am wondering same code is running smooth on Solaris Env.

Remote URL is part of 3rd party tool. so we even dont have much access on it so that we can determine what is received at their end, when we send an XML from our side.

Viippya at 2007-7-14 23:53:34 > top of Java-index,Java Essentials,Java Programming...
# 3
Then maybe this 3rd party end point is not working well on Red Hat. There may be a JRE difference...
bodhia at 2007-7-14 23:53:34 > top of Java-index,Java Essentials,Java Programming...