[ 
https://issues.apache.org/jira/browse/AMQ-5811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14582967#comment-14582967
 ] 

ASF GitHub Bot commented on AMQ-5811:
-------------------------------------

GitHub user gaohoward opened a pull request:

    https://github.com/apache/activemq/pull/112

    https://issues.apache.org/jira/browse/AMQ-5811

    Added synchronization blocks around sentitive code to
    prevent concurrent modification of the HashMap.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gaohoward/activemq master_AMQ-5811

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq/pull/112.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #112
    
----
commit c3ee94a078b3142a490453f9af38287114b25ef0
Author: Howard Gao <h...@redhat.com>
Date:   2015-06-12T05:22:51Z

    https://issues.apache.org/jira/browse/AMQ-5811
    
    Added synchronization blocks around sentitive code to
    prevent concurrent modification of the HashMap.

----


> NoSuchElementException during resource adapter shutdown in EAP 6
> ----------------------------------------------------------------
>
>                 Key: AMQ-5811
>                 URL: https://issues.apache.org/jira/browse/AMQ-5811
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: RAR
>    Affects Versions: 5.11.1
>            Reporter: Howard Gao
>             Fix For: 5.12.0
>
>
> After deploying activemq-rar to EAP 6 and starting the server, it sometimes 
> gives NoSuchElementException during shutdown, like:
> {quote}
> 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)
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to