Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8413

ConcurrentModificationException in DefaultEventHandlerImpl

    XMLWordPrintable

Details

    Description

      I noticed this message in stdout of a test system. It was processing a Minion trap event so maybe it's an issue related to that specific environment but I'm going to add some defensive code anyway to make sure it's not an issue in other cases:

      Exception in thread "EventIpcManagerDefaultImpl-Thread-3-of-5" java.util.ConcurrentModificationException
      at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
      at java.util.ArrayList$Itr.next(ArrayList.java:851)
      at org.opennms.netmgt.eventd.DefaultEventHandlerImpl$EventHandlerRunnable.run(DefaultEventHandlerImpl.java:123)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124)
      at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            seth Seth Leger
            seth Seth Leger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.