From issues-return-26444-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Wed Mar 7 14:28:05 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 DE1F2180677 for ; Wed, 7 Mar 2018 14:28:04 +0100 (CET) Received: (qmail 6298 invoked by uid 500); 7 Mar 2018 13:28:04 -0000 Mailing-List: contact issues-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 issues@activemq.apache.org Received: (qmail 6289 invoked by uid 99); 7 Mar 2018 13:28:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2018 13:28:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7F1291A0273 for ; Wed, 7 Mar 2018 13:28:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id MUmFOjcqeYSd for ; Wed, 7 Mar 2018 13:28:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0B8825F478 for ; Wed, 7 Mar 2018 13:28:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 04165E0335 for ; Wed, 7 Mar 2018 13:28:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5B5D425401 for ; Wed, 7 Mar 2018 13:28:00 +0000 (UTC) Date: Wed, 7 Mar 2018 13:28:00 +0000 (UTC) From: "Justin Bertram (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (ARTEMIS-1341) Core JMS does not permit calling Message#getBytes(arbitrary type) when message has empty body MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARTEMIS-1341?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Bertram reassigned ARTEMIS-1341: --------------------------------------- Assignee: Stanislav Knot > Core JMS does not permit calling Message#getBytes(arbitrary type) when me= ssage has empty body > -------------------------------------------------------------------------= -------------------- > > Key: ARTEMIS-1341 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1341 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Broker > Affects Versions: 2.3.0 > Reporter: Jiri Dan=C4=9Bk > Assignee: Stanislav Knot > Priority: Trivial > Fix For: 2.5.0 > > > Consider the ActiveMQ Artemis test {{org.apache.activemq.artemis.tests.in= tegration.jms.jms2client.BodyTest#testBodyConversion}} adapted to run throu= gh multiple JMS ConnectionFactories in turn. This test passes with Core JMS= client, is skipped (or should be skipped) with ActiveMQ OpenWire client (t= hat is a JMS 1.1 client) and fails with qpid-jms client. > {noformat} > BytesMessage bytesMessage =3D sess.createBytesMessage(); > producer.send(bytesMessage); > Message msg =3D cons.receiveNoWait(); > assertNotNull(msg); > try { > msg.getBody(String.class); > fail("Exception expected"); > } catch (MessageFormatException e) { > } > {noformat} > The test is wrong, see discussion with [~tabish121] at QPIDJMS-313 for de= tails and references as to why. -- This message was sent by Atlassian JIRA (v7.6.3#76005)