Uploaded image for project: 'Horizon Stream'
  1. Horizon Stream
  2. HS-75

Periodic drools issue, "query did not return a unique result"

    XMLWordPrintable

Details

    • Bug
    • Status: Done (View Workflow)
    • Minor
    • Resolution: Done
    • None
    • None
    • HS June 23 - July 7, 2022

    Description

      Does not appear critical for the moment: 

      [horizon-stream-core] 21:22:59.402 ERROR [AlarmLifecycleListenerManager] Error occurred while invoking listener: org.opennms.netmgt.alarmd.drools.DroolsAlarmContext@71723858. Skipping. [horizon-stream-core] javax.persistence.NonUniqueResultException: query did not return a unique result: 31 [horizon-stream-core] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:128) [horizon-stream-core] at org.hibernate.query.internal.AbstractProducedQuery.getSingleResult(AbstractProducedQuery.java:1659) [horizon-stream-core] at org.opennms.horizon.db.dao.impl.AcknowledgmentDaoHibernate.findLatestAckForRefId(AcknowledgmentDaoHibernate.java:208) [horizon-stream-core] at Proxyca54927c_a1e5_4f03_95f0_b603563dc48d.findLatestAckForRefId(Unknown Source) [horizon-stream-core] at Proxyf28cae78_12cc_411b_8fd0_072d3ac28515.findLatestAckForRefId(Unknown Source) [horizon-stream-core] at org.opennms.netmgt.alarmd.drools.DroolsAlarmContext.fetchAcks(DroolsAlarmContext.java:423) [horizon-stream-core] at org.opennms.netmgt.alarmd.drools.DroolsAlarmContext.handleAlarmSnapshot(DroolsAlarmContext.java:301) [horizon-stream-core] at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.lambda$doSnapshot$0(AlarmLifecycleListenerManager.java:112) [horizon-stream-core] at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.forEachListener(AlarmLifecycleListenerManager.java:207) [horizon-stream-core] at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.lambda$doSnapshot$1(AlarmLifecycleListenerManager.java:110) [horizon-stream-core] at org.opennms.horizon.db.dao.impl.SessionUtilsImpl.lambda$withTransaction$0(SessionUtilsImpl.java:19) [horizon-stream-core] at org.apache.aries.jpa.support.impl.XAJpaTemplate.txExpr(XAJpaTemplate.java:62) [horizon-stream-core] at Proxyac6b28eb_4ca6_4872_8aa8_c61b4533b825.txExpr(Unknown Source) [horizon-stream-core] at org.opennms.horizon.db.dao.impl.SessionUtilsImpl.withTransaction(SessionUtilsImpl.java:19) [horizon-stream-core] at Proxyd35b0332_98f7_4559_b189_dcc2f12e21a5.withTransaction(Unknown Source) [horizon-stream-core] at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager.doSnapshot(AlarmLifecycleListenerManager.java:103) [horizon-stream-core] at org.opennms.netmgt.alarmd.AlarmLifecycleListenerManager$1.run(AlarmLifecycleListenerManager.java:78) [horizon-stream-core] at java.base/java.util.TimerThread.mainLoop(Timer.java:556) [horizon-stream-core] at java.base/java.util.TimerThread.run(Timer.java:506)
      

      Attachments

        Activity

          People

            cgorantla Chandra Gorantla
            Mike Mike
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: