• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Broken pipe URGENT

 
Lijoy John
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
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

Regards,
John
 
raghavender rao
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ther ,,,

usually u get this problem when the maximum number of processes have been extended....i mean to say abt the Database.....
Rao
 
Lijoy John
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying back,
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 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
----------------------------------------------------------
tHE eXCEPTION ON THE CONSOLE :
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
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:23
7)
at com.netnames.rp.resutil.SendHttpPost.post(SendHttpPost.java:75)
at
com.netnames.rp.resdaemon.ServerConnector.sendHttpRequest(ServerConnector.ja
va:207)
at
com.netnames.rp.resdaemon.ServerConnector.interactServer(ServerConnector.jav
a:143)
at
com.netnames.rp.resdaemon.RPResponseFromRegistryImpl.interpretStatus(RPRespo
nseFromRegistryImpl.java:284)
at
com.netnames.rp.resdaemon.RPResponseFromRegistryImpl.doPoll(RPResponseFromRe
gistryImpl.java:159)
at
com.netnames.rp.resdaemon.RPResponseFrom

usually u get this problem when the maximum number of processes have been extended....i mean to say abt the Database.....

Thanks Once again for replying.
Kindly let me know about it .

Regards,
John
 
prasad bhn
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it would be more helpful to find out the bug if post the entire code for this program..
Originally posted by Lijoy John:
Thanks for replying back,
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 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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!