Announcement Announcement Module
Collapse
No announcement yet.
JMS: Too many connections, ResourceAllocation Exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMS: Too many connections, ResourceAllocation Exception

    We got this exception: javax.jms.ResourceAllocationException: too many open connections. What does this mean? How can we resolve this issue?

    Code:
    2010-04-22 14:25:50,876 ERROR [legacy.channelPoolTaskExecutor-2] handler.LoggingHandler - org.springframework.integration.message.MessageHandlingException: error occurred in message handler [ServiceActivator for [org.springframework.integration.handler.MessageMappingMethodInvoker@708568]]
            at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:65)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90)
            at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
            at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)
            at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:94)
            at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:223)
            at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)
            at org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:76)
            at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:59)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90)
            at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
            at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)
            at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:222)
            at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)
            at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:119)
            at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:107)
            at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:59)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.access$0(UnicastingDispatcher.java:93)
            at org.springframework.integration.dispatcher.UnicastingDispatcher$1.run(UnicastingDispatcher.java:85)
            at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:49)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: org.springframework.jms.ResourceAllocationException: too many open connections; nested exception is javax.jms.ResourceAllocationException: too many open connections
            at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:298)
            at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)
            at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
            at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)
            at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:617)
            at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:609)
            at org.springframework.integration.jms.JmsSendingMessageHandler.handleMessage(JmsSendingMessageHandler.java:62)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
            at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90)
            at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
            at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)
            at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:222)
            at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)
            at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:119)
            at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:107)
            at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:59)
            ... 25 more
    Caused by: javax.jms.ResourceAllocationException: too many open connections
            at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:513)
            at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1044)
            at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:2699)
            at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36)
            at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:186)
            at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:239)
            at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:58)
            at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.doCreateConnection(UserCredentialsConnectionFactoryAdapter.java:174)
            at org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter.createConnection(UserCredentialsConnectionFactoryAdapter.java:149)
            at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
            at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461)
            ... 38 more

  • #2
    connection pooling?

    Comment

    Working...
    X