7 Replies Latest reply on Aug 23, 2009 11:04 AM by rnicholson10

    Bridge - Once and only once, connections failing after idle

    rnicholson10

      Since getting QOS_ONCE_AND_ONLY_ONCE bridges up and running I have run into an issue with the bridge failing after a period of idle time. I'm not sure exactly what amount of time is required to cause the fail but if I send no messages overnight the failure occurs the next time I send messages.

      I should point out that if I send messages consistently over the night the problem does not occur. Nor does it occur if I use QOS_DUPLICATES_OK or QOS_AT_MOST_ONCE even if there is idle time.

      Here the setup:

      Machine1: no bridge deployed here,
      Machine2: 2 Bridges deployed here.
      InputToEngineBridge takes messages from machine1 and transports them to a queue on machine2.
      EngineToHandlerBridge takes messages from machine2 and transports them to a queue on machine1.

      The "User null is NOT authenticated" error seems to pop up a lot but does not give much insight into what is going wrong. Any ideas on how I might debug this further and get to the root of the problem? Bear in mind I have to wait overnight each time I want to test it again.

      Error on machine1:

      2009-04-29 09:41:51,920 DEBUG [org.jboss.remoting.callback.ServerInvokerCallbackHandler] (http-0.0.0.0-8080-2) Session id for callback handler is 4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1
      2009-04-29 09:41:51,920 DEBUG [org.jboss.remoting.callback.ServerInvokerCallbackHandler] (http-0.0.0.0-8080-2) ServerInvokerCallbackHandler[4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1] using callbackTimeout value 10000
      2009-04-29 09:41:51,920 DEBUG [org.jboss.remoting.callback.DefaultCallbackErrorHandler] (http-0.0.0.0-8080-2) DefaultCallbackErrorHandler[UNITIALIZED] setting server invoker to SocketServerInvoker[jbdevapp1:4457]
      2009-04-29 09:41:51,921 DEBUG [org.jboss.remoting.callback.DefaultCallbackErrorHandler] (http-0.0.0.0-8080-2) DefaultCallbackErrorHandler[SocketServerInvoker[jbdevapp1:4457]] setting callback handler to ServerInvokerCallbackHandler[4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1]
      2009-04-29 09:41:51,921 DEBUG [org.jboss.jms.server.remoting.JMSServerInvocationHandler] (http-0.0.0.0-8080-2) adding callback handler ServerInvokerCallbackHandler[4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1]
      2009-04-29 09:41:51,921 DEBUG [org.jboss.jms.server.remoting.JMSServerInvocationHandler] (http-0.0.0.0-8080-2) found calllback handler for remoting session ...-fu3s39rb-4by UID=4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by
      2009-04-29 09:41:51,923 ERROR [org.jboss.messaging.util.ExceptionUtil] (http-0.0.0.0-8080-2) ConnectionFactoryEndpoint[jboss.messaging.connectionfactory:service=ConnectionFactory] createFailoverConnectionDelegate [4c4-nr93s3uf-1-kq7io2uf-y6fxwl-b53gs4]
      javax.jms.JMSSecurityException: User null is NOT authenticated
       at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
       at sun.reflect.GeneratedMethodAccessor301.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
       at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
       at javax.management.StandardMBean.invoke(Unknown Source)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy102.authenticate(Unknown Source)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
       at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
       at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
       at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
       at org.jboss.remoting.Client.invoke(Client.java:1708)
       at org.jboss.remoting.Client.invoke(Client.java:612)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:171)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
       at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
       at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_8924668.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_8924668.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
       at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
       at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
       at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
       at com.paddypower.spe.test.servlet.TestMessageTwoServlet.doGet(TestMessageTwoServlet.java:87)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
       at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      2009-04-29 09:41:51,924 DEBUG [org.jboss.jms.server.remoting.JMSServerInvocationHandler] (http-0.0.0.0-8080-2) removing callback handler ServerInvokerCallbackHandler[4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1]
      2009-04-29 09:41:51,924 DEBUG [org.jboss.remoting.InvokerRegistry] (http-0.0.0.0-8080-2) removed org.jboss.remoting.transport.local.LocalClientInvoker@184b483 from registry
      2009-04-29 09:41:51,924 DEBUG [org.jboss.remoting.ServerInvoker] (http-0.0.0.0-8080-2) ServerInvoker (SocketServerInvoker[172.16.113.11:54512434]) removing client callback handler with session id of 4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rb-4by+4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1.
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.transport.bisocket.BisocketServerInvoker] (http-0.0.0.0-8080-2) unrecognized listener ID: 4sg35b-lwxf6y-fu2oi7qk-1-fu3s39rk-4c1
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.InvokerRegistry] (http-0.0.0.0-8080-2) removed org.jboss.remoting.transport.local.LocalClientInvoker@1670f7e from registry
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.transport.socket.SocketServerInvoker] (http-0.0.0.0-8080-2) SocketServerInvoker[172.16.113.11:54512434] stopped threads in clientpool
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.transport.socket.SocketServerInvoker] (http-0.0.0.0-8080-2) SocketServerInvoker[172.16.113.11:54512434] stopped threads in threadpool
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.transport.socket.SocketServerInvoker] (http-0.0.0.0-8080-2) SocketServerInvoker[172.16.113.11:54512434] exiting
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.ServerInvoker] (http-0.0.0.0-8080-2) SocketServerInvoker[172.16.113.11:54512434] stopped
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.InvokerRegistry] (http-0.0.0.0-8080-2) decremented org.jboss.remoting.transport.local.LocalClientInvoker@441e6e's count, current count 2
      2009-04-29 09:41:51,925 DEBUG [org.jboss.remoting.InvokerRegistry] (http-0.0.0.0-8080-2) decremented org.jboss.remoting.transport.local.LocalClientInvoker@29e18a's count, current count 2
      


      Warning on machine2 for InputToEngineBridge:

      2009-04-29 09:43:05,350 WARN [org.jboss.jms.server.bridge.Bridge] (Thread-45) jboss.messaging:name=InputToEngineBridge,service=Bridge Failed to set up connections
      javax.jms.JMSSecurityException: User null is NOT authenticated
       at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
       at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
       at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
       at javax.management.StandardMBean.invoke(Unknown Source)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy99.authenticate(Unknown Source)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
       at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
       at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
       at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
       at org.jboss.remoting.Client.invoke(Client.java:1708)
       at org.jboss.remoting.Client.invoke(Client.java:612)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:171)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
       at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
       at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_23408225.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_23408225.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
       at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:128)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:123)
       at org.jboss.jms.server.bridge.Bridge.createConnection(Bridge.java:888)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:1015)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1223)
       at org.jboss.jms.server.bridge.Bridge.access$1600(Bridge.java:68)
       at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1569)
       at java.lang.Thread.run(Unknown Source)
      


      Warning on machine2 for EngineToHandlerBridge:

      2009-04-29 09:42:30,357 WARN [org.jboss.jms.server.bridge.Bridge] (Thread-44) jboss.messaging:name=EngineToHandlerBridge,service=Bridge Failed to set up connections
      javax.jms.JMSSecurityException: User null is NOT authenticated
       at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
       at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
       at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
       at javax.management.StandardMBean.invoke(Unknown Source)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy99.authenticate(Unknown Source)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
       at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
       at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
       at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
       at org.jboss.remoting.Client.invoke(Client.java:1708)
       at org.jboss.remoting.Client.invoke(Client.java:612)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:171)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
       at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
       at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_23408225.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_23408225.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
       at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:128)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:123)
       at org.jboss.jms.server.bridge.Bridge.createConnection(Bridge.java:888)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:1011)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1223)
       at org.jboss.jms.server.bridge.Bridge.access$1600(Bridge.java:68)
       at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1569)
       at java.lang.Thread.run(Unknown Source)
      2009-04-29 09:42:30,357 ERROR [org.jboss.jms.client.container.ClosedInterceptor] (Thread-44) ClosedInterceptor.ClientSessionDelegate[ab-fyl5q2uf-1-lne3q2uf-48h2km-m53gs4]: method getXAResource() did not go through, the interceptor is CLOSED
      2009-04-29 09:42:30,357 WARN [org.jboss.jms.server.bridge.Bridge] (Thread-44) jboss.messaging:name=EngineToHandlerBridge,service=Bridge Failed to set up connections, will retry after a pause of 5000 ms
      


      Error on machine2, similar to error on machine1:

      2009-04-29 09:43:05,483 ERROR [org.jboss.messaging.util.ExceptionUtil] (Thread-44) ConnectionFactoryEndpoint[jboss.messaging.connectionfactory:service=ConnectionFactory] createFailoverConnectionDelegate [h84-ziu4s3uf-1-lne3q2uf-48h2km-m53gs4]
      javax.jms.JMSSecurityException: User null is NOT authenticated
       at org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore.authenticate(JBossASSecurityMetadataStore.java:223)
       at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
       at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
       at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
       at javax.management.StandardMBean.invoke(Unknown Source)
       at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy99.authenticate(Unknown Source)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:233)
       at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint.createConnectionDelegate(ServerConnectionFactoryEndpoint.java:171)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectionDelegate$aop(ConnectionFactoryAdvised.java:108)
       at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised.createConnectionDelegate(ConnectionFactoryAdvised.java)
       at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDelegateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:91)
       at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
       at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
       at org.jboss.remoting.Client.invoke(Client.java:1708)
       at org.jboss.remoting.Client.invoke(Client.java:612)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:171)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
       at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
       at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_23408225.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_23408225.java)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
       at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
       at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:128)
       at org.jboss.jms.client.JBossConnectionFactory.createXAConnection(JBossConnectionFactory.java:123)
       at org.jboss.jms.server.bridge.Bridge.createConnection(Bridge.java:888)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjects(Bridge.java:1011)
       at org.jboss.jms.server.bridge.Bridge.setupJMSObjectsWithRetry(Bridge.java:1223)
       at org.jboss.jms.server.bridge.Bridge.access$1600(Bridge.java:68)
       at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1569)
       at java.lang.Thread.run(Unknown Source)
      
      




        • 1. Re: Bridge - Once and only once, connections failing after i
          rnicholson10

          Oh, and I'm using 1.4.3.GA of messaging.

          • 2. Re: Bridge - Once and only once, connections failing after i
            gaohoward

            Hi, can you please give the configuration for your birdges? Thanks.

            • 3. Re: Bridge - Once and only once, connections failing after i
              rnicholson10

              From machine 1 to machine2:

              <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=InputToEngineBridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
              
               <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
               <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
              
               <attribute name="SourceDestinationLookup">/queue/speQueueToEngine</attribute>
               <!-- <attribute name="SourceUsername">guest</attribute>
               <attribute name="SourcePassword">guest</attribute> -->
               <attribute name="TargetDestinationLookup">/queue/speQueueFromInput</attribute>
               <!-- <attribute name="TargetUsername">guest</attribute>
               <attribute name="TargetPassword">guest</attribute> -->
              
               <!-- Optional: The Quality Of Service mode to use, one of:
               QOS_AT_MOST_ONCE = 0;
               QOS_DUPLICATES_OK = 1;
               QOS_ONCE_AND_ONLY_ONCE = 2;-->
               <attribute name="QualityOfServiceMode">2</attribute>
              
               <attribute name="MaxBatchSize">1</attribute>
               <attribute name="MaxBatchTime">-1</attribute>
               <attribute name="FailureRetryInterval">5000</attribute>
               <attribute name="MaxRetries">-1</attribute>
               <attribute name="AddMessageIDInHeader">false</attribute>
              </mbean>
              
              


              From machine2 to machine1:

              <mbean code="org.jboss.jms.server.bridge.BridgeService" name="jboss.messaging:service=Bridge,name=EngineToHandlerBridge" xmbean-dd="xmdesc/Bridge-xmbean.xml">
              
               <depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=JMSProvider</depends>
               <depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
              
               <attribute name="SourceDestinationLookup">/queue/speQueueToHandler</attribute>
               <!-- <attribute name="SourceUsername">guest</attribute>
               <attribute name="SourcePassword">guest</attribute> -->
               <attribute name="TargetDestinationLookup">/queue/speQueueFromEngine</attribute>
               <!-- <attribute name="TargetUsername">guest</attribute>
               <attribute name="TargetPassword">guest</attribute> -->
              
               <!-- Optional: The Quality Of Service mode to use, one of:
               QOS_AT_MOST_ONCE = 0;
               QOS_DUPLICATES_OK = 1;
               QOS_ONCE_AND_ONLY_ONCE = 2;-->
               <attribute name="QualityOfServiceMode">2</attribute>
              
               <attribute name="MaxBatchSize">1</attribute>
               <attribute name="MaxBatchTime">-1</attribute>
               <attribute name="FailureRetryInterval">5000</attribute>
               <attribute name="MaxRetries">-1</attribute>
               <attribute name="AddMessageIDInHeader">false</attribute>
              </mbean>
              



              • 4. Re: Bridge - Once and only once, connections failing after i
                rnicholson10

                Any info on this issue?

                • 5. Re: Bridge - Once and only once, connections failing after i
                  gaohoward

                  Sorry, haven't got time to investigate. I'll come back once I've got something.

                  • 6. Re: Bridge - Once and only once, connections failing after i
                    rnicholson10

                    No problem, thanks.

                    • 7. Re: Bridge - Once and only once, connections failing after i
                      rnicholson10

                      Howard,

                      I'd like to raise another point on this issue. Every time this happens we simply restart each JBoss instance and it all starts working again. The main problem being that when the issue arises we cannot send messages to the local queue, so we essentially have lost these messages before we restart JBoss.

                      Example:

                      Box1: Just has a locally deployed queue
                      Box2: Contains the remote queue we wish to send to and the bridge from the local queue on box1 to the remote queue here.

                      When the bridge dies, we cannot send any messages to the local queue on box1. Surely we should always be able to send messages to the local queue on box1? The bridge should not be able to effect this action. If this happened then repairing the bridge would let messages be delivered to the remote queue once more with no loss of messages.

                      I know you can't reproduce the error I'm getting but at least if all messages always made onto onto the local queue recovery would be possible.

                      I think that a good rule of thumb would be: "If the local queue is deployed correctly, it should always be possible to put messages on this queue".

                      What do you think?

                      Ross