You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/04/24 06:31:01 UTC
svn commit: r396418 - in
/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test:
ChildHandler.java ClientReturner.java MockServerThread.java
TestClientListener.java TestClientThread.java
Author: nadiramra
Date: Sun Apr 23 21:30:59 2006
New Revision: 396418
URL: http://svn.apache.org/viewcvs?rev=396418&view=rev
Log:
Swallow exceptions that happen on close of socket. Too much noice when it is usually a normal
occurrence.
Modified:
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ChildHandler.java
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ClientReturner.java
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientListener.java
webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ChildHandler.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ChildHandler.java?rev=396418&r1=396417&r2=396418&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ChildHandler.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ChildHandler.java Sun Apr 23 21:30:59 2006
@@ -33,7 +33,16 @@
for(int i=0; i<children.size(); i++)
{
ChildHandler child = (ChildHandler)children.remove(i);
- child.close();
+ try
+ {
+ child.close();
+ }
+ catch (Throwable exception)
+ {
+ // Swallow exceptions on close....
+ //System.out.println( "Exception in ChildHandler.close()...");
+ //exception.printStackTrace( );
+ }
}
children=null;
System.out.println( "Closed "+this);
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ClientReturner.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ClientReturner.java?rev=396418&r1=396417&r2=396418&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ClientReturner.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/ClientReturner.java Sun Apr 23 21:30:59 2006
@@ -127,12 +127,12 @@
}
catch(IOException exception)
{
- exception.printStackTrace();
+ // swallow exceptions on close
+ // exception.printStackTrace();
}
}
catch (IOException exception)
{
- exception.printStackTrace();
if(TCPMonitor.state<TCPMonitor.CLOSING_STATE)
{
System.err.println("ClientReturner#run(): IOException when reading in response from server ");
@@ -155,7 +155,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
try
{
@@ -163,7 +164,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
try
@@ -172,7 +174,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
super.close();
}
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java?rev=396418&r1=396417&r2=396418&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/MockServerThread.java Sun Apr 23 21:30:59 2006
@@ -366,7 +366,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
try
{
@@ -374,7 +375,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
try
@@ -383,7 +385,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ // exception.printStackTrace(System.err);
}
// just to make sure - clean up the response files
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientListener.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientListener.java?rev=396418&r1=396417&r2=396418&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientListener.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientListener.java Sun Apr 23 21:30:59 2006
@@ -160,7 +160,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ // exception.printStackTrace(System.err);
}
super.close();
}
Modified: webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java?rev=396418&r1=396417&r2=396418&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java (original)
+++ webservices/axis/trunk/c/tests/utils/monitor/org/apache/test/TestClientThread.java Sun Apr 23 21:30:59 2006
@@ -333,7 +333,8 @@
}
catch(IOException exception)
{
- exception.printStackTrace(System.err);
+ // swallow exceptions on close
+ //exception.printStackTrace(System.err);
}
super.close();
}