Originally posted by Mandar Tambe:
How to get a filepath of a file stored anywhere in the system?
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
Originally posted by Richard Robbins:
I am trying to send an Object from a client to a server via a socket connection. How does one read the Object from the ObjectInputStream on the server side?