Description
After deploying activemq-rar to EAP 6 and starting the server, it sometimes gives NoSuchElementException during shutdown, like:
17:06:12,471 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) Exception in thread "ResourceAdapterDeploymentService Thread Pool – 1" java.util.NoSuchElementException
17:06:12,475 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at java.util.HashMap$HashIterator.nextEntry(HashMap.java:925)
17:06:12,475 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at java.util.HashMap$KeyIterator.next(HashMap.java:956)
17:06:12,475 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at org.apache.activemq.ra.ActiveMQResourceAdapter.stop(ActiveMQResourceAdapter.java:152)
17:06:12,478 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService.unregisterAll(AbstractResourceAdapterDeploymentService.java:188)
17:06:12,478 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterXmlDeploymentService.unregisterAll(ResourceAdapterXmlDeploymentService.java:155)
17:06:12,479 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$2.run(AbstractResourceAdapterDeploymentService.java:299)
17:06:12,480 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
17:06:12,480 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
17:06:12,480 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at java.lang.Thread.run(Thread.java:745)
17:06:12,480 ERROR [stderr] (ResourceAdapterDeploymentService Thread Pool – 1) at org.jboss.threads.JBossThread.run(JBossThread.java:122)