It appears you need to use 'true' instead of the documented 'True' for the
value to make this work.

I'm not sure which is expected to be correct, but I don't see why we can't
accept both in future. I have raised a JIRA
(https://issues.apache.org/jira/browse/QPID-3156) to track the issue either
way.


Robbie

-----Original Message-----
From: Amila Suriarachchi [mailto:[email protected]] 
Sent: 19 March 2011 06:56
To: [email protected]
Cc: Justin Ross
Subject: Re: 0.10 release update - RC1 and status

I tried to create a durable queue like this

queue = queueSession.createQueue("myQueue;{create:always, node:{durable:
True}}");
        QueueSender queueSender = queueSession.createSender(queue);
        queueSender.send(textMessage);

and getting this exception.

Caused by: java.lang.ClassCastException: java.lang.Boolean cannot be cast to
java.lang.String
    at
org.apache.qpid.client.messaging.address.AddressHelper.getDurability(Address
Helper.java:237)
    at
org.apache.qpid.client.messaging.address.AddressHelper.fillInCommonNodeArgs(
AddressHelper.java:222)
    at
org.apache.qpid.client.messaging.address.AddressHelper.createQueueNode(Addre
ssHelper.java:215)
    at
org.apache.qpid.client.messaging.address.AddressHelper.getSourceNode(Address
Helper.java:254)
    at
org.apache.qpid.client.AMQDestination.rebuildTargetAndSourceNodes(AMQDestina
tion.java:888)
    at
org.apache.qpid.client.AMQSession_0_10.resolveAddressType(AMQSession_0_10.ja
va:1272)

thanks,
Amila.

On Fri, Mar 18, 2011 at 9:26 PM, Justin Ross <[email protected]> wrote:

> On Fri, 18 Mar 2011, Robert Godfrey wrote:
>
>  I know Gordon said:
>>
>>
>> "Specifically I'd suggest that unless anyone has specific updates to 
>> the following artefacts - and volunteers to verify the artefact for 
>> the release
>> - we remove them from the published list:
>>
>> qpid-dotnet-0-8-0.10-beta.zip
>> qpid-dotnet-0-10-0.10-beta.
>> zip
>> qpid-ruby-0.10-beta.tar.gz
>>
>> This will avoid giving false impressions about ongoing maintenance 
>> for these clients"
>>
>> But I think that if we are going to actually do this, we should 
>> formally vote for it, and move the codebases for these artefacts into an
"attic"
>> directory or similar.
>>
>> I'm not against removing unloved and unmaintained code... but I do 
>> feel that we should vote before adding or removing artefacts to/from 
>> the release.
>>
>
> Okay.  I'll restore these to RC2 unless there's a vote to remove them.
>
> Justin
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>


--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to