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

IllegalStateException when restoring persisted sessions in Drools

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: Meridian-2017.1.5
    • Fix Version/s: 22.0.2
    • Component/s: Correlator
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      CentOS 6.9 x86_64

      Description

      When OpenNMS is restarted while a rule-set exists with persist=state="true", the saved KIE session is not successfully restored.
      Instead, a IllegalStateException is thrown for each fact that should have been inserted:

      2018-03-06 11:04:40,668 WARN  [DroolsCorrelationEngine-SampleEngine-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: an unexpected error occured during ListenerThread DroolsCorrelationEngine-SampleEngine
      java.lang.IllegalStateException: Illegal method call. This session was previously disposed.
              at org.drools.core.impl.StatefulKnowledgeSessionImpl.checkAlive(StatefulKnowledgeSessionImpl.java:1270) ~[drools-core-6.5.0.Final.jar:6.5.0.Final]
              at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1534) ~[drools-core-6.5.0.Final.jar:6.5.0.Final]
              at org.drools.core.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:1481) ~[drools-core-6.5.0.Final.jar:6.5.0.Final]
              at org.opennms.netmgt.correlation.drools.DroolsCorrelationEngine.correlate(DroolsCorrelationEngine.java:124) ~[drools-correlation-engine-2017.1.5.jar:?]
              at org.opennms.netmgt.correlation.Correlator$EngineAdapter.onEvent(Correlator.java:91) ~[opennms-correlator-2017.1.5.jar:?]
              at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:183) [org.opennms.features.events.daemon-2017.1.5.jar:?]
              at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) [?:1.8.0_92]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
              at org.opennms.core.concurrent.LogPreservingThreadFactory$2.run(LogPreservingThreadFactory.java:106) [opennms-util-2017.1.5.jar:?]
              at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wkeaney Will Keaney
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: