This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

java.io.IOException: Broken pipe URGENT

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
reply
    Bookmark Topic Watch Topic
  • New Topic