activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miniman <benjamin.cuthb...@db.com>
Subject Re: Destination is not an instance of SpyDestination
Date Thu, 25 Jan 2007 16:41:37 GMT

I am using the sample code and simple messages to send messages from an
external client into activemq via an embedded broker on jboss... Should this
not work out of the bag ?



rajdavies wrote:
> 
> This looks like jboss.mq is not compliant with the JMS spec. Messages  
> from a foreign JMS provider (including the Destination) should be  
> able to be pass through any other JMS compliant JMS provider
> 
> cheers,
> 
> Rob
> On 25 Jan 2007, at 14:14, miniman wrote:
> 
>>
>> All i have an EJB which i use to send messages to a topic, i am  
>> getting the
>> following error.
>>
>> 14:06:18,426 ERROR [TestMDB] javax.jms.InvalidDestinationException:
>> Destination is not an
>>  instance of SpyDestination topic://activemq/topic/inbound
>> javax.jms.InvalidDestinationException: Destination is not an  
>> instance of
>> SpyDestination topic://acti
>> vemq/topic/inbound
>>         at org.jboss.mq.SpyMessageProducer.send 
>> (SpyMessageProducer.java:232)
>>         at org.jboss.mq.SpyMessageProducer.send 
>> (SpyMessageProducer.java:206)
>>         at org.jboss.mq.SpyTopicPublisher.publish 
>> (SpyTopicPublisher.java:62)
>>         at
>> uk.co.objectsoft.jms.ejb.JmsSenderBean.publish(JmsSenderBean.java:108)
>>         at
>> uk.co.objectsoft.jms.ejb.JmsSenderBean.publish(JmsSenderBean.java:143)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at org.jboss.invocation.Invocation.performCall 
>> (Invocation.java:359)
>>         at
>> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke 
>> (StatelessSessionConta
>> iner.java:237)
>>         at
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invok 
>> e(CachedConnectionI
>> nterceptor.java:158)
>>         at
>> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke 
>> (StatelessSessionInstance
>> Interceptor.java:169)
>>         at
>> org.jboss.ejb.plugins.CallValidationInterceptor.invoke 
>> (CallValidationInterceptor.java:63)
>>
>>         at
>> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext 
>> (AbstractTxInterceptor.java:121)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions 
>> (TxInterceptorCMT.java:350)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java: 
>> 181)
>>         at
>> org.jboss.ejb.plugins.SecurityInterceptor.invoke 
>> (SecurityInterceptor.java:168)
>>         at
>> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
>>         at
>> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke 
>> (ProxyFactoryFinderInterceptor.
>> java:136)
>>         at
>> org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java: 
>> 648)
>>         at org.jboss.ejb.Container.invoke(Container.java:954)
>>         at
>> org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke 
>> (BaseLocalProxyFactory.java:430)
>>         at
>> org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke 
>> (StatelessSessionProxy.java:103)
>>         at $Proxy133.publish(Unknown Source)
>>         at
>> com.db.abmonitor.mdb.AutobahnMonitorMDB.sendMessage 
>> (AutobahnMonitorMDB.java:99)
>>         at
>> com.db.abmonitor.mdb.AutobahnMonitorMDB.handleMessage 
>> (AutobahnMonitorMDB.java:66)
>>         at
>> com.db.abmonitor.mdb.AutobahnMonitorMDB.onMessage 
>> (AutobahnMonitorMDB.java:45)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at org.jboss.invocation.Invocation.performCall 
>> (Invocation.java:359)
>>         at
>> org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke 
>> (MessageDrivenContainer.j
>> ava:495)
>>         at
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invok 
>> e(CachedConnectionI
>> nterceptor.java:158)
>>         at
>> org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke 
>> (MessageDrivenInstanceInterc
>> eptor.java:116)
>>         at
>> org.jboss.ejb.plugins.CallValidationInterceptor.invoke 
>> (CallValidationInterceptor.java:63)
>>
>>         at
>> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext 
>> (AbstractTxInterceptor.java:121)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions 
>> (TxInterceptorCMT.java:350)
>>         at
>> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java: 
>> 181)
>>         at
>> org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke 
>> (RunAsSecurityInterceptor.java:109)
>>         at
>> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
>>         at
>> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke 
>> (ProxyFactoryFinderInterceptor.
>> java:136)
>>         at
>> org.jboss.ejb.MessageDrivenContainer.internalInvoke 
>> (MessageDrivenContainer.java:402)
>>         at org.jboss.ejb.Container.invoke(Container.java:954)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke 
>> (NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke 
>> (DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.jboss.mx.interceptor.ReflectedDispatcher.invoke 
>> (ReflectedDispatcher.java:155)
>>         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
>>         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
>>         at
>> org.jboss.mx.server.AbstractMBeanInvoker.invoke 
>> (AbstractMBeanInvoker.java:264)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke 
>> (LocalInvoker.java:169)
>>         at
>> org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
>>         at
>> org.jboss.invocation.InvokerInterceptor.invokeLocal 
>> (InvokerInterceptor.java:209)
>>         at
>> org.jboss.invocation.InvokerInterceptor.invoke 
>> (InvokerInterceptor.java:195)
>>         at
>> org.jboss.proxy.TransactionInterceptor.invoke 
>> (TransactionInterceptor.java:61)
>>         at
>> org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.delivery 
>> (MessageEndpointIntercept
>> or.java:263)
>>         at
>> org.jboss.ejb.plugins.inflow.MessageEndpointInterceptor.invoke 
>> (MessageEndpointInterceptor
>> .java:140)
>>         at
>> org.jboss.proxy.ClientMethodInterceptor.invoke 
>> (ClientMethodInterceptor.java:74)
>>         at org.jboss.proxy.ClientContainer.invoke 
>> (ClientContainer.java:100)
>>         at $Proxy136.onMessage(Unknown Source)
>>         at
>> org.apache.activemq.ra.MessageEndpointProxy 
>> $MessageEndpointAlive.onMessage(MessageEndpoin
>> tProxy.java:120)
>>         at
>> org.apache.activemq.ra.MessageEndpointProxy.onMessage 
>> (MessageEndpointProxy.java:60)
>>         at org.apache.activemq.ActiveMQSession.run 
>> (ActiveMQSession.java:692)
>>         at
>> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java: 
>> 163)
>>         at org.jboss.resource.work.WorkWrapper.execute 
>> (WorkWrapper.java:204)
>>         at
>> org.jboss.util.threadpool.BasicTaskWrapper.run 
>> (BasicTaskWrapper.java:275)
>>         at
>> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run 
>> (PooledExecutor.java:743)
>>         at java.lang.Thread.run(Thread.java:595)
>>
>> -- 
>> View this message in context: http://www.nabble.com/Destination-is- 
>> not-an-instance-of-SpyDestination-tf3109872.html#a8619666
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Destination-is-not-an-instance-of-SpyDestination-tf3109872.html#a8635278
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message