Re: Cryptic error time!

2010-08-25 Thread Gary Tully
maybe the problem is just one of MBean registration, but I would have assumed that error would mean that that subscription is not propagated through the network so a round trip producer consumer test would fail. Do you see any other bad symptoms other than this error in the logs? If you do, I gues

Re: Cryptic error time!

2010-08-25 Thread James Green
I've created issue #2879 but I could use some help narrowing down what I need to look for. I don't even know for instance if this is triggered by a particular topic or queue. Similarly if I were to open junit I'm not sure what I'd be testing for at present. James On 25 August 2010 14:48, Gary Tu

Re: Cryptic error time!

2010-08-25 Thread Gary Tully
yea, it looks like it warrants an issue. Have a look at the java stomp tests, that use a trivial java stomp client. org.apache.activemq.transport.stomp.StompTest in activemq-core for some inspiration for a junit test. On 25 August 2010 14:29, James Green wrote: > Hmm, I'm connecting to both hub

Re: Cryptic error time!

2010-08-25 Thread James Green
Hmm, I'm connecting to both hub and spoke using PHP with the PECL Stomp library (1.0.1). To the hub I'm sending to /topic/accounts with a header 'persistent' => 'true'. To the spoke I am subscribing to /topic/accounts with a client-id of 'sutton_accounts'. I use the same 'sutton_accounts' value f

Re: Cryptic error time!

2010-08-25 Thread Gary Tully
What frames are being used to the create the stomp subscription. >From the code, there is a subscription name present in the consumer info so it is attempting to treat it as a durable topic subscription when in fact it is a queue subscription. Can you post the relevant stomp frames, and possibly

Re: Cryptic error time!

2010-08-25 Thread James Green
Both servers are 5.4.0 on Ubuntu. >From the hub in full: [ .. ] java.lang.ClassCastException: org.apache.activemq.broker.region.QueueSubscription cannot be cast to org.apache.activemq.broker.region.DurableTopicSubscription at org.apache.activemq.broker.jmx.DurableSubscriptionView.(Durable

Re: Cryptic error time!

2010-08-25 Thread Gary Tully
is there a stack trace? please post if there is. what version of broker? On 25 August 2010 12:31, James Green wrote: > On our hub I see the following: > > 2010-08-25 12:09:47,378 | ERROR | Failed to register subscription > QueueSubscription: consumer=ID:billing-59361-1282733145999-6:14:-1:1, > de

Cryptic error time!

2010-08-25 Thread James Green
On our hub I see the following: 2010-08-25 12:09:47,378 | ERROR | Failed to register subscription QueueSubscription: consumer=ID:billing-59361-1282733145999-6:14:-1:1, destinations=0, dispatched=0, delivered=0, pending=0 | org.apache.activemq.broker.jmx.ManagedRegionBroker | ActiveMQ Transport: tc