9 Replies Latest reply on Oct 19, 2010 10:18 AM by Mark Swanson

    InvalidDestinationException

    Mark Swanson Newbie

      I've been tearing my hair out for over a week now. We have a very high throughput, high-concurrency application. I perform a JNDI lookup for a topic or queue (for example, java:comp/env/jms/StatisticsQueue). I get back a valid queue object (in fact, in the debugger I can see it's a non-null HornetQQueue with a name of "StatisticsQueue" and an address of "jms.queue.StatisticsQueue"). Immediately after the successful lookup, I call:

       

      session.createProducer(destination);

       

      where I can also verify that the session object is a HornetQSession object. However, the createProducer() call throws InvalidDestinationException, with the text:

       

      Destination StatisticsQueue does not exist

       

      How this queue could possibly not exist when I've looked it up and am holding a reference to it is completely frustrating. I've scoured my code, read specifications and looked through my HornetQ 2.1.2 / JBoss 4.2.3 configuration at great length (although, admittedly, I'm not expert in this arena). Any help or even pointing me in a specific direction would be greatly appreciated.

       

      Mark

       

      17:10:20,343 INFO  [STDOUT] Error creating publisher for JMS destination 'java:comp/env/jms/StatisticsQueue'.
      com.romaric.race.mgr.event.exception.REventException: Error creating publisher for JMS destination 'java:comp/env/jms/StatisticsQueue'.
      at com.romaric.race.mgr.event.jms.JMSEventProducer.<init>(JMSEventProducer.java:153)
      at com.romaric.race.mgr.event.REventManager.createProducer(REventManager.java:990)
      at com.romaric.race.mgr.event.REventManager.iGetProducer(REventManager.java:1056)
      at com.romaric.race.mgr.event.REventManager.iSend(REventManager.java:874)
      at com.romaric.race.mgr.event.REventManager.iSend(REventManager.java:823)
      at com.romaric.race.mgr.event.REventManager.sendImmediate(REventManager.java:1583)
      at com.romaric.race.mgr.event.REventManager.sendImmediate(REventManager.java:1567)
      at com.romaric.mcs.mgr.device.object.AMHSDevice.initAMHSDevice(AMHSDevice.java:353)
      at com.romaric.mcs.mgr.device.object.AMHSDevice.<init>(AMHSDevice.java:270)
      at com.romaric.mcs.mgr.device.object.TransportDevice.<init>(TransportDevice.java:143)
      at com.romaric.mcs.mgr.device.object.IBSEMTransportDevice.<init>(IBSEMTransportDevice.java:176)
      at com.romaric.mcs.mgr.device.object.daifuku.MCP7TransportDevice.<init>(MCP7TransportDevice.java:138)
      at com.romaric.mcs.mgr.device.object.daifuku.MCP7TransportDevice.<init>(MCP7TransportDevice.java:124)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at com.romaric.race2.mgr.device.object.DeviceFactory.createInstance(DeviceFactory.java:264)
      at com.romaric.race2.mgr.device.object.DeviceFactory.createDevice(DeviceFactory.java:82)
      at com.romaric.race2.mgr.device.object.Device.loadCache(Device.java:769)
      at com.romaric.race2.mgr.device.object.Device.loadCache(Device.java:731)
      at com.romaric.race2.mgr.device.ejb.session.device.DeviceSessionBean.loadDeviceCache(DeviceSessionBean.java:287)
      at com.romaric.mcs.mgr.device.ejb.session.amhs.AMHSDeviceSessionBean.loadDeviceCache(AMHSDeviceSessionBean.java:2816)
      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:597)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.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:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      at $Proxy275.loadDeviceCache(Unknown Source)
      at com.romaric.race2.mgr.device.ejb.session.device.DeviceSessionBean.loadCaches(DeviceSessionBean.java:230)
      at com.romaric.mcs.mgr.device.ejb.session.amhs.AMHSDeviceSessionBean.loadCaches(AMHSDeviceSessionBean.java:2892)
      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:597)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.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:138)
      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
      at org.jboss.ejb.Container.invoke(Container.java:960)
      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
      at $Proxy275.loadCaches(Unknown Source)
      at com.romaric.race.mgr.init.RACEInitializer.initializeSession(RACEInitializer.java:118)
      at com.romaric.race.mgr.init.RACEInitializer.loadCaches(RACEInitializer.java:85)
      at com.romaric.mcs.mgr.init.web.MCSInitServlet.init(MCSInitServlet.java:61)
      at javax.servlet.GenericServlet.init(GenericServlet.java:212)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
      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:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy44.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      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:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      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:597)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.jms.InvalidDestinationException: Destination StatisticsQueue does not exist
      at org.hornetq.jms.client.HornetQSession.createProducer(HornetQSession.java:329)
      at com.romaric.race.mgr.event.jms.JMSEventProducer.<init>(JMSEventProducer.java:144)
      ... 202 more

      17:10:20,343 INFO  [STDOUT] Error creating publisher for JMS destination 'java:comp/env/jms/StatisticsQueue'.

      com.romaric.race.mgr.event.exception.REventException: Error creating publisher for JMS destination 'java:comp/env/jms/StatisticsQueue'.

      at com.romaric.race.mgr.event.jms.JMSEventProducer.<init>(JMSEventProducer.java:153)

      at com.romaric.race.mgr.event.REventManager.createProducer(REventManager.java:990)

      at com.romaric.race.mgr.event.REventManager.iGetProducer(REventManager.java:1056)

      at com.romaric.race.mgr.event.REventManager.iSend(REventManager.java:874)

      at com.romaric.race.mgr.event.REventManager.iSend(REventManager.java:823)

      at com.romaric.race.mgr.event.REventManager.sendImmediate(REventManager.java:1583)

      at com.romaric.race.mgr.event.REventManager.sendImmediate(REventManager.java:1567)

      at com.romaric.mcs.mgr.device.object.AMHSDevice.initAMHSDevice(AMHSDevice.java:353)

      at com.romaric.mcs.mgr.device.object.AMHSDevice.<init>(AMHSDevice.java:270)

      at com.romaric.mcs.mgr.device.object.TransportDevice.<init>(TransportDevice.java:143)

      at com.romaric.mcs.mgr.device.object.IBSEMTransportDevice.<init>(IBSEMTransportDevice.java:176)

      at com.romaric.mcs.mgr.device.object.daifuku.MCP7TransportDevice.<init>(MCP7TransportDevice.java:138)

      at com.romaric.mcs.mgr.device.object.daifuku.MCP7TransportDevice.<init>(MCP7TransportDevice.java:124)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

      at com.romaric.race2.mgr.device.object.DeviceFactory.createInstance(DeviceFactory.java:264)

      at com.romaric.race2.mgr.device.object.DeviceFactory.createDevice(DeviceFactory.java:82)

      at com.romaric.race2.mgr.device.object.Device.loadCache(Device.java:769)

      at com.romaric.race2.mgr.device.object.Device.loadCache(Device.java:731)

      at com.romaric.race2.mgr.device.ejb.session.device.DeviceSessionBean.loadDeviceCache(DeviceSessionBean.java:287)

      at com.romaric.mcs.mgr.device.ejb.session.amhs.AMHSDeviceSessionBean.loadDeviceCache(AMHSDeviceSessionBean.java:2816)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.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:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      at org.jboss.ejb.Container.invoke(Container.java:960)

      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)

      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)

      at $Proxy275.loadDeviceCache(Unknown Source)

      at com.romaric.race2.mgr.device.ejb.session.device.DeviceSessionBean.loadCaches(DeviceSessionBean.java:230)

      at com.romaric.mcs.mgr.device.ejb.session.amhs.AMHSDeviceSessionBean.loadCaches(AMHSDeviceSessionBean.java:2892)

      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:597)

      at org.jboss.invocation.Invocation.performCall(Invocation.java:359)

      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)

      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)

      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.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:138)

      at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)

      at org.jboss.ejb.Container.invoke(Container.java:960)

      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)

      at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)

      at $Proxy275.loadCaches(Unknown Source)

      at com.romaric.race.mgr.init.RACEInitializer.initializeSession(RACEInitializer.java:118)

      at com.romaric.race.mgr.init.RACEInitializer.loadCaches(RACEInitializer.java:85)

      at com.romaric.mcs.mgr.init.web.MCSInitServlet.init(MCSInitServlet.java:61)

      at javax.servlet.GenericServlet.init(GenericServlet.java:212)

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4375)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

      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:597)

      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

      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:597)

      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

      at org.jboss.web.WebModule.startModule(WebModule.java:83)

      at org.jboss.web.WebModule.startService(WebModule.java:61)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

      at $Proxy0.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:417)

      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      at $Proxy44.start(Unknown Source)

      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      at $Proxy45.start(Unknown Source)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

      at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      at $Proxy9.deploy(Unknown Source)

      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

      at $Proxy0.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:417)

      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      at $Proxy4.start(Unknown Source)

      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

      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:597)

      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

      at $Proxy5.deploy(Unknown Source)

      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

      at org.jboss.Main.boot(Main.java:200)

      at org.jboss.Main$1.run(Main.java:508)

      at java.lang.Thread.run(Thread.java:619)

      Caused by: javax.jms.InvalidDestinationException: Destination StatisticsQueue does not exist

      at org.hornetq.jms.client.HornetQSession.createProducer(HornetQSession.java:329)

      at com.romaric.race.mgr.event.jms.JMSEventProducer.<init>(JMSEventProducer.java:144)

      ... 202 more

        • 1. Re: InvalidDestinationException
          Clebert Suconic Master

          Maybe you are looking up in one server and performing the create in another server?

           

          I'm not really sure.. can you create a package small as possible, showing the issue.

           

          It seems a missconfig from your side.

          1 of 1 people found this helpful
          • 2. Re: InvalidDestinationException
            Clebert Suconic Master

            just remembered one thing though...

             

            how you're running your server? JBoss6 or 5?

             

             

            If JBoss6 or if you found a way to hack into the planning integration for EAP...

             

             

            There's a deployer on AS6 that may deploy the destination after the server is started, and hence you could eventually have the MDB deployed before the destinations is created.

             

            This was fixed on trunk.  The JCA layer will keep retrying for some time until the deployer has a chance to kick in.

             

            You could either upgrade to trunk, or you could add an explicit @depends to the deployed Bean used by the deployer. (The same MBean name used by management on the destination).

             

            This will be the case only if you're using AS6. If you're using JBoss5, this won't apply as we don't delegate the deployement to the application server on that case.

            1 of 1 people found this helpful
            • 3. Re: InvalidDestinationException
              Mark Swanson Newbie

              Thanks, Clebert. I'm actually using JBoss 4.2.3. I wish I could upgrade to 5.1.0, but that would be quite an undertaking for us. We're stuck for now using EJB 2.0 (2.1?). I discovered we were caching sessions and connections inside the application server (our application uses the same library to connect inside and outside the application server, using a J2EE client). I fixed this, so that we retrieve a connection, create a session, and a producer, each call, per the J2EE specification. Still no luck.

               

              I wonder if I'm using the proper connection factory. We are looking up "ConnectionFactory", but there is also "JmsXA" I guess. We have avoided using this so far, because we don't want the overhead of XA transactions. We handle publishing events ourselves (and not publishing them if a transaction fails). Is this correct?

               

              I wish I could give you a sample program to deploy, but I'm not sure I could duplicate this scenario in a small sample. It is not only at startup that we are having the problem, if I forge ahead and keep the application running, whenever I attempt to publish I also receive the same error. It is at publishing time that we cannot find the destination. I don't believe it has anything to do with receiving on MDBs (which appear to have no trouble).

               

              I tried to download and look into the HornetQ source, but I got lost pretty quickly (it appears we sent a Packet of some sort to bind to a topic ...?). I wish there were an easy way to print out what JMS destinations the Connection can "see" ... that might give me a clue what is wrong (this is what I do when a JNDI lookup fails, I print the ENC for the component - which makes it pretty clear what is "visible" and what is not). Is there a way to do this for a connection? I'm still confused how I can *in one method* look up a JMS destination, succeed, hand it to the connection (which I also just retrieved), and get an "InvalidDestinationException". I don't see how I could be using a different connection.

               

              Thanks so much for your thoughts & time,

               

              Mark

              • 4. Re: InvalidDestinationException
                Mark Swanson Newbie

                Clebert,

                 

                I've attached our HornetQ configuration files, as well as the ra.xml just in case something seems amiss to you.

                 

                Thanks,

                 

                Mark

                • 5. Re: InvalidDestinationException
                  Mark Swanson Newbie

                  Clebert,

                   

                  As you suspected, it was a misconfiguration error. And I think you are a bit of a psychic. We *were* looking up in one server and creating in another server. At first I thought this was impossible, but we have multiple applications running on multiple instances of JBoss / HornetQ. The configuration I was testing on had separately configured JNDI ports, but identically configured HornetQ ports. Thus, application 1 would look up resources in JNDI server 1 and publish on HornetQ server1, but application 2 would look up resources on JNDI server 2 and publish on HornetQ server 1.

                   

                  Frustratingly, I'm surprised there is not an exception thrown on the console if I deploy a 2nd HornetQ instance on the same port (to which it could obviously not bind). A simple console exception might have saved me a week of tearing my hair out and rummaging through my own code. Perhaps there is a scenario that I am not thinking of for which this is valid. In any case, problem solved. Thanks so much for your time & help.


                  Mark

                  • 6. Re: InvalidDestinationException
                    Andy Taylor Master
                    Frustratingly, I'm surprised there is not an exception thrown on the  console if I deploy a 2nd HornetQ instance on the same port (to which

                    You should get an exception if this occurs, its happened to me lots of times, unless the OS is being weird

                    • 7. Re: InvalidDestinationException
                      Mark Swanson Newbie

                      Well, I was testing on a Windows VM (where "weird" is daily life ). Guess I should have done my testing on my Mac OS host. Now I'm curious about what I might have missed. I may duplicate my misconfiguration on UNIX and see if I see anything different.

                       

                      Thanks so much again.

                       

                      Mark

                      • 8. Re: InvalidDestinationException
                        Andy Taylor Master

                        if you had a different windows VM for each server then it wouldnt throw an exception as each would have its own IP address and interface.

                        • 9. Re: InvalidDestinationException
                          Mark Swanson Newbie

                          Oh no. I got that. Just one VM. One guest O.S., but two (sometimes three) application servers hosting different EARs, all *supposed* to have uniquely configured ports for each service (my bad). I guess we deploy these this way because the systems are *meant* to be able to run on separate computers. They are three separate applications. However, we normally just test them all together, unless we're running extremely high throughput tests. I'll get back to you. I'm very curious about this.