Parent Directory
|
Revision Log
|
Patch
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java 2013/04/24 11:27:11 1471371
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/core/AsyncContextImpl.java 2013/04/24 11:43:30 1471372
@@ -117,9 +117,10 @@ public class AsyncContextImpl implements
for (AsyncListenerWrapper listener : listenersCopy) {
try {
listener.fireOnComplete(event);
- } catch (IOException ioe) {
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
log.warn("onComplete() failed for listener of type [" +
- listener.getClass().getName() + "]", ioe);
+ listener.getClass().getName() + "]", t);
}
}
} finally {
@@ -148,9 +149,10 @@ public class AsyncContextImpl implements
for (AsyncListenerWrapper listener : listenersCopy) {
try {
listener.fireOnTimeout(event);
- } catch (IOException ioe) {
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
log.warn("onTimeout() failed for listener of type [" +
- listener.getClass().getName() + "]", ioe);
+ listener.getClass().getName() + "]", t);
}
}
request.getCoyoteRequest().action(
@@ -328,9 +330,10 @@ public class AsyncContextImpl implements
for (AsyncListenerWrapper listener : listenersCopy) {
try {
listener.fireOnStartAsync(event);
- } catch (IOException ioe) {
+ } catch (Throwable t) {
+ ExceptionUtils.handleThrowable(t);
log.warn("onStartAsync() failed for listener of type [" +
- listener.getClass().getName() + "]", ioe);
+ listener.getClass().getName() + "]", t);
}
}
listeners.clear();
@@ -393,9 +396,10 @@ public class AsyncContextImpl implements
for (AsyncListenerWrapper listener : listenersCopy) {
try {
listener.fireOnError(errorEvent);
- } catch (IOException ioe) {
+ } catch (Throwable t2) {
+ ExceptionUtils.handleThrowable(t);
log.warn("onError() failed for listener of type [" +
- listener.getClass().getName() + "]", ioe);
+ listener.getClass().getName() + "]", t2);
}
}
}
| infrastructure at apache.org | ViewVC Help |
| Powered by ViewVC 1.1.26 |