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

Event Configuration error results in success event after reloading

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.7
    • Fix Version/s: Backlog
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      3411

      Description

      I reconfigured my eventconf.xml. After that I sent an event to uei.opennms.org/internal/eventsConfigChange

      OpenNMS reloaded the file and reported:
      29.10.09 13:17:40
      uei.opennms.org/internal/reloadDaemonConfigSuccessful [+] [-] Edit notifications for event

      The daemon: Eventd configuration changes have successfully been applied.

      But nothign has happened.
      In the eventd.log I can see a lot of errors (which I dont understand but that is not part of the bug) but the resulting event is a success event.
      But It should know that it failed (2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: (reason, Failed reloading data for object 'org.opennms.
      netmgt.config.EventConfiguration@72a0c082' from file '/opt/opennms/etc/eventconf.x))

      Most of the stacktrace:
      Caused by: org.opennms.netmgt.dao.CastorDataAccessFailureException: Failed to marshal/unmarshal XML file while unmarshalling XML file: org.e
      xolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'mask' in ClassDescriptor of events

      {File: [not available]; line: 2; co lumn: 9}

      ; nested exception is org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'mask' in ClassDescriptor of events

      {File: [not available]; line: 2; column: 9}

      at org.opennms.netmgt.dao.castor.CastorExceptionTranslator.translate(CastorExceptionTranslator.java:60)
      at org.opennms.netmgt.dao.castor.CastorUtils.unmarshalWithTranslatedExceptions(CastorUtils.java:281)
      at org.opennms.netmgt.config.DefaultEventConfDao.loadAndProcessEvents(DefaultEventConfDao.java:162)
      at org.opennms.netmgt.config.DefaultEventConfDao.translateConfig(DefaultEventConfDao.java:142)
      at org.opennms.netmgt.config.DefaultEventConfDao.translateConfig(DefaultEventConfDao.java:79)
      at org.opennms.netmgt.dao.castor.AbstractCastorConfigDao.loadConfig(AbstractCastorConfigDao.java:90)
      at org.opennms.netmgt.dao.castor.AbstractCastorConfigDao$CastorReloadCallback.reload(AbstractCastorConfigDao.java:127)
      at org.opennms.netmgt.dao.support.FileReloadContainer.reload(FileReloadContainer.java:212)
      ... 4 more
      Caused by: org.exolab.castor.xml.MarshalException: unable to find FieldDescriptor for 'mask' in ClassDescriptor of events

      {File: [not availab le]; line: 2; column: 9}

      at org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:755)
      at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:721)
      at org.opennms.netmgt.dao.castor.CastorUtils.unmarshal(CastorUtils.java:193)
      at org.opennms.netmgt.dao.castor.CastorUtils.unmarshal(CastorUtils.java:188)
      at org.opennms.netmgt.dao.castor.CastorUtils.unmarshalWithTranslatedExceptions(CastorUtils.java:279)
      ... 10 more
      Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'mask' in ClassDescriptor of events
      at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1925)
      at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1353)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:709)
      ... 13 more
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: Event {
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: uuid = <not-set>
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: uei = uei.opennms.org/internal/reloadDaemonConfigSucces
      sful
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: src = Eventd:BroadcastEventProcessor
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: iface = null
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: time = Thursday, October 29, 2009 12:17:40 PM GMT
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: parms

      { 2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: (daemonName, Eventd) 2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: (reason, Failed reloading data for object 'org.opennms. netmgt.config.EventConfiguration@72a0c082' from file '/opt/opennms/etc/eventconf.x) 2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: }

      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] DefaultEventHandlerImpl: }
      2009-10-29 13:17:40,443 DEBUG [EventHandlerPool-fiber4] EventConfData: Match found using key: EventKey

        Attachments

          Activity

            People

            Assignee:
            jeffg Jeff Gehlbach
            Reporter:
            crescens@inbox.lv crescens (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: