diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-01-09 16:28:28 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-01-09 16:28:28 +0000 |
| commit | fd0be1dce887dd4b7057ddbe13bfb627f4152390 (patch) | |
| tree | 7be66bab13c7504f2386796241860e8fad7b4c2b /qpid/java/client/src | |
| parent | abc4451482042140a9926bc1d33a275a363612f7 (diff) | |
| download | qpid-python-fd0be1dce887dd4b7057ddbe13bfb627f4152390.tar.gz | |
Added Logging to diagnose exceptionCaught when a local RuntimeException occurs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/perftesting@494478 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolHandler.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolHandler.java b/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolHandler.java index eab9084717..89628db4b4 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolHandler.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/protocol/AMQProtocolHandler.java @@ -254,15 +254,20 @@ public class AMQProtocolHandler extends IoHandlerAdapter //if (!(cause instanceof AMQUndeliveredException) && (!(cause instanceof AMQAuthenticationException))) if (cause instanceof AMQConnectionClosedException) { - _logger.info("Exception caught therefore going to attempt failover: " + cause, cause); - // this will attemp failover + _logger.info("Exception caught by ProtocolHandler therefore going to attempt failover: " + cause, cause); + // this will attempt failover sessionClosed(session); } + else + { + _logger.info("Exception caught by ProtocolHandler:" + cause, cause); + //sessionClosed(session); + } } // we reach this point if failover was attempted and failed therefore we need to let the calling app // know since we cannot recover the situation - else if (_failoverState == FailoverState.FAILED) + else if ((_failoverState == FailoverState.FAILED)) //|| (_failoverState == FailoverState.IN_PROGRESS)) { _logger.error("Exception caught by protocol handler: " + cause, cause); // we notify the state manager of the error in case we have any clients waiting on a state @@ -270,6 +275,7 @@ public class AMQProtocolHandler extends IoHandlerAdapter AMQException amqe = new AMQException("Protocol handler error: " + cause, cause); propagateExceptionToWaiters(amqe); _connection.exceptionReceived(cause); + } } |
