[
http://jira.jboss.com/jira/browse/JBMESSAGING-1146?page=comments#action_1... ]
Tim Fox commented on JBMESSAGING-1146:
--------------------------------------
Ok nice catch.
Actually it will shutdown eventually - but it will just take a long time :)
By default timeout * max_retries seconds = 30 * 25 seconds by default (12.5 minutes).
I'll fix it so it gives up in this case after the standard 30 seconds.
Messaging fails to shutdown when there are no more ManagedConnections
available
-------------------------------------------------------------------------------
Key: JBMESSAGING-1146
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-1146
Project: JBoss Messaging
Issue Type: Bug
Reporter: Carlo de Wolf
Assigned To: Tim Fox
Fix For: Stable branch
In the extremely unlikely event that I cause a connection leak and I shutdown the server,
JBM will not shutdown.
12:01:49,155 WARN [JDBCSupport] SQLException caught, SQLState null code:0- assuming
deadlock detected, try:9
org.jboss.util.NestedSQLException: No ManagedConnections available within configured
blocking timeout ( 30000 [ms] ); - nested throwable: (javax.resource.ResourceException: No
ManagedConnections available within configured blocking timeout ( 30000 [ms] ))
at
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
at
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:449)
at
org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:491)
at
org.jboss.messaging.core.impl.JDBCPersistenceManager.updateDeliveryCount(JDBCPersistenceManager.java:1205)
at org.jboss.messaging.core.impl.ChannelSupport.cancel(ChannelSupport.java:164)
at org.jboss.messaging.core.impl.SimpleDelivery.cancel(SimpleDelivery.java:106)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.localClose(ServerSessionEndpoint.java:1221)
at
org.jboss.jms.server.endpoint.ServerSessionEndpoint.close(ServerSessionEndpoint.java:329)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$close$aop(SessionAdvised.java:72)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$close_N4742752445160157748.invokeNext(SessionAdvised$close_N4742752445160157748.java)
at
org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised$close_N4742752445160157748.invokeNext(SessionAdvised$close_N4742752445160157748.java)
at
org.jboss.jms.server.endpoint.advised.SessionAdvised.close(SessionAdvised.java)
at org.jboss.jms.wireformat.CloseRequest.serverInvoke(CloseRequest.java:66)
at
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
at org.jboss.remoting.Client.invoke(Client.java:1634)
at org.jboss.remoting.Client.invoke(Client.java:548)
at org.jboss.remoting.Client.invoke(Client.java:536)
at
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:187)
at
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:158)
at
org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$close$aop(ClientSessionDelegate.java:152)
at
org.jboss.jms.client.delegate.ClientSessionDelegate$close_N4742752445160157748.invokeNext(ClientSessionDelegate$close_N4742752445160157748.java)
at
org.jboss.jms.client.container.SessionAspect.handleClose(SessionAspect.java:204)
at
org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect25.invoke(SessionAspect25.java)
at
org.jboss.jms.client.delegate.ClientSessionDelegate$close_N4742752445160157748.invokeNext(ClientSessionDelegate$close_N4742752445160157748.java)
at
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at
org.jboss.jms.client.delegate.ClientSessionDelegate$close_N4742752445160157748.invokeNext(ClientSessionDelegate$close_N4742752445160157748.java)
at
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
at
org.jboss.jms.client.delegate.ClientSessionDelegate$close_N4742752445160157748.invokeNext(ClientSessionDelegate$close_N4742752445160157748.java)
at
org.jboss.jms.client.delegate.ClientSessionDelegate.close(ClientSessionDelegate.java)
at
org.jboss.jms.client.JBossConnectionConsumer.doClose(JBossConnectionConsumer.java:338)
at
org.jboss.jms.client.JBossConnectionConsumer.close(JBossConnectionConsumer.java:163)
at
org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.teardownConsumer(JmsServerSessionPool.java:277)
at
org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.stop(JmsServerSessionPool.java:99)
at
org.jboss.resource.adapter.jms.inflow.JmsActivation.teardownSessionPool(JmsActivation.java:567)
at
org.jboss.resource.adapter.jms.inflow.JmsActivation.teardown(JmsActivation.java:321)
at
org.jboss.resource.adapter.jms.inflow.JmsActivation.stop(JmsActivation.java:223)
at
org.jboss.resource.adapter.jms.JmsResourceAdapter.endpointDeactivation(JmsResourceAdapter.java:80)
at
org.jboss.resource.deployment.RARDeployment.endpointDeactivation(RARDeployment.java:287)
at
org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:235)
at
org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
at
org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.deactivate(JBossMessageEndpointFactory.java:323)
at
org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.stop(JBossMessageEndpointFactory.java:200)
at
org.jboss.ejb3.mdb.MessagingContainer.stopProxies(MessagingContainer.java:297)
at org.jboss.ejb3.mdb.MessagingContainer.stop(MessagingContainer.java:290)
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.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:119)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.stop(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira