From users-return-50850-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Tue Jan 15 19:02:58 2019 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 BA502180609 for ; Tue, 15 Jan 2019 19:02:57 +0100 (CET) Received: (qmail 61772 invoked by uid 500); 15 Jan 2019 18:02:56 -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 61761 invoked by uid 99); 15 Jan 2019 18:02:56 -0000 Received: from mail-relay.apache.org (HELO mailrelay2-lw-us.apache.org) (207.244.88.137) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jan 2019 18:02:56 +0000 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by mailrelay2-lw-us.apache.org (ASF Mail Server at mailrelay2-lw-us.apache.org) with ESMTPSA id A974725D5 for ; Tue, 15 Jan 2019 18:02:55 +0000 (UTC) Received: by mail-ot1-f43.google.com with SMTP id t5so3374706otk.1 for ; Tue, 15 Jan 2019 10:02:55 -0800 (PST) X-Gm-Message-State: AJcUukfwT7ll8qTXIa2hJs4bVPuv3XM8kh+NqmMK8BzfMKJYLF1KEm9c wJOwecXXYZsHj8uncjOlYp5VFOygnHwdp0O52xX8RA== X-Google-Smtp-Source: ALg8bN7VT/ZrUOLqRSOdZYJNSRBaZmhHb4zF0G3isdHWcYVzYzTMxBnD8LlU4gMs7dcZjL6spO8As1hCaRtTaeTmTm8= X-Received: by 2002:a9d:46b:: with SMTP id 98mr3114240otc.339.1547575374086; Tue, 15 Jan 2019 10:02:54 -0800 (PST) MIME-Version: 1.0 References: <1547572939419-0.post@n4.nabble.com> In-Reply-To: <1547572939419-0.post@n4.nabble.com> From: Justin Bertram Date: Tue, 15 Jan 2019 12:02:27 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: =?UTF-8?Q?Re=3A_Why_input_string_param_length_limit_on_writeUTF=28?= =?UTF-8?Q?=E2=80=A6=29_of_ActiveMQBytesMessage=2Ejava?= To: users@activemq.apache.org Content-Type: multipart/alternative; boundary="0000000000006fa2dd057f82f84e" --0000000000006fa2dd057f82f84e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable When the UTF string is written to the byte buffer the size is written as an unsigned short which has a max size of 65,535. This may be possible to change, but there will be compatibility issues to deal with for older clients which send buffers using the old format. Justin On Tue, Jan 15, 2019 at 11:29 AM Youyu Shao wrote: > Hi, > > What is the reason that method: public void writeUTF(final String value) = of > org.apache.activemq.artemis.jms.client.ActiveMQBytesMessage.java imposes > length limit on the input string parameter? It seems that the length is > limited to either 32767 (or 65535). > > writeUTF(=E2=80=A6) is a JMS interface method on BytesMessage, which does= not seem > to have such limitation. > > Can this be lifted to integer length? > > Thanks > > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html > --0000000000006fa2dd057f82f84e--