Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7A544200CDD for ; Mon, 7 Aug 2017 17:22:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78AAD164D5B; Mon, 7 Aug 2017 15:22:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E5B2A164D48 for ; Mon, 7 Aug 2017 17:22:05 +0200 (CEST) Received: (qmail 14967 invoked by uid 500); 7 Aug 2017 15:22:05 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 14956 invoked by uid 99); 7 Aug 2017 15:22:04 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2017 15:22:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 24279E96E8; Mon, 7 Aug 2017 15:22:04 +0000 (UTC) From: cshannon To: dev@activemq.apache.org Reply-To: dev@activemq.apache.org References: In-Reply-To: Subject: [GitHub] activemq-artemis pull request #1445: ARTEMIS-1327 - Support checked exceptio... Content-Type: text/plain Message-Id: <20170807152204.24279E96E8@git1-us-west.apache.org> Date: Mon, 7 Aug 2017 15:22:04 +0000 (UTC) archived-at: Mon, 07 Aug 2017 15:22:06 -0000 Github user cshannon commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/1445#discussion_r131683225 --- Diff: artemis-server/src/main/java/org/apache/activemq/artemis/core/remoting/server/impl/RemotingServiceImpl.java --- @@ -537,7 +540,11 @@ public void connectionDestroyed(final Object connectionID) { if (conn != null && !conn.connection.isSupportReconnect()) { RemotingConnection removedConnection = removeConnection(connectionID); if (removedConnection != null) { - server.callBrokerPlugins(server.hasBrokerPlugins() ? plugin -> plugin.afterDestroyConnection(removedConnection) : null); + try { + server.callBrokerPlugins(server.hasBrokerPlugins() ? plugin -> plugin.afterDestroyConnection(removedConnection) : null); + } catch (Exception e) { + throw new IllegalStateException("Error executing afterDestroyConnection plugin method: " + e.getMessage(), e); --- End diff -- done --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---