aspose file tools*
The moose likes Java in General and the fly likes java.io.IOException Broken Pipe Very Urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.io.IOException Broken Pipe Very Urgent" Watch "java.io.IOException Broken Pipe Very Urgent" New topic
Author

java.io.IOException Broken Pipe Very Urgent

Lijoy John
Ranch Hand

Joined: Jul 24, 2001
Posts: 32
Hi To All,
It would be very kind of you to help me , how I could resolve this problem I am facing now .
All replies will be appreciated . This is very very urgent for me , so it would be really kind of anyone to let me knw how to resolve this problem.
The problem is i am running a Daemon which picks up about 4 ids' from the database and then proceses the Http request.
I get this error exactly at the tihird time when the daemon picks up the same ids. First and second time it works fine , but third time it Gives java.io.BrokenPipe eXception..

The URL to which the connection is been established is a Servlet .
*************************
The code where the exception comes up is :
uc.setDoInput(true);
uc.setDoOutput(true);
uc.setUseCaches(false);
uc.setRequestProperty("Content-type",
"application/x-www-form-urlencoded");
uc.setRequestProperty("Content-length",""+data.length());
DataOutputStream dos=new DataOutputStream(uc.getOutputStream());
dos.writeBytes(data);
dos.flush();
dos.close();//// THIS IS WHERE THE CODE BREAKS & EXCEPTION COMES
//tHIS IS LINE NUMBER 75
*********************
Many Thanks,
In logDebug() ::After dos.writeBytes() Mon Oct 15 12:16:48 GMT+00:00 2001
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130)
at java.io.FilterOutputStream.flush(FilterOutputStream.java:123)
at weblogic.net.http.ContentLengthOutputStream.close(ContentLengthOutputStream.java:56)
at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
at com.netnames.rp.resutil.SendHttpPost.DataPost(SendHttpPost.java:73)
at com.netnames.rp.resdaemon.ServerConnector.sendHttpRequest(ServerConnector.java:209)
at com.netnames.rp.resdaemon.ServerConnector.interactServer(ServerConnector.java:145)
at com.netnames.rp.resdaemon.RPResponseFromRegistryImpl.interpretStatus(RPResponseFromRegistryImpl.java:284)
at com.netnames.rp.resdaemon.RPResponseFromRegistryImpl.doPoll(RPResponseFromRegistryImpl.java:159)
at com.netnames.rp.resdaemon.RPResponseFromRegistryImpl.run(RPResponseFromRegistryImpl.java:105)
at java.lang.Thread.run(Thread.java:475)
In logStaticInfo() ::Reusing RPSendToRegistryDB
Many Thanks
Regards,
John
 
jQuery in Action, 2nd edition
 
subject: java.io.IOException Broken Pipe Very Urgent