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

QueryManagerDaoImpl crashes in getNodeServices()

    Details

      Description

      When running the 15 snapshot code, Alejandro ran into a crash in the pollers that was due to a typo in my Hibernate implementation of QueryManager:

      2015-01-16 12:31:05,875 WARN  [Poller:PollerEventProcessor-Thread] o.o.n.e.EventIpcManagerDefaultImpl: run: an unexpected error occured during ListenerThread Poller:PollerEventProcessor
      org.springframework.orm.hibernate3.HibernateQueryException: could not resolve property: monitoredService of: org.opennms.netmgt.model.OnmsMonitoredService; nested exception is org.hibernate.QueryException: could not resolve property: monitoredService of: org.opennms.netmgt.model.OnmsMonitoredService
      	at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:656) ~[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.executeFind(HibernateTemplate.java:344) ~[org.apache.servicemix.bundles.spring-orm-3.2.9.RELEASE_1.jar:?]
      	at org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate.findMatching(AbstractDaoHibernate.java:294) ~[opennms-dao-15.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.poller.QueryManagerDaoImpl.getNodeServices(QueryManagerDaoImpl.java:180) ~[opennms-services-15.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.poller.PollerEventProcessor.serviceReschedule(PollerEventProcessor.java:602) ~[opennms-services-15.0.0-SNAPSHOT.jar:?]
      	at org.opennms.netmgt.poller.PollerEventProcessor.onEvent(PollerEventProcessor.java:577) ~[opennms-services-15.0.0-SNAPSHOT.jar:?]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: