Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C776C95F for ; Tue, 22 May 2012 17:57:00 +0000 (UTC) Received: (qmail 56931 invoked by uid 500); 22 May 2012 17:57:00 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 56855 invoked by uid 500); 22 May 2012 17:57:00 -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 56837 invoked by uid 99); 22 May 2012 17:57:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 17:56:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mail@willdaniels.co.uk designates 178.33.202.84 as permitted sender) Received: from [178.33.202.84] (HELO mail.semacom.net) (178.33.202.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 May 2012 17:56:55 +0000 Received: from [IPv6:2001:470:1f08:17e9::2] (unknown [IPv6:2001:470:1f08:17e9::2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.semacom.net (Postfix) with ESMTPSA id B71F07FC36 for ; Tue, 22 May 2012 18:56:32 +0100 (BST) Message-ID: <4FBBD354.3040701@willdaniels.co.uk> Date: Tue, 22 May 2012 18:56:36 +0100 From: Will Daniels User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: dev@activemq.apache.org Subject: Re: Null pointer exception in AnyProtocolCodec using WebSockets References: <4FADF47B.90605@willdaniels.co.uk> <4FB5A63C.7020008@willdaniels.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 22/05/12 15:23, Hiram Chirino wrote: >> >> >> >>> One other thing, at the risk of going too far OT for dev list, I can't >>> seem to get topic retained messages to work (on any transport). On >>> subscribing to a topic that should have retained messages, I don't see any >>> initial frames at all. But if I subscribe to the topic while the messages >>> are sent, I can see that that "retain:true" header is correctly set on them. >>> >>> My understanding is that upon a new subscription to the topic, the last >>> retained message should be sent? Am I misunderstanding what retain:true >>> should do here? Is there any caveats I should be aware of about it? >>> >>> >> That sounds about right. Perhaps we have bug somewhere, I'll take a look. >> But please open issue on the issue tracker at: >> https://issues.apache.org/jira/browse/APLO >> >> > Hi Will, > > The problem is that you should use "retain:set" instead of "retain:true". > Could you try that out? > Yes that works now, thank you Hiram! I couldn't understand where I got the wrong semantics from, but eventually I found the culprit: https://github.com/apache/activemq-apollo/pull/1 The remainder of the documentation correctly says "retain:set" it was only in the example message. Cheers! -Will