From b830894e690d317ba32019c00d7d4db01eadcc5d Mon Sep 17 00:00:00 2001 From: amarkevich Date: Wed, 10 Oct 2018 16:57:49 +0300 Subject: [PATCH] AMQ-7069 HTTP client don't handle XStream deserialization exception --- .../org/apache/activemq/transport/http/HttpClientTransport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java index 2480daae22..fee69e33fc 100644 --- a/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java +++ b/activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java @@ -204,7 +204,7 @@ public class HttpClientTransport extends HttpTransportSupport { } stream.close(); } - } catch (IOException e) { + } catch (Exception e) { // handle RuntimeException from unmarshal onException(IOExceptionSupport.create("Failed to perform GET on: " + remoteUrl + " Reason: " + e.getMessage(), e)); break; } finally {