title: Using spring-boot-starter-jta-atomikos throw error while trying to recycle exception
body: <p>i am use spring-boot(version is 1.4.1.RELEASE), spring-boot-starter-jta-atomikos and activemq all set by autoconfig, i also add connection pool properties like</p>
  
  <pre><code># The maximum size of the pool.
  spring.jta.atomikos.connectionfactory.max-pool-size=15
  # The minimum size of the pool
  spring.jta.atomikos.connectionfactory.min-pool-size=10
  </code></pre>
  
  <p>but when add connection pool properties it will throw exception like</p>
  
  <pre><code>2016-11-08 05:30:07 [WARN] Slf4jLogger- atomikos connection pool 'jmsConnectionFactory': error while trying to recycle java.util.NoSuchElementException
      at java.util.ArrayList$Itr.next(ArrayList.java:834)
      at com.atomikos.jms.AtomikosJmsConnectionProxy.isInactiveInTransaction(AtomikosJmsConnectionProxy.java:383)
      at com.atomikos.jms.AtomikosPooledJmsConnection.canBeRecycledForCallingThread(AtomikosPooledJmsConnection.java:165)
      at com.atomikos.datasource.pool.ConnectionPool.recycleConnectionIfPossible(ConnectionPool.java:127)
      at com.atomikos.datasource.pool.ConnectionPool.findExistingOpenConnectionForCallingThread(ConnectionPool.java:184)
      at com.atomikos.datasource.pool.ConnectionPool.borrowConnection(ConnectionPool.java:149)
      at com.atomikos.jms.AtomikosConnectionFactoryBean.createConnection(AtomikosConnectionFactoryBean.java:616)
      at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.access$100(AbstractPollingMessageListenerContainer.java:75)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer$MessageListenerContainerResourceFactory.createConnection    (AbstractPollingMessageListenerContainer.java:484)
      at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:312)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:280)
      at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:235)
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1166)
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1158)
      at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1055)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>how to fix this problem ? thank</p>