cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Debiprasanna Tripathy <debitripa...@gmail.com>
Subject Re: ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
Date Wed, 02 Dec 2009 23:24:47 GMT

 
Hi Paul,

This usually happens when a client canceled the request, e.g. by clicking
'Cancel' while the page is still being loaded. 

You can do the following code to avoid to log  

catch(Exception e){ // catch the Exception

 String  clientAbortException = "";
 index = e.toString().indexOf(":");
  if(index != 0){
     clientAbortException = e.toString().substring(0, index );
   }
  if("ClientAbortException" .equalsIgnoreCase(clientAbortException)) { //
check it the exception is the 
                                                                                       
// ClientAbortException  then do nothing
    //	Down Loading Canceled  by the Client
     if (out != null) {
	try{
	  if(out != null)
	    out.close();  // close the output stream
	  if(in != null)
	    in.close(); // close the input stream
	}
	catch(Exception ee){
	// catch  nothing
	}
      }
    }
}

Regards,
Debiprasanna Tripathy

-- 
View this message in context: http://old.nabble.com/ClientAbortException%3A--java.net.SocketException%3A-Connection-reset-by-peer%3A-socket-write-error-tp26406293p26618446.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message