From users-return-50582-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Mon Oct 15 17:15:15 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 872EC180647 for ; Mon, 15 Oct 2018 17:15:14 +0200 (CEST) Received: (qmail 63553 invoked by uid 500); 15 Oct 2018 15:15:13 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 63541 invoked by uid 99); 15 Oct 2018 15:15:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Oct 2018 15:15:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 41057C0090 for ; Mon, 15 Oct 2018 15:15:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.285 X-Spam-Level: ** X-Spam-Status: No, score=2.285 tagged_above=-999 required=6.31 tests=[SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id k9XGUoI4_ryL for ; Mon, 15 Oct 2018 15:15:11 +0000 (UTC) Received: from n4.nabble.com (n4.nabble.com [199.38.86.66]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1FA095F43C for ; Mon, 15 Oct 2018 15:15:11 +0000 (UTC) Received: from n4.nabble.com (localhost [127.0.0.1]) by n4.nabble.com (Postfix) with ESMTP id A20732488E4E for ; Mon, 15 Oct 2018 10:15:10 -0500 (CDT) Date: Mon, 15 Oct 2018 10:15:10 -0500 (CDT) From: thokuest To: users@activemq.apache.org Message-ID: <1539616510661-0.post@n4.nabble.com> Subject: [Artemis 2.6.3] Multicast consumer via HTTP transport: AMQ212037 Connection failure has been detected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I just started using ActiveMQ Artemis and would like to check whether I'm doing something wrong or if I hit a bug. I want to consume messages from a multicast address via HTTP transport. I tweaked the http-transport example (apache-artemis-2.6.3/examples/features/standard/http-transport) for my purpose. The code I'm working on is to be found here: https://github.com/thokuest/activemq-artemis-http-transport-multicast The code produces 10 messages. A consumer receives the 10 messages. Fine, but when I add a delay (Thread.sleep()) between each MessageConsumer.receive() call, let's say 1 second, then I receive the following exception message in the client: java.lang.reflect.InvocationTargetException ... Caused by: javax.jms.IllegalStateException: AMQ119017: Consumer is closed ... Caused by: javax.jms.IllegalStateException: AMQ119017: Consumer is closed at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.checkClosed (ClientConsumerImpl.java:952) at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.receive (ClientConsumerImpl.java:195) at org.apache.activemq.artemis.core.client.impl.ClientConsumerImpl.receive (ClientConsumerImpl.java:379) at org.apache.activemq.artemis.jms.client.ActiveMQMessageConsumer.getMessage (ActiveMQMessageConsumer.java:212) at org.apache.activemq.artemis.jms.client.ActiveMQMessageConsumer.receive (ActiveMQMessageConsumer.java:128) at thokuest.HttpTransportTopicExample.main (HttpTransportTopicExample.java:79) The server tells me the following: server-out:2018-10-15 17:06:39,048 WARN=20 [org.apache.activemq.artemis.core.client] AMQ212037: Connection failure has been detected: io.netty.handler.codec.http.HttpObjectAggregator$AggregatedFullHttpRequest cannot be cast to io.netty.buffer.ByteBuf [code=3DGENERIC_EXCEPTION] server-out:2018-10-15 17:06:39,048 WARN=20 [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session ea11b326-d08b-11e8-9365-b808cf47fdc0 server-out:2018-10-15 17:06:39,048 WARN=20 [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session ea11b326-d08b-11e8-9365-b808cf47fdc0 server-out:2018-10-15 17:06:39,048 WARN=20 [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session ea11b327-d08b-11e8-9365-b808cf47fdc0 server-out:2018-10-15 17:06:39,058 WARN=20 [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session ea11b327-d08b-11e8-9365-b808cf47fdc0 Any clue what's going on? Kind regards, Thomas K=C3=BCstermann -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.htm= l