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

IllegalMonitorStateException in Poller ReentrantLock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 20.0.0
    • Fix Version/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      In issue NMS-9438, a user pasted logs that indicate an unexpected exception being thrown with the new Poller lock.

      Exception in thread "Poller-Thread-2-of-30" java.lang.IllegalMonitorStateException
      	at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:151)
      	at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1261)
      	at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:457)
      	at org.opennms.netmgt.poller.pollables.PollableNode.releaseTreeLock(PollableNode.java:263)
      	at org.opennms.netmgt.poller.pollables.PollableElement.releaseTreeLock(PollableElement.java:210)
      	at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:261)
      	at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:241)
      	at org.opennms.netmgt.poller.pollables.PollableService.doRun(PollableService.java:404)
      	at org.opennms.netmgt.poller.pollables.PollableService.run(PollableService.java:379)
      	at org.opennms.netmgt.scheduler.Schedule.run(Schedule.java:142)
      	at org.opennms.netmgt.scheduler.Schedule$ScheduleEntry.run(Schedule.java:86)
      	at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:179)
      	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:748)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              seth Seth Leger (Inactive)
              Reporter:
              seth Seth Leger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration