Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8890

Improve error log when registering a listener refering to missing class

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 9.1
    • Component/s: Core
    • Tags:
    • Backlog priority:
      50
    • Team:
      AT
    • Sprint:
      nxAT Sprint 9.1.2

      Description

      Error is visible when uninstalling CMF for instance: currently a config file with a listener is not removed from the config folder, so the listener fails to register but error is confusing

      2012-02-18 12:25:31,436 ERROR [org.nuxeo.common.xmap.XValueFactory] Cannot load class: java.lang.ClassNotFoundException: org.nuxeo.cm.event.MailInjectionList
      ener
      2012-02-18 12:25:31,437 ERROR [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Failed to register event listener: CmMailInjectionListener
      java.lang.IllegalArgumentException: Listener extension must define either a class or a script
              at org.nuxeo.ecm.core.event.impl.EventListenerDescriptor.initListener(EventListenerDescriptor.java:139)
              at org.nuxeo.ecm.core.event.impl.EventListenerList.add(EventListenerList.java:60)
              at org.nuxeo.ecm.core.event.impl.EventServiceImpl.addEventListener(EventServiceImpl.java:121)
              at org.nuxeo.ecm.core.event.EventServiceComponent.registerContribution(EventServiceComponent.java:56)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified