Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2238

ConcurrentModificationException in MBEanServerImpl.queryNames

XMLWordPrintable

      I am using JBoss 4.0.2 and have written some code to perform a query on an MBean server, but I get a concurrent modification exception. The stack trace is:

      java.util.ConcurrentModificationException
      at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
      at java.util.HashMap$ValueIterator.next(HashMap.java:812)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.findEntries(BasicMBeanRegistry.java:634)
      at org.jboss.mx.server.MBeanServerImpl.queryNames(MBeanServerImpl.java:492)

      Has anyone else encountered this problem? Surely I am not supposed to synchronise all access to the MBean server?

      Thanks in advance.

            starksm64 Scott Stark (Inactive)
            dtran1_jira Doug Tran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: