Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4598

Duplicate INFO logs due to twice registered RequestInterfaceListeners

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8, 6.0.0-beta3
    • wicket
    • None

    Description

      org.apache.wicket.Initializer#init() (wicket-core) registers several RequestListenerInterface instances and this causes duplicated log entries which confuse the users.

      There is a comment in this #init() method:

      // Register listener interfaces explicitly (even though they implicitly
      // register when loaded) because deserialization of an object that
      // implements an interface does not load the interfaces it implements!

      What I believe is the problem is the code at org.apache.wicket.RequestListenerInterface#registerRequestListenerInterface() which throws an exception if there is an interface with that name but it has a different method than the previous. Otherwise it re-registers it and logs the message second time.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: