2 Replies Latest reply on May 16, 2008 1:12 PM by Harish Krishnamurthy

    ThreadPoolFullException

    Igor Petrakov Newbie

      I'm using clustered JBoss 4.2.2 on two Linux boxes.

      I have a stand-alone client that uses the HA-JNDI to post messages to 10 different queues. They are retrieved round-robin style by each of the two nodes.

      After running for a little while, I get this error:

      WARN [BasicQueue] Caught unusual exception sending message to receiver.
      org.jboss.util.threadpool.ThreadPoolFullException: java.lang.InterruptedException
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:212)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:206)
      at org.jboss.mq.server.ClientConsumer.queueMessageForSending(ClientConsumer.java:125)
      at org.jboss.mq.server.BasicQueue.queueMessageForSending(BasicQueue.java:1140)
      at org.jboss.mq.server.BasicQueue.internalAddMessage(BasicQueue.java:1111)
      at org.jboss.mq.server.BasicQueue.access$000(BasicQueue.java:76)
      at org.jboss.mq.server.BasicQueue$AddMessagePostCommitTask.run(BasicQueue.java:1359)
      at org.jboss.mq.pm.TxManager.addPostCommitTask(TxManager.java:162)
      at org.jboss.mq.server.BasicQueue.performOrPrepareAddMessage(BasicQueue.java:411)
      at org.jboss.mq.server.BasicQueue.addMessage(BasicQueue.java:383)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:76)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:180)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:415)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:399)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:106)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:168)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:114)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
      at java.lang.Thread.run(Thread.java:619)
      21:08:53,081 WARN [BasicQueue] Caught unusual exception sending message to receiver.
      org.jboss.util.threadpool.ThreadPoolFullException: java.lang.InterruptedException
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:212)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:206)
      at org.jboss.mq.server.ClientConsumer.queueMessageForSending(ClientConsumer.java:125)
      at org.jboss.mq.server.BasicQueue.queueMessageForSending(BasicQueue.java:1140)
      at org.jboss.mq.server.BasicQueue.internalAddMessage(BasicQueue.java:1111)
      at org.jboss.mq.server.BasicQueue.access$000(BasicQueue.java:76)
      at org.jboss.mq.server.BasicQueue$AddMessagePostCommitTask.run(BasicQueue.java:1359)
      at org.jboss.mq.pm.TxManager.addPostCommitTask(TxManager.java:162)
      at org.jboss.mq.server.BasicQueue.performOrPrepareAddMessage(BasicQueue.java:411)
      at org.jboss.mq.server.BasicQueue.addMessage(BasicQueue.java:383)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:76)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:180)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:415)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:399)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:106)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:168)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:114)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
      at java.lang.Thread.run(Thread.java:619)
      21:08:53,080 WARN [BasicQueue] Caught unusual exception sending message to receiver.
      org.jboss.util.threadpool.ThreadPoolFullException: java.lang.InterruptedException
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:212)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:206)
      at org.jboss.mq.server.ClientConsumer.queueMessageForSending(ClientConsumer.java:125)
      at org.jboss.mq.server.BasicQueue.queueMessageForSending(BasicQueue.java:1140)
      at org.jboss.mq.server.BasicQueue.internalAddMessage(BasicQueue.java:1111)
      at org.jboss.mq.server.BasicQueue.access$000(BasicQueue.java:76)
      at org.jboss.mq.server.BasicQueue$AddMessagePostCommitTask.run(BasicQueue.java:1359)
      at org.jboss.mq.pm.TxManager.addPostCommitTask(TxManager.java:162)
      at org.jboss.mq.server.BasicQueue.performOrPrepareAddMessage(BasicQueue.java:411)
      at org.jboss.mq.server.BasicQueue.addMessage(BasicQueue.java:383)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:76)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:180)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:415)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:399)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:106)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:168)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:114)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
      at java.lang.Thread.run(Thread.java:619)
      21:08:53,080 WARN [BasicQueue] Caught unusual exception sending message to receiver.
      org.jboss.util.threadpool.ThreadPoolFullException: java.lang.InterruptedException
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:212)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:206)
      at org.jboss.mq.server.ClientConsumer.queueMessageForSending(ClientConsumer.java:125)
      at org.jboss.mq.server.BasicQueue.queueMessageForSending(BasicQueue.java:1140)
      at org.jboss.mq.server.BasicQueue.internalAddMessage(BasicQueue.java:1111)
      at org.jboss.mq.server.BasicQueue.access$000(BasicQueue.java:76)
      at org.jboss.mq.server.BasicQueue$AddMessagePostCommitTask.run(BasicQueue.java:1359)
      at org.jboss.mq.pm.TxManager.addPostCommitTask(TxManager.java:162)
      at org.jboss.mq.server.BasicQueue.performOrPrepareAddMessage(BasicQueue.java:411)
      at org.jboss.mq.server.BasicQueue.addMessage(BasicQueue.java:383)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:76)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:180)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:415)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:399)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:106)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:168)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:114)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
      at java.lang.Thread.run(Thread.java:619)
      21:08:53,080 WARN [BasicQueue] Caught unusual exception sending message to receiver.
      org.jboss.util.threadpool.ThreadPoolFullException: java.lang.InterruptedException
      at org.jboss.util.threadpool.BasicThreadPool.execute(BasicThreadPool.java:417)
      at org.jboss.util.threadpool.BasicThreadPool.runTaskWrapper(BasicThreadPool.java:192)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:212)
      at org.jboss.util.threadpool.BasicThreadPool.run(BasicThreadPool.java:206)
      at org.jboss.mq.server.ClientConsumer.queueMessageForSending(ClientConsumer.java:125)
      at org.jboss.mq.server.BasicQueue.queueMessageForSending(BasicQueue.java:1140)
      at org.jboss.mq.server.BasicQueue.internalAddMessage(BasicQueue.java:1111)
      at org.jboss.mq.server.BasicQueue.access$000(BasicQueue.java:76)
      at org.jboss.mq.server.BasicQueue$AddMessagePostCommitTask.run(BasicQueue.java:1359)
      at org.jboss.mq.pm.TxManager.addPostCommitTask(TxManager.java:162)
      at org.jboss.mq.server.BasicQueue.performOrPrepareAddMessage(BasicQueue.java:411)
      at org.jboss.mq.server.BasicQueue.addMessage(BasicQueue.java:383)
      at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:76)
      at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:180)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:415)
      at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:399)
      at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:106)
      at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:168)
      at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:226)
      at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:112)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:114)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:419)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
      ...

      Seems to be the same error as this:
      http://www.techienuggets.com/Detail?tx=11467

      Any answers? Any additional info I need to provide?

      Thanks,
      I. Pe.