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

Outages are not getting created

    Details

      Description

      Pollerd is failing with the following exception:

      2015-02-27 09:02:10,431 WARN [OpenNMS.Poller.DefaultPollContext-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: an unexpected error occured during ListenerThread OpenNMS.Poller.DefaultPollContext
      org.springframework.dao.DataIntegrityViolationException: could not insert: [org.opennms.netmgt.model.OnmsOutage]; SQL [insert into outages (ifLostService, ifRegainedService, ifserviceId, svcLostEventId, svcRegainedEventId, suppressTime, suppressedBy, outageId) values (?, ?, ?, ?, ?, ?, ?, ?)]; constraint [one_outstanding_outage_per_service_idx]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [org.opennms.netmgt.model.OnmsOutage]
      at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:643) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:412) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:375) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:738) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      at org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate.saveOrUpdate(AbstractDaoHibernate.java:410) ~[opennms-dao-15.0.1.jar:?]
      at org.opennms.netmgt.poller.QueryManagerDaoImpl.openOutage(QueryManagerDaoImpl.java:119) ~[opennms-services-15.0.1.jar:?]
      at org.opennms.netmgt.poller.QueryManagerDaoImpl.openOutage(QueryManagerDaoImpl.java:112) ~[opennms-services-15.0.1.jar:?]
      at org.opennms.netmgt.poller.DefaultPollContext$1.run(DefaultPollContext.java:314) ~[opennms-services-15.0.1.jar:?]
      at org.opennms.netmgt.poller.pollables.PendingPollEvent.processPending(PendingPollEvent.java:145) ~[opennms-services-15.0.1.jar:?]
      at org.opennms.netmgt.poller.DefaultPollContext.onEvent(DefaultPollContext.java:407) ~[opennms-services-15.0.1.jar:?]
      at org.opennms.netmgt.eventd.EventIpcManagerDefaultImpl$EventListenerExecutor$2.run(EventIpcManagerDefaultImpl.java:176) [org.opennms.features.events.daemon-15.0.1.jar:?]

        Attachments

          Activity

            People

            • Assignee:
              j-white Jesse White
              Reporter:
              j-white Jesse White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: