diff --git a/activemq-client/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java b/activemq-client/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java index a0dd210568..b0aafd2a34 100644 --- a/activemq-client/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java +++ b/activemq-client/src/main/java/org/apache/activemq/transport/nio/SelectorSelection.java @@ -44,7 +44,7 @@ public final class SelectorSelection { try { SelectorSelection.this.key = selectable.register(worker.selector, 0, SelectorSelection.this); } catch (Exception e) { - e.printStackTrace(); + onError(e); } } });